Re: Strange behavior with nib loading
Re: Strange behavior with nib loading
- Subject: Re: Strange behavior with nib loading
- From: Graham Perks <email@hidden>
- Date: Sun, 8 Apr 2007 20:28:09 -0500
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