Bounds of selected NSTableView cell

2012-04-08 Thread Koen van der Drift
I am trying to find out what the bounds are of the cell of an NSTableView that was clicked in. I'd like to use that rect to show a NSPopover when the user double clicks on a cell. I have this in my NSTableView controller class: -(IBAction)doubleClickAction:(id)sender { NSInteger row =

Re: Bounds of selected NSTableView cell

2012-04-08 Thread Felix Franz
Hi Koen, you can use NSTableViewframeOfCellAtColumn:row: to get the frame of the cell at the columnIndex/rowIndex. The controlView of the cell is the NSTableView-object, and thus you always get the bounds of the table itself. For the rects of rows/columns you can use rectOfRow:/rectOfColumn:

Re: Bounds of selected NSTableView cell

2012-04-08 Thread Koen van der Drift
On Apr 8, 2012, at 12:08 PM, Felix Franz wrote: you can use NSTableViewframeOfCellAtColumn:row: to get the frame of the cell at the columnIndex/rowIndex. Thanks! - Koen. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

Re: Core Data migration, what to do when adding the nth version of your model?

2012-04-08 Thread Jerry Krinock
On 2012 Apr 04, at 16:40, Sean McBride wrote: How do I update my existing .xcmappingmodels to point to version 4 instead of 3? When viewing the xcmappingmodel in Xcode 4, should I use the 'destination' popup and change it from 3 to 4? After doing so, and diffing its xcmapping.xml, I

copy from iCloud to sandbox fails

2012-04-08 Thread Roland King
I allow my users to turn iCloud on and off. When they turn it off, it allows you to either move the contents of iCloud locally, removing it from the cloud, or copy it, so any other devices still using the cloud version can continue to use it. The move seems to work just fine using

-[NSURL path] If the path has a trailing slash it is stripped

2012-04-08 Thread Jerry Krinock
In the documentation of -[NSURL path], it says: If the path has a trailing slash it is stripped. Indeed, when I create an NSURL from the string http://example.com/blah/;, its -path is /blah. Does anyone know why? I need the path, the whole path, verbatim. Also, does anyone know a