Custom NSView in NSMenuItem not receiving mouse events

2009-09-09 Thread Dennis Hartigan-O'Connor
I have an NSMenu popping out of an NSStatusItem using popUpStatusItemMenu. These NSMenuItems show a bunch of different links, and each one is connected with setAction: to the openLink: method of a target. This arrangement has been working fine for a long time. The user chooses a link from the m

How can I keep an NSPopUpButton open after the user selects a menu item?

2009-06-13 Thread Dennis Hartigan-O'Connor
I have an NSPopUpButton providing the NSMenu for a status item with a custom view. The popup button displays a list of links. When the user selects a link from the list, the link is displayed in the user's browser (in the background). Naturally, the menu closes every time the user selects a li

Re: NSURLConnection sendSynchronousRequest: crashes since, upgrading to 10.5.7

2009-06-01 Thread Dennis Hartigan-O'Connor
nection.m: 396 http://vienna-rss.svn.sourceforge.net/viewvc/vienna-rss/trunk/2.3.0/AsyncConnection.m?view=markup However, I'm seeing crash reports from users on 10.5.7, for example: http://dl.getdropbox.com/u/32952/ViennaCrash.txt -Jeff On Jun 1, 2009, at 11:23 AM, Dennis Hartigan-O'Connor wrote:

Re: NSURLConnection sendSynchronousRequest: crashes since, upgrading to 10.5.7

2009-06-01 Thread Dennis Hartigan-O'Connor
Thanks, Andrew, I believe that Colin Gray got to the bottom of this at Stack Overflow: http://stackoverflow.com/questions/916718/nsurlconnection-crashing-under-10-5-7 Dennis Andrew Farmer wrote: On 27 May 2009, at 18:20, Dennis Hartigan-O'Connor wrote: I have a very similar proble

Re: NSURLConnection sendSynchronousRequest: crashes since, upgrading to 10.5.7

2009-05-27 Thread Dennis Hartigan-O'Connor
I have a very similar problem: my simple program that downloads stock prices has been working fine but intermittently crashes on 10.5.7, whether I use sendSynchronousRequest or stringWithContentsOfURL. For me, too, everything is fine for 10-15 minutes and then the program crashes. Here is the

NSURLConnection sendSynchronousRequest and NSString stringWithContentsOfURL crashing under 10.5.7

2009-05-27 Thread Dennis Hartigan-O'Connor
I have a little app that downloads stock prices and was working perfectly (for years) until my recent upgrade to 10.5.7. After the upgrade, the program would crash on this call: NSString *currinfo = [NSString stringWithContentsOfURL:[NSURL URLWithString:[NSString stringWithFormat:@"http://fin

Re: Subclassing NSOutlineView causes failure of window to become main or key

2008-03-02 Thread Dennis Hartigan-O'Connor
don't fully understand this information but I'm assuming it represents the normal event loop, since it looks exactly the same as when the application runs perfectly. John Stiles wrote: Is anything printed to the Run Log or Console? Dennis Hartigan-O'Connor wrote: I'm tr

Subclassing NSOutlineView causes failure of window to become main or key

2008-03-02 Thread Dennis Hartigan-O'Connor
I'm trying to use a subclass of NSOutlineView to allow merged columns, so that some cells can run over their bounds, using methods I read about at: http://www.mactech.com/articles/mactech/Vol.18/18.11/1811TableTechniques/index.html I have four instances of my custom subclass organized in an NST