In Xcode, for Obj-C programs, is there a way to generate skeleton method body in the .m file if I add a new method or implement an interface in the corresponding .h file? Like in Eclipse, if you implement an interface, it will bring in the method skeleton according to the definition of the interface.
...
Hi,
I have setup my first core data project. Everything works fine until I do the following (in Simulator/Device):
• Close App using "Home Button"
• Double press "Home Button" and quit the app from background.
• Reopen the app
As soon as it reopens there is an instant crash with nothing in the log. The last thing logged is "Program ...
A, B,C is class.
A define delegate. B define delegate.
C implements delegate.
how do C implements delegate of A by B ?
it means that C want implements A's delegate, but B include A. so it's wrong!
I want to implements A's delegate by B? what to do in B. Transfer A'delegate to C ??
please help me! thanks!
...
Hi,
I am trying to use a PeoplePicker to retrieve the name and address of a contact and store it into the NSUserDefaults, which i eventually want to retrieve it on a tableview.
My question is how do I save the information in NSUserDefaults.
I have used NSDictionary, but I am not making any progress.
so I'm trying to save the array to th...
hi All,
I am trying to dump the springboard headers from my mac
using following command
class-dump /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk/System/Library/CoreServices/SpringBoard.app/SpringBoard -H -o /Desktop/SpringBoard
but I am getting the following error :
2010-09-13 16:14:23.325 class-dump[1955:10b]...
I'm querying a NSDictionary for a value. Because I got problems I printed the object. It shows me the following:
<CFString 0x5d33630 [0x26af380]>{contents = "myDictionaryItem"} = <CFNumber 0x5d58940 [0x26af380]>{value = +1286301600, type = kCFNumberSInt64Type}
So it is of type signed 64 bit integer. So I tried to extract the value like...
hey!
I have created a project in xcode which creates a ".a" file. fine, this works! but now I want to give this .a file to another company, who have to develop with this classes. when I'm create a new project and add the .a file in the new project, no files could be found. for example: when I link to the "XRActionView.h" file or so (whi...
Hi guys,
The question is can I have two instances of MPMoviePlayerController simultaneously in one UIViewController?
I'm trying to create a smooth transition between two movies in iPad app, but when I create the second MPMoviePlayerController the playback of first one is stopped and can't be resumed. I didn't found any restriction for h...
I want to get the +7 timezone on iPhone, how can I do so? Thank you.
...
How do I check if a NSNumber object is nil or empty?
OK nil is easy:
NSNumber *myNumber;
if (myNumber == nil)
doSomething
But if the object has been created, but there is no value in it because an assignment failed, how can I check this? Use something like this?
if ([myNumber intValue]==0)
doSomething
Is there a general met...
Hi guy's
I need to get the duration of the video capture and to set the image for the thumbnail of captured video.
Please guy's can anyone help how to get rid of this?
- (void)connectionDidFinishLoading:(NSURLConnection *)connection
{
NSLog(@"Success! Received %d bytes of file data", [currentFileDataContainer length]);
// urlStr = [[...
Hi,
I have developed a few applications now all using single view controllers. In each application in the application delegate I alloc/init the first view controller in "didFinishLaunchingWithOptions" and [window addSubview: view_controller.view].
Now my question is what is best practice for removing and adding secondary views.
At the...
Hi,
I have a very large text file, and my iPad program needs to occasionally replace a single line of data (newline: '\n'). How can I do this efficiently? Writing the entire file at once is not an option.
I've been looking into NSFileHandle, and it looks like it will do what I want; right now I'm having trouble figuring out how to find...
When trying to submit my Application using Application Loader i am getting the following error:
Expected token not found in attributes: ITunesSoftwareApplicationTestedOn40
Where can i set this attribute?
Thanks
...
I'm having difficulty understanding how to update my fetchedresultscontroller with a new sort. I initialize a frc the standard way in my class. But how exactly do you modify the fetchrequest with a new sortdecription? My app has a sort selector in the appSettings that the user can change on the fly. Is there a way to update the frc dyn...
Hi
I would guess it's the simplest thing but it's really confusing me. I'm sure I've successfully used doubles before but now I'm having trouble.
I just made a new 'test' project to see if I can get it working, but all I'm trying to do is set a double value.
So in the View Controller's viewDidLoad i've typed:
double z = 2938.09;
NSL...
Hello.
What platforms is Core Text available on from my understanding it is:
iPad 3.2 & iPhone 4.0+
Is this correct and it is not available in 3.2+ for iPhone?
Thanks
James
...
I have an app with a login page that has three fields for three different random characters. When the user leaves the last field, the soft keyboard disappears and the user can touch a "login" button on screen.
When there is a hardware keyboard (bluetooth or physical) attached, I'd like to be able to hit "enter" on it. However because th...
Hello,
I'm crashing with this message :
'NSInvalidArgumentException', reason: 'keypath name not found in entity
Obvisouly I'm not querying my entity correctly .
//fetching Data
NSFetchRequest *fetchRequest = [[NSFetchRequest alloc] init];
NSManagedObjectContext *context = [(AppDelegate *)[[UIApplication sharedApplication] delegate...
I'm confused about the concept of "threads" in iPhone development:
Why are threads necessary / useful?
How can threads be used in Objective-C?
...