Re: Methods that return autoreleased objects?

2008-06-30 Thread Tom Bunch
On Jun 29, 2008, at 9:42 AM, Mike Ferris wrote: And, as long as we're on the topic... who can name the only other exceptional case for the "release only if you alloc,new, copy or retain" rule? (It's pretty old-school...) How about if you're implementing an initializer for a class cluster

Re: Strange retainCount from NSTimer

2008-03-13 Thread Tom Bunch
I would expect, at "A", for the timer to have any retain count of at least one, and an equal number of releases pending in your autorelease pool. Maybe the run loop's autorelease pool is getting popped or drained as a side effect of adding the timer or something. If you really want to fig

Re: How does Omnifocus avoid getting focus?

2008-03-13 Thread Tom Bunch
NSNonactivatingPanelMask On Mar 13, 2008, at 12:45 PM, Drew McCormack wrote: Omnifocus has a quick note panel that you can bring up with a hot key. When it comes up, Omnifocus does not become the active app, but the entry panel does get key focus. I know you can do this with a helper app,

Re: How does -drawPageBorderWithSize: place pageHeader?

2008-03-12 Thread Tom Bunch
The astute reader will realize that I swapped the origin.y for the header and the footer. -Tom On Mar 12, 2008, at 5:01 PM, Tom Bunch wrote: Mike, I've messed around with this and boy has it been a head scratcher. Still haven't got it accounting properly for all combinations

Re: How does -drawPageBorderWithSize: place pageHeader?

2008-03-12 Thread Tom Bunch
Mike, I've messed around with this and boy has it been a head scratcher. Still haven't got it accounting properly for all combinations of scale, print size, and margins. The default implementation of drawPageBorderWithSize: seems to want to print about 1/3 of the way from the margin to t

Re: NSTokenField bug in 10.5.2?

2008-03-12 Thread Tom Bunch
quite that much) and show up in the token field w/ a lozenge around them. The test app at http://people.omnigroup.com/tom/NSTokenField.zip has been modified w/ the workaround. -Tom On Mar 10, 2008, at 3:00 PM, Tom Bunch wrote: Hey developers, I've been grappling with a problem very sim

Re: Small variant of NSSearchField?

2008-03-10 Thread Tom Bunch
It does seem to be order dependent. This works (though it does drop the baseline a pixel) [[searchField cell] setControlSize:NSSmallControlSize]; [searchField setFont:[NSFont systemFontOfSize:[NSFont systemFontSizeForControlSize:NSSmallControlSize]]]; NSRect searchFrame = [searc

NSTokenField bug in 10.5.2?

2008-03-10 Thread Tom Bunch
oblem. Any suggestions for a workaround would be appreciated! Thanks! -Tom Bunch Omni ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admi