Re: NSenu and memory ownership
Re: NSenu and memory ownership
- Subject: Re: NSenu and memory ownership
- From: "Wesley Smith" <email@hidden>
- Date: Fri, 25 Jul 2008 13:07:29 -0700
> Removing a menu with -removeItem: or -removeItemAtIndex: doesn't return
> anything, and in any case you didn't alloc, copy, or retain anything, so you
> don't have to worry about releasing anything.
While this is true, I'm using - (NSMenuItem *)itemWithTitle:(NSString
*)aString to get the item if it exists and using that pointer from
then on out instead of replacing it. So, let's say I want to modify
the File menu, if I have a pointer to it when the app closes, should I
be worried about freeing it if it was generated from a nib file and
not procedurally by me in the code?
thanks,
wes
_______________________________________________
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