Re: Creating the app menu from scratch
Re: Creating the app menu from scratch
- Subject: Re: Creating the app menu from scratch
- From: Jeff Johnson <email@hidden>
- Date: Mon, 14 Jul 2008 01:35:51 -0500
On Jul 13, 2008, at 10:37 PM, Bill Bumgarner wrote:
And, no, exchanging class methods is not a typical pattern to be
employed when developing a Cocoa application. In particular,
replacing or exchanging method implementations found in Apple
frameworks is completely unsupported and will quite likely break in
the future.
b.bum
I fully admit that the use of the private methods -[NSApplication
setAppleMenu:] and -[NSMenu _setMenuName:] is completely unsupported
and may break in the future, though I hope that they don't and that
in fact Apple provides public API for this functionality.
On the other hand, the function method_exchangeImplementations() just
became public API in Leopard, so I don't see how that can break
anytime soon. It's not much different than subclassing or
'categorizing'.
-Jeff
_______________________________________________
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