I'm not necessarily for Apple, but I am sort of against the need for 3rd party vendors, if a browser can accomplish the same task, efficiently.
What are the advantages of HTML5 over HTML4, will there be a new XHTML, and will HTML5 have any interactive features that may replace Flash?
Hi All,
Though i had read the fsevents article provided by apple developer site, i m having issues in receiving the events. I need some samples to fetch events.
Need some samples.
Thanks in advance.
rgds,
herby
In VS2010 they added to all projects a virtual directory called "External Dependencies":
It really bothers me especially because if there is a normal folder named "Apple" and one named "Deep" it will be in between the two, and, well, it just bothers me.
Is there any way to remove or hide it?
The information it gives is also totally useless:
I created a .bat file with the below lines
cd C:\MyFolder
d:
findstr "Apple" C:\log.txt |findstr "red" > red_apples.txt
SLEEP 3600
GOTO START
When the bat is executed, the SLEEP is not working and the commands are running continously.
Is there anything wrong with the code? Please help !
We have a drop-down menu of volumes in our UI, and I'd like to update it when a new disk is mounted. In the Classic days, this would involve watching for a diskEvt event. In Carbon, I think this was kEventClassVolume. What's the Cocoa equivalent?
(A pointer into Apple's documentation on this would satisfy the question. I've been unable to find anything!)
I downloaded apple's demo for using HTTP POST and GET (Their sample app has a tabbar with different parts) and the code is so confusing!
Could anybody give me some sample code or a link to some tutorials about it? :)
Thanks!
Has any one got a working code sample for mpoauthconnection.
I had checkout source from code.google.com/p/mpoauthconnectio.
But selecting MPAouthTestApp gives the following error.
target specifies product type 'com.apple.product-type.framework', but there's no such product type for the 'iphonesimulator' platform
Please help me to solve the error or can anyone provide me with a sample working code for mpoauthconnection.
My email id is [email protected]
Taking example from Apple docs using predicates with Key-Paths
NSPredicate *predicate = [NSPredicate predicateWithFormat:@"ANY employees.firstName like 'Matthew'"];
Now, assume the employees has a bool field "isGood". The question: how do I select just those entities, having ALL of employees isGood==TRUE?
I tried but failed with following predicates:
"!(ANY employees.isGood != TRUE)"
"(ALL employees.isGood == TRUE)" // Would be perfect, but throws an exception..
I'm tired of switching between xcode and the browser to check iPhone API reference from Apple web site. Any better way to to it directly from XCode ? Ideally I'd like to select a word and search for it in the APi reference automatically.
I have the following model and instance:
class Bashable(models.Model):
name = models.CharField(max_length=100)
>>> foo = Bashable.objects.create(name=u"piñata")
Now I want to be able to search for objects, but using ascii characters rather than unicode, something like this:
>>> Bashable.objects.filter(name__lookslike="pinata")
Is there a way in Django to do this sort of approximate string matching, using ascii stand-ins for the unicode characters in the database?
Here is a related question, but for Apple's Core Data.
I've got application settings working just fine. However, I'd like to be able to change my app settings from within my app.
It seems as though there should be some kind of generic way to add this functionality to my app without having to recreate all the controls myself. I mean, the code is already written in apple's settings app.
Maybe someone wrote this code and open sourced it? (if it is not already available)
I'd like to be able to grab the metadata of the currently playing file in Quicktime X using ScriptingBridge and Ruby, so far I have the following code
require 'osx/cocoa'
OSX.require_framework 'ScriptingBridge'
@app = OSX::SBApplication.applicationWithBundleIdentifier("com.apple.QuickTimePlayerX")
@app.documents.each do |movie|
# What now?!
end
But I can't find any functions in QuickTime X's applescript dictionary to get the metadata from a document object (the same data you can see in QT's 'Show Movie Inspector' HUD) — does anyone have any ideas?
hi,
I want to set brightness and contrast on the image that is selected from the photo library of iphone, is there any way to do the same using/not using open GLES.
I've got some code from the developer.apple.com but that is for a single image and i can't use images from photo library, do any one know please let me know how to this.
regards viral.
Is there any way of placing a file into application "sandbox" i.e into eg:
/var/mobile/Applications/30B51836-D2DD-43AA-BCB4-9D4DADFED6A2/Documents
of iphone?
My Application expects a file to be put into /Documents folder of application so that it can be uploaded to my local server.
This method should confirm to the rules of Apple so that it should not be rejected.
how do it turn a multidimensional array like:
$fruits['apples']['blue'] = 24;
$fruits['bananas']['blue'] = 12;
$fruits['apple']['red'] = 34;
$fruits['gooseberries']['orange'] = 4;
$fruits['oranges']['red'] = 12;
into a cross referenced table like:
Thanks!
Suppose you have an associative array
$hash['Fruit'] = 'Apple';
$hash['Name'] = 'Jeff';
$hash['Car'] = 'Ford';
and you cannot change the order in which these variables are created. So Car is always added to the array after Name, etc. What's the prettiest way to add/move Car to the beginning of the associative array instead of the end (default)?
I have started using c++ extensively in school and now my programs are getting to the point where have more than 1 file (i.e. header, driver, implementation file). I don't know enough about software development to understand or get a grasp of how to setup the build process by looking at apple's guides. Could someone walk me through how to compile a simple c++ project with a header and two c++ files in xcode? Do I first need to make a makefile??
Many Fortune 500 companies have incorporated flash in their websites. What solution to port them to all Mobiles as I hear Apple refuses to get flash ?
So what solution does one have ? Redevelop everything at awfull cost using different apis for different mobiles ?
Why does iphone refuses to incorporate flash ? What's the purpose of such restriction ?
Hi
I have rediATM app installed on my iphone. rediATM app is free on itunes.
I want to open that app from my iphone app.
I am not able to find out the way to open it.
i am using the following code to open it but it takes me to the website.
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://itunes.apple.com/au/app/rediatm-finder/id358936470?mt=8"]];
Please help.
I've seen questions asked here before, but they do not address the issue. That said:
"In App Purchases" specifically may not be real world goods or services, according to Apple. What services allow integration with iPhone apps so that I can use ObjectiveC to sell things in an iPhone app?
I know Apple went to a lot of trouble to convert a big blob of touch data to a nice single point, and I appreciate it, but does anyone know how to access the raw data before it's processed? Official or unofficial method, it doesn't matter.
EDITED to show the relevant part of the code
Hi. There's a strange problem with an NSMutableArray which I'm just not understanding...
Explaining:
I have a NSMutableArray, defined as a property (nonatomic, retain), synthesized, and initialized with 29 elements.
realSectionNames = [[NSMutableArray alloc] initWithCapacity:29];
After the initialization, I can insert elements as I wish and everything seems to be working fine.
While I'm running the application, however, if I insert a new element in the array, I can print the array in the function where I inserted the element, and everything seems ok.
However, when I select a row in the table, and I need to read that array, my application crashes. In fact, it cannot even print the array anymore.
Is there any "magical and logical trick" everybody should know when using a NSMutableArray that a beginner like myself can be missing?
Thanks a lot.
I declare my array as
realSectionNames = [[NSMutableArray alloc] initWithCapacity:29];
I insert objects in my array with
[realSectionNames addObject:[category categoryFirstLetter]];
although I know i can also insert it with
[realSectionNames insertObject:[category categoryFirstLetter] atIndex:i];
where the "i" is the first non-occupied position.
After the insertion, I reload the data of my tableView. Printing the array before or after reloading the data shows it has the desired information.
After that, selecting a row at the table makes the application crash. This realSectionNames is used in several UITableViewDelegate functions, but for the case it doesn't matter. What truly matters is that printing the array in the beginning of the didSelectRowAtIndexPath function crashes everything (and of course, doesn't print anything). I'm pretty sure it's in that line, for printing anything he line before works (example):
NSLog(@"Anything");
NSLog(@"%@", realSectionNames);
gives the output:
2010-03-24 15:16:04.146 myApplicationExperience[3527:207] Anything
[Session started at 2010-03-24 15:16:04 +0000.]
GNU gdb 6.3.50-20050815 (Apple version gdb-967) (Tue Jul 14 02:11:58 UTC 2009)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-apple-darwin".sharedlibrary apply-load-rules all
Attaching to process 3527.
Still not understanding what kind of stupidity I've done this time... maybe it's not too late to follow the career of brain surgeon?
So, I've been trying to figure out why the square is moving up and down the iPhone simulator when Build and Go the template that Apple provides for OpenGL ES. I don't understand why for example they have ES1Render.m, and ES2Render.m instead of just one ESRender.m. Also, where is the equivalent of the glutDisplayFunc, and glutTimerFunc? Thanks in advance.