Adding a new menu programmatically

2008-09-30 Thread Matthew Gertner
Hi, I'm trying to add a new menu to the main menu of my application using Cocoa. I thought something like this would do the trick: NSMenu* menu = [[NSMenu alloc] initWithTitle:@foo]; NSMenuItem* item = [[NSApp mainMenu] addItemWithTitle:@foo action: nil keyEquivalent: @];

Deploying application with Growl support

2008-07-09 Thread Matthew Gertner
Hi, Perhaps this isn't the right place to ask this, but I have a Cocoa application that uses Growl for notifications. I'm looking for information about how to create a package so the application is distributed with Growl for those users who don't already have the latter installed. Can anyone give

Re: Deploying application with Growl support

2008-07-09 Thread Matthew Gertner
iPhone On 9 Jul 2008, at 13:27, Matthew Gertner [EMAIL PROTECTED] wrote: Hi, Perhaps this isn't the right place to ask this, but I have a Cocoa application that uses Growl for notifications. I'm looking for information about how to create a package so the application is distributed with Growl

Re: Setting default application for URL scheme

2008-05-16 Thread Matthew Gertner
the handler, but that doesn't seem to help. Thanks in advance, Matt On Fri, May 16, 2008 at 5:49 PM, Matthew Gertner [EMAIL PROTECTED] wrote: This works like a charm except for one thing. After I register my handler, it gets requests to load a new URL as expected the app is already running

Setting default application for URL scheme

2008-05-14 Thread Matthew Gertner
Hi, I'd like to set the application that should be run when a URL with a given scheme is opened. The only way I've found to do this is _LSSetDefaultSchemeHandlerURL, but I'd rather not go with an undocumented API if it can be avoided. Is there a Cocoa API or something for this that I haven't been

Re: Forwarding messages from an application delegate

2008-05-02 Thread Matthew Gertner
oldDelegate] respondsToSelector:aSelector]) [invocation invokeWithTarget:[self controller]]; else [self doesNotRecognizeSelector:aSelector]; } hth, G. On 3 May 2008, at 12:35 am, Matthew Gertner wrote: Hi, I am implementing an application delegate