Re: NULL Outlets in one file work in another

2009-05-26 Thread Andy Lee
I don't have time to go into detail, but I think you need to understand what happens when nibs are loaded and how that's different from instantiating an object with alloc/init. On May 26, 2009, at 11:26 AM, Walker Argendeli wrote: Typos on my part It's applicationDidFinishLaunching: That de

Re: NULL Outlets in one file work in another

2009-05-26 Thread Greg Guerin
I wrote: If they are in App_Delegate, is IB connecting to those, or is it connecting to ones in App_Delegate? but meant to write: If they are in App_Delegate, is IB connecting to those, or is it connecting to ones in FirstLaunch? -- GG ___

Re: NULL Outlets in one file work in another

2009-05-26 Thread Greg Guerin
Walker Argendeli wrote: So in App_Delegate's applicationDidFInishLaunching method, I have something that looks like this: [self doStuff]; FirstLaunch *thing = [[FirstLaunch alloc] init]; [thing doStuff]; And either the first line is commented out or the last two are commented out. The method

Re: NULL Outlets in one file work in another

2009-05-26 Thread Volker in Lists
Hi, are you using - (void)applicationDidFinishLaunch:(NSNotification *)aNotification or - (void)applicationDidFinishLaunching: (NSNotification *)aNotification ? The first is not a valid delegate method, the second is. Have you connected your AppDelegate as delegate of your app - can it rec

Re: NULL Outlets in one file work in another

2009-05-26 Thread Walker Argendeli
Typos on my part It's applicationDidFinishLaunching: That delegate method is in the file App_Delegate.m, which is the App_Delegate file. The App_Delegate file is a delegate of the app. Basically, I have some code working with outlets. If I put it as a method in App_Delegate, it works. I call

NULL Outlets in one file work in another

2009-05-26 Thread Walker Argendeli
I have a App_Delegate file. In applicationDidFinishLaunch:, I instantiate a FirstLaunch object and call its start method. The weird thing is that this method, which access several IBOutlets, seems to be working with null outlets. All the connections are right in IB, and yet the outlets a