• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Creating the app menu from scratch
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Creating the app menu from scratch
      • From: Bill Bumgarner <email@hidden>
References: 
 >Creating the app menu from scratch (From: "Jim Crafton" <email@hidden>)
 >Re: Creating the app menu from scratch (From: Jeff Johnson <email@hidden>)
 >Re: Creating the app menu from scratch (From: "Jim Crafton" <email@hidden>)
 >Re: Creating the app menu from scratch (From: Bill Bumgarner <email@hidden>)

  • Prev by Date: Re: Creating the app menu from scratch
  • Next by Date: Re: NSViewController and View Swapping
  • Previous by thread: Re: Creating the app menu from scratch
  • Next by thread: Re: Creating the app menu from scratch
  • Index(es):
    • Date
    • Thread