Please help..... NIL Object problems...
Please help..... NIL Object problems...
- Subject: Please help..... NIL Object problems...
- From: Graham Wihlidal <email@hidden>
- Date: Wed, 1 Aug 2001 02:21:45 -0600
I have a class which handles all the operations of a particular window.
I have a function which centers and displays a window which works fine
(easy stuff)
If I have a button in an interface created with IB and target the window
display function in this class, the button shows the window. I created
an instance of this class to call its functions from a different class
and this works fine, except..... If I try to call the window display
function from another class, it treats the target window as nil. I
added an NSLog to this function to make sure it fires and it does. What
is going on? The window variable is declared inside the class with the
display function, and all I do is try to call this function from
another class which fires, but the window doesn't display.
Any ideas?
Thanks,
Graham