Grouping separator not working in table

2009-02-02 Thread Steve Nicholson
I'm having trouble getting grouping separators to show up in a table view. In IB, I've assigned a number formatter to a table column's text field cell and set up the formatter with grouping size 3 and turned on Grouping Separator. In tableView:objectValueForTableColumn:row: I'm returning an

Re: Question about interface builder

2008-11-18 Thread Steve Nicholson
On Nov 17, 2008, at 1:59 PM, Kyle Sluder wrote: Why does everyone new to the platform want to immediately discard IB? It is the correct (yes, "correct", not "preferred", not "easiest", but *correct*) way to implement your interface. I think a quote from Aaron Hillegass is appropriate here: "E

Re: Any good advice for naming parameters of init methods?

2008-07-10 Thread Steve Nicholson
On Jul 10, 2008, at 7:25 AM, an0 wrote: I've been always stumbling on the embarrassment of "warning: local declaration of 'xxx' hides instance variable" for my init methods, because I really can't figure out a nice naming pattern for parameters used to assign to instance properties, and I am alw

Re: Getting double-clicks on NSTextField

2008-06-22 Thread Steve Nicholson
On Jun 18, 2008, at 8:25 PM, Steve Nicholson wrote: I have an NSTextField on my window that is neither editable nor selectable. Is there a way for my window controller to be notified when the user double-clicks on the field? On Jun 18, 2008, at 6:04 PM, Andy Lee wrote: I don't kn

Getting double-clicks on NSTextField

2008-06-18 Thread Steve Nicholson
I have an NSTextField on my window that is neither editable nor selectable. Is there a way for my window controller to be notified when the user double-clicks on the field? -Steve ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do no

Re: Binding NSMenuItem state in Document-based app

2008-06-10 Thread Steve Nicholson
On 2008 Jun, 09, at 12:57, Quincey Morris wrote: Doing this through bindings involves re-inventing a bit of stuff that NSResponder normally takes care of, but it need not be too difficult. For example, you could Or something like that. On Jun 9, 2008, at 3:04 PM, Jerry Krinock wrote

Binding NSMenuItem state in Document-based app

2008-06-09 Thread Steve Nicholson
I have a document-based app in which I'm trying to bind the state of NSMenuItems to values in my document's window controller. For example, in the window's nib file, I have a checkbox bound to File's Owner/autoscaleX. I'd like the menu item to have the same functionality as that check box a

Master-Detail binding in User Defaults

2008-04-22 Thread Steve Nicholson
I'm trying to set up a Master-Detail binding with User Defaults under OS X 10.4.11. It is correctly reading values I manually put into the Preferences file. I can select different items in the table and the detail items display the correct information, but no changes are written to the file

Re: Unregistering KVO observers-solved

2008-04-21 Thread Steve Nicholson
at, but no luck. Also, I'm doing this in windowWillClose: in my NSWindowController subclass, not dealloc. On Apr 17, 2008, at 10:05 PM, Steve Nicholson wrote: When my app was simply an NSDocument, it worked fine: when the window closed, the bindings were automatically broken. But now

Re: Unregistering KVO observers

2008-04-17 Thread Steve Nicholson
On Apr 17, 2008, at 9:01 PM, Hal Mueller wrote: Look at Malcolm Crawford's Graphics Bindings example, which contains among other things two methods on GraphicsView to start and stop observation when an object of that class is created or destroyed. http://homepage.mac.com/mmalc/CocoaExample

Unregistering KVO observers

2008-04-17 Thread Steve Nicholson
I'm using NSDocument/NSWindowController with bindings in the NSWindowController subclass set up in Interface Builder. When I close the window, I get the message "An instance 0x306860 of class Problem is being deallocated while key value observers are still registered with it." I'd like to u