Re: disowning a bundle?
Re: disowning a bundle?
- Subject: Re: disowning a bundle?
- From: Uli Kusterer <email@hidden>
- Date: Mon, 25 Feb 2008 12:37:45 +0100
Two suggestions:
1) Do not bind to a file's owner. Bindings retain what they bind to,
and you'll have a retain circle.
2) Use another method to load the NIB, one that gives you an array of
all top level objects. My UKNibOwner class does this, for example:
Attachment:
UKNibOwner.h
Description: Binary data
Attachment:
UKNibOwner.m
Description: Binary data
Haven't had a Leopard-only project that uses NSViewController yet, but
supposedly that works similarly.
Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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