Re: NSFileWrapper serializedRepresentation bloat?

2011-01-09 Thread mlist0...@gmail.com
Problem ID: 8840391 _murat On Jan 8, 2011, at 7:55 PM, Ken Ferry wrote: > Hi, > > That's what I see too. From inspecting the serialized rep, it looks like > it's icon data. > > Since at least in my test case the folders did not have custom icons, it > seems like one could do better. Could

Re: NSUndoManager retain/release of arguments - ad infinitum

2011-01-09 Thread Graham Cox
Actually, it doesn't really matter what NSUndoManager does with arguments, all you really need to know is that it follows the rules for ownership of objects, so by and large does the 'right thing'. It does lots of wrong things, IMO, but incorrect memory management isn't among them. You're right

Re: NSUndoManager retain/release of arguments - ad infinitum

2011-01-09 Thread Jerry Krinock
On Sun, Jan 9, 2011 at 12:19 AM, John Bartleson wrote: > Can someone PUH-LEASE clear up the confusion re NSUndoManager > retaining/releasing arguments to prepareWithInvocationTarget:? PUH-LEASE stop beating your head against a black box! Replace the inexplicable NSUndoManager with Graham Cox'

Re: Avoid selection of text in NSTextField

2011-01-09 Thread Kyle Sluder
On Sat, Jan 8, 2011 at 2:03 PM, Luc Van Bogaert wrote: > I'm creating some kind of numerical keypad with several buttons that can be > used to "insert" text (eg. a number) into a NSTextField. > When I use such a button, the text gets inserted correctly, but the text in > the field is automatical

Re: NSUndoManager retain/release of arguments - ad infinitum

2011-01-09 Thread Kyle Sluder
On Sun, Jan 9, 2011 at 12:19 AM, John Bartleson wrote: > Can someone PUH-LEASE clear up the confusion re NSUndoManager > retaining/releasing arguments to prepareWithInvocationTarget:? I suppose it would be more helpful to describe what you're trying to do and why it's not working for you. I've r

NSUndoManager retain/release of arguments - ad infinitum

2011-01-09 Thread John Bartleson
Can someone PUH-LEASE clear up the confusion re NSUndoManager retaining/releasing arguments to prepareWithInvocationTarget:? In various places in cocoa-dev and in referenced 'net articles, such as here and here

Avoid selection of text in NSTextField

2011-01-09 Thread Luc Van Bogaert
Hi, I'm creating some kind of numerical keypad with several buttons that can be used to "insert" text (eg. a number) into a NSTextField. When I use such a button, the text gets inserted correctly, but the text in the field is automatically selected. I would like to avoid that, and have the NSTe

Re: CGImageForProposedRect not scaling image

2011-01-09 Thread Ken Ferry
Hi Ken, On Sat, Jan 8, 2011 at 10:00 PM, Ken Tozier wrote: > HI > > I'm trying to use NSImage's CGImageForProposedRect method to scale an image > but it's not doing it. I gat back an image the same size as the original. Yes - this method doesn't do active work like scaling if it doesn't have t

Re: Locating a contextual menu

2011-01-09 Thread Andy Lee
On Jan 9, 2011, at 8:58 AM, Thomas Davie wrote: > I'd like in my app to be able to position an item by right clicking, and > selecting something from a contextual menu. I'm struggling with this though, > I don't see any way to find the position of the click that caused the > contextual menu to

Locating a contextual menu

2011-01-09 Thread Thomas Davie
Heya, I'd like in my app to be able to position an item by right clicking, and selecting something from a contextual menu. I'm struggling with this though, I don't see any way to find the position of the click that caused the contextual menu to appear. Things I've tried: 1) using standard res