My app displays an NSWindow as a sheet. The NSWindow has various controls for settings properties of an object (an NSTextfield, a NSDatepicker etc) and two NSButton's, 'Add' and 'Cancel' which are used to confirm or cancel the action.
I have set the key equivalent of the 'Add' button to enter and the key equivalent of Cancel to escape. ...
I'm trying to use ABRecordRef within an NSMutableArray, but it doesn't seem to work. I know that ABRecord is a C class, but I thought that ABRecordRef was the work around Objective-C class that allowed me to use it with NSObjects. What do I need to do to make this work?
...
I am about to begin writing an app that handles adding new users/repostories to my subversion server, so that I don't have to repeatedly open vi and edit conf files and execute shell commands.
Most of my experience centers around C, C++, Objective-C and Java. Java seems decent for string manipulations with its tokenizer class, however I...
I seem to be dealloc'ing something like the tab bar itself, navigation controller, or ???, and this happens when I go to a particular view controller and then hit the tab bar to a specific tab (eg, if I hit the middle tab, of 3 tabs, no problem, but if I hit the rightmost tab I get the crash). My program is basically complete and I have ...
Hey all,
I used a utility application template to create my application, but I am using a UIImagePicker to pick some photos. The little infoButton, the i with a circle around it, shows up when the picker is displayed. If the infoButton was not in another class then I could call infoButton.hidden = YES; and it would hide it. Any ideas how...
I am working on syncing two business objects between an iPhone and a Web site using an XML-based payload and would love to solicit some ideas for an optimal routine.
The nature of this question is fairly generic though and I can see it being applicable to a variety of different systems that need to sync business objects between a web ...
Noob question:
I'm currently under the impression that when you want to create an object, you need to alloc and init that object.
However, I've seen seen several sample codes where an NSString object is declared, yet I see no alloc or init messages following...
A very simple example:
NSString *myString = @"Hello World";
NSLog(@"%@"...
hi, im developing a 2d game on iphone in which i want to maginify the views on the screen to give the effect that the user is looking through the sniper whenever the user taps the screen..
i am required to show that the objects which the player wants to shoot should be moving...so im incremeting their position as well as increasing their...
I am developing a 2d game for iPhone by using cocos2d.
I use many small sprite (image) in my game. I want to touch two similar types of sprite(image) and then both sprite(image) will be hidden.
How can I detect touch in a specific sprite(image) ?
...
hey!
i am new in objective c. i am trying to learn objective c. i would like to know how to declare two dimensional array of string type in objective c.
...
All of the examples I've seen on here and other sites involved creating a UIActivityIndicatorView and loading it with something like:
self.navigationItem.rightBarButtonItem = [[[UIBarButtonItem alloc]
initWithCustomView:myActivityIndicatorView
target:nil
action:nil]
autorelease];
However, tha...
I know you cannot control device volume from within your application, but I would like the device volume to be able to affect the UIScrollBar I have in my application to control volume.
I know this is possible because the Last.fm application does it, I would like to implement this behaviour.
I can find very little information on the in...
Hello,
I am wondering if it is possible to change a default color of buttons in my application with a couple lines of code? It may be really boring to manually change color of each button. Especially if you have lots of them.
For example, I want all of my buttons to be orange instead of original white.
Thank you in advance,
Ilya.
...
I'm developing for the iPhone and am looking for a good Cocoa/Objective-C library for working with SQLite. I don't want to use the standard procedural SQLite C API. I see options at sqlite.org under the Objective-C section, but am not sure which is the best in terms of library API design, stability, and functionality. I'd like to use ...
I'm writing an iPhone app. I have a header file that looks like this:
@interface EditTagsViewController : UITableViewController {
NSMutableArray *allTags;
NSMutableArray *selectedTags;
NSInteger currentFavorite;
}
@property (nonatomic, retain) NSMutableArray *allTags;
@property (nonatomic, retain) NSMutableArray *selectedTags;
@...
Hello
I'm working on a small app written in objective-c with the help of the cocoa framework and I am having a multithreading issue.
I would really appreciate it if somebody could help me with some guidance on how terminate a secondary(worker) thread from the main thread?
- (IBAction)startWorking:(id)sender {
[NSThread detachNewTh...
Hey guys,
I need to know when my view controller is about to get popped from a nav stack so I can perform an action.
I can't use -viewWillDisappear, because that gets called when the view controller is moved off screen for ANY reason (like a new view controller being popped on top).
I specifically need to know when the controller is a...
This seems like a basic question.. but my array size is 64 and I am replacing an object at index 63. Like this:
[myMutableArray replaceObjectAtIndex:myIndex withObject:myObj];
So I have no idea why gdb is telling me this:
*** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[NSCFArray objectAtIndex:]: index...
Is there any way I can upload a selected image to TwitPic.com and get the images page URL?
Here is the API page for TwitPic.com:
http://twitpic.com/api.do
...
What is the best way to learn Objective-C on linux (man I wish I had a mac)?
I know C/C++ pretty well and have always wanted to learn Objective-C becuase of the ability to make iPhone apps (if I had a mac).
So where do I start?
...