Re: trick to getting an NSMenu to be app's main menu?

Kyle Sluder <[email protected]>
Newsgroups gmane.comp.macosx.devel
Message-ID <[email protected]>
On Mon, Feb 8, 2010 at 6:28 PM, Chad Leigh -- ObjectWerks Inc
<chad+macosx-AU1NHruoRJaEK/[email protected]> wrote:
> Is there a trick to replacing the main menu?  I have read through the menu handling and NSApplication bits on apple.com but did not see anything obvious.

This isn't supported. There's a lot of hackery going on inside AppKit
to implement NSMenu on top of the Carbon Menu Manager.

What you're doing isn't likely to work anyway, since you seem not to
be running the main runloop. But then again, you have omitted a decent
chunk of code.

It strikes me as pointless to attempt to do anything before loading
any external bundles. All I have to do is insert my own library in the
DYLD_INSERT_LIBRARIES envar and bypass all of your license checking
code.

Just like locks, licensing panels serve to keep keep honest people honest.

--Kyle Sluder
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.