Re: Strange behavior with nib loading
Re: Strange behavior with nib loading
- Subject: Re: Strange behavior with nib loading
- From: "Carter R. Harrison" <email@hidden>
- Date: Mon, 9 Apr 2007 14:40:39 -0400
That was it! I must be an idiot to stare at that problem for so long
and not see what was happening. Thanks Graham.
On Apr 8, 2007, at 9:28 PM, Graham Perks wrote:
On Apr 8, 2007, at 7:00 PM, Carter R. Harrison wrote:
Inside that NSWindow I have a custom subclass of NSView and it
also is an instance within IB.
and
my NSView subclass (one of the top-level objects in my nib) is
instantiating twice for some reason
Sounds like you do have two instances. One inside the window and
one as a top-level object in the nib.
You needn't make the view a separate instance in IB and put it
inside the NSWindow in IB. Do one or the other. Throw it on the
NSWindow, alt-5 to change the custom class, and that will do it.
You can still ctrl-drag to it to link up your code to it.
Cheers,
Graham Perks.
_______________________________________________
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