Re: Creating a file using NSURL

2012-02-16 Thread Tomas Franzén
On 16 feb 2012, at 07:18, Quincey Morris wrote: >> Error Domain=NSCocoaErrorDomain Code=4 "The file “[…]” doesn’t exist." >> UserInfo=0x400f252c0 {NSFilePath=/Volumes/[…], NSUnderlyingError=0x400f25140 >> "The operation couldn’t be completed. No such file or directory"} > > IOW, NSData is report

Object -> NSTreeNode?

2009-02-18 Thread Tomas Franzén
ew is concerned, it deals with NSTreeNodes. So I need a way to get the NSTreeNode for a given object. + treeNodeWithRepresentedObject: doesn't help since it creates a new node. This seems like something that should be easy, but I can't figure it out. Thanks, Tomas Franzén Lig

-[NSTreeController moveNode:toIndexPath:] broken?

2009-02-07 Thread Tomas Franzén
out of sync. Is moveNode:toIndexPath: completely broken? Thanks, Tomas Franzén Lighthead Software http://www.lightheadsw.com/ ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to t

Vertically centering NSTextView

2008-12-06 Thread Tomas Franzén
Hi, I've written a text container to fit text inside of an oval shape (phew), and now I'd like to center the text vertically within the text view. What's the best way to approach this? NSLayoutManager is a jungle, and I'm not sure it's the right place to look.

Drag-to-poof and tables

2008-06-02 Thread Tomas Franzén
was ended with NSDragOperationNone inside of the table. Also, this poofs if the user presses the escape key, since that also sends NSDragOperationNone, which is horrible. This way just feels like a dirty hack. There must be a better way. How have you implemented it in your own apps? Thanks!

Conditional slideback?

2008-02-21 Thread Tomas Franzén
ack when dropping, like from draggedImage:endedAt:operation:? I tried the (now deprecated) method slideDraggedImageTo: from NSDraggingInfo, but it doesn't seem to actually do anything. Any ideas? Thanks. Tomas Franzén Lighthead Software http://www.lightheadsw.com/ ___