Re: NSTableView Sends Null Column to Delegate/DataSource

2012-07-13 Thread John Terranova
A nil tableColumn means to treat the whole row as one wide column, rather than the individual columns. It is useful for section headers. The docs for the applicable methods should explain the nil tableColumn. john Sent from my iPhone On Jul 13, 2012, at 11:21 PM, Keary Suska wrote: > I

Re: Customizing the drop highlight on a NSTableView

2011-03-02 Thread John Terranova
On Mar 2, 2011, at 1:58 PM, Corbin Dunn wrote: > > On Mar 2, 2011, at 1:54 PM, Quincey Morris wrote: > >> On Mar 2, 2011, at 13:04, Eric Gorr wrote: >> >>> I am using the 10.5 SDK, so don't have access to >>> -setDraggingDestinationFeedbackStyle: >>> >>> What are my options for customizing t

Is childrenKeyPathForNode robust?

2011-02-04 Thread John Terranova
void using childrenKeyPathForNode:, work around its quirks, or just use it correctly (how?) ? Any enlightenment would be appreciated. Thanks. john terranova ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requ

CoreData object graph gets confused

2009-08-10 Thread John Terranova
I've got two objects in my data model, say Class and Teacher. Class has a to-one relation to a Teacher and Teacher has a to-many back to Class. When a Class is created I assign a particular default Teacher to it (e.g. J. Doe). Then, J. Doe has that class added to his set of Classes. I

Re: Call getElementById in Cocoa

2008-11-24 Thread John Terranova
On Nov 24, 2008, at 8:11 AM, Jean-Daniel Dupas wrote: You call -mainFrameDocument on your WebView to get a DOMDocument instance, and have access to the DOM functions from here (there is no up-to-date doc of the Cocoa DOM API, you will have to check headers files directly to see what functi

Re: How to indent in NSOutlineView?

2008-07-09 Thread John Terranova
Did you try the levelForItem:, or frameOfCellAtColumn:row:, or both? Did they both have the same results? More information on what you have tried and what the results were would make it easier to help you. You haven't turned off [NSOutlineView indentationMarkerFollowsCell], have you? Is

Re: How to indent in NSOutlineView?

2008-07-08 Thread John Terranova
The most likely solution, off the top of my head, would involve subclassing the NSOutlineView and overriding some method to tell Cocoa to indent some rows more than others. Here is one possibility. I don't know that it works, but it might. Try it and see. // you would need to subclass N

Re: Attempting to create NSTableView with Single Header

2008-05-20 Thread John Terranova
3 steps to closely approximate what you want. 1) In IB, turn off column headers for the table. 2) Add this delegate method to the delegate object for the table: - (BOOL)tableView:(NSTableView *)tableView isGroupRow:(NSInteger)row { return row == 0; // the first row of the table will be treated

Re: Guidance for Cocoa's steep learning curve

2008-05-15 Thread John Terranova
On May 15, 2008, at 6:33 PM, Joseph Ayers wrote: Imagine growing up on Excel and then dealing with NSTableView. How did this Cocoa NSTableView architecture evolve. Where is the history? When I first started with Cocoa I spent (and I still spend) a lot of time in code for NSTableView (and