Re: Retained ivars being set to 0x0 (SOLVED)
Re: Retained ivars being set to 0x0 (SOLVED)
- Subject: Re: Retained ivars being set to 0x0 (SOLVED)
- From: "Sam Dunster" <email@hidden>
- Date: Thu, 22 Mar 2007 19:38:46 +1100
Great, you got the problem straight away. They are two different objects.
Here's the log:
2007-03-22 19:19:54.105 TicTacBonjour[813] Creating connection...
2007-03-22 19:19:54.250 TicTacBonjour[813] this window controller is at 0x316c50
2007-03-22 19:19:54.891 TicTacBonjour[813] Incoming connection...
2007-03-22 19:19:54.891 TicTacBonjour[813] this window controller is at 0x3947c0
2007-03-22 19:19:54.990 TicTacBonjour[813] Recieved message: test
2007-03-22 19:19:54.991 TicTacBonjour[813] Recieved message: test
2007-03-22 19:20:00.006 TicTacBonjour[813] this window controller is at 0x3902e0
2007-03-22 19:20:03.364 TicTacBonjour[813] this window controller is at 0x3913b0
(two windows opened, then two windows fired actions)
I looked around, and I realised where I went wrong, i had instantiated
a separate window controller object in the nib, and I wasn't using
File's Owner object as the controller. I deleted the instantiated one
and changed the File's Owner to my NSWindowController subclass.
All working well now, thank you very much! Sorry for wasting your time
with something as basic as this.
Sam
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden