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

Chad Leigh -- ObjectWerks Inc <chad+macosx-AU1NHruoRJaEK/[email protected]>
Newsgroups gmane.comp.macosx.devel
Message-ID <[email protected]>
On Feb 8, 2010, at 7:45 PM, Kyle Sluder wrote:

> 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.

ok

> 
> 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.

ok thanks, I will try one more thing and then forget about it.  I don't really need this anyway at this point

> 
> 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.

Well, it is not that easy since the main app itself does checks throughout against the license stuff set up in this initial bit of code but of course nothing is foolproof

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

indeed

best
Chad

> 
> --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.