On Thu, Mar 3, 2011 at 4:20 PM, Gerriet M. Denkmann <[email protected]> wrote: > But, taking my original example: > > NSAttributedString * attributedString = ... > NSFont *aFont = [ attributedString attribute: NSFontAttributeName atIndex: 0 > effectiveRange: NULL ]; > NSString *fontName = [aFont fontName]; > [ attributedString release ]; > > Now aFont no longer exists. > So fontName, being a property of the no longer existing aFont, should have > vanished also, shouldn't it?
Replace "should" with "could." The point is that there's no guarantee, and you need to be prepared for the case where it does. --Kyle Sluder _______________________________________________ Cocoa-dev mailing list ([email protected]) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
