Re: Why does autorelease work when release fails?
Re: Why does autorelease work when release fails?
- Subject: Re: Why does autorelease work when release fails?
- From: Phil Holland <email@hidden>
- Date: Thu, 28 Jun 2007 20:56:36 -0700
On Jun 28, 2007, at 8:49 PM, Tron Thomas wrote:
[manager setTextStorage:storage];
From the NSLayoutManager reference (emphasis added):
- (void)setTextStorage:(NSTextStorage *)textStorage
Discussion
This method is invoked automatically when you add an NSLayoutManager
to an NSTextStorage object; you should never need to invoke it
directly, but might want to override it. If you want to replace the
NSTextStorage object for an established group of text-system objects
containing the receiver, use replaceTextStorage:.
So, short answer, you shouldn't be doing that.
--Phil
_______________________________________________
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