Object reference
I have a situation programming for the iPhone. I have an Object (object A) that contains another Object (object B). Is there a way to reference object A from Object B? If so, how would I do it? ...
I have a situation programming for the iPhone. I have an Object (object A) that contains another Object (object B). Is there a way to reference object A from Object B? If so, how would I do it? ...
hi, e.g. NSInteger called a [a value] is a EXC_BAD_ACCESS how to convert NSInteger to int ? (only small numbers < 32 are used) ...
Does anyone have any info or code on how to can hide a navigation bar and toolbar when the user touches the iphone screen. Basically I have an image gallery and I want to see the images in the whole of the iphone screen. also im trying to implement a button so the user can download the image i had no luck on my search on google. Thanks...
AppleScript was too slow, so I tried ScriptingBridge to open System Preferences.app and set the current pane, which is also too slow. Is there a faster way to do it? properly ...
What's the simplest way, given a string: NSString *str = @"Some really really long string is here and I just want the first 10 words, for example"; to result in an NSString with the first N (e.g., 10) words? EDIT: I'd also like to make sure it doesn't fail if the str is shorter than N. ...
What's the simplest way to extract a slice of an NSArray in Objective-C? (much like the array_slice function in PHP) ...
Hi, Can anyone tell me How does the Sync Button on many Iphone app. works (like 'Le Monde'). The button download and replace all files of the application? only look for change (new entry) on the database and add them?.... Thanks, ...
In 10.6 Apple added +[NSPropertyListSerialization dataWithPropertyList:format:options:error:] and labeled the older +[NSPropertyListSerialization dataFromPropertyList:format:errorDescription:] as obsolete and soon to be deprecated. One way to use the newer call on 10.6 and above, and still run on earlier OS releases, would be something l...
How do I access any classes in a library when all I have is the .a file? I've included the -ObjC linker flag and added the .a file to my project. Still, none of the classes appear in code hints. ...
What is the difference between NSMutableArray and CFMutableArray? In which case(s) should we use one or the other? ...
I have the following code to detect the current window. How can I get 1) application internal name, 2) location, 3) publisher and 4) description of the window/application? NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; //Get info about the currently active application. NSWorkspace* workspace = [NSWorkspace share...
I am an experienced C++, C# programmer on Windows platform and would like to learn Objective-C to try out developing on the Mac and iPhone. What books do you recommend me to start out with? Thanks. ...
I am developing some games using multi touch for iPhone (cocos). Could anyone teach me how to start, from very scratch beginning. I am not sure where to start or any resources that can help. I really appreciate the helps. @implementation GameScene - (id)init { if (self = [super init]) { Sprite *background = [Sprite spriteW...
there's a static method like: + (id) getRoutes:(NSString *)stationName{ NSMutableArray *routeArray = [[NSMutableArray alloc] init]; ...... [routeArray autorelease]; return routeArray; } when i call it like following, is okay ... @property(nonatomic, retain) NSMutableArray *routeArray; ... @synthesize routeArray; ... routeArray = ...
Hi All, How to write a program for executing the 'ls' command in ObjC ? Any API available ? Thanks ...
Probably a newbie question, but: I have a UIImageView that zooms and translates using multitouch. The built in animation feature is very handy, and works great. However, now I want to draw on top of it. The problem is that anything I draw goes beneath the UIImageView. If I switch to UIImage, and draw it myself, then the animation do...
Hello ,I am new in iphone application and mac. I have to write an application in which i have ta call server webservice and for that I have used soapenvelope. But there is so much data and around 100 images. so, my application is going to slow down. Can anybody help me that how can i use Asynchronus Request or any other way to faster the...
My program have two tabs, I set init variable in viewDidLoad. ( int A = 0; ) I change A = 2 when press button. I switch to tab2 and switch back to tab1, A is still 2. How to call viewDidLoad in tab1 again ? ( I want to init variable again when switch back to tab1 .) ...
I am not sure which are the functions to implement multi touch in cocos.? could anyone show me a demo? ...
I have a UITableViewCell, and I want to use the image property to fill it with an image. When it is first in a grouped UITableView, I want it to have the standard rounded corners. Unfortnately, the image fills the rounded corners as well.. Is there any way to retain them without using a transparent image? ...