-[NSView lockFocus] assertion failure

2009-04-15 Thread James G.
I've got an NSTextField within a layer-backed view, with several other layers. The text field sits hidden on top of two other CALayers. When the view is double clicked, the NSTextField is unhidden, to allow the user to edit the text. When the user completes the editing, I want to hide the NSTextFie

Re: Challenge 18 in Hillegass Book

2008-08-11 Thread James G.
On Aug 10, 2008, at 10:03 AM, Kyle Sluder wrote: On Sat, Aug 9, 2008 at 8:54 PM, James Gorham <[EMAIL PROTECTED]> wrote: I think that's where I'm unclear. Making the Document class aware of the view is easy enough with an IBOutlet. But how to properly make the view aware of the document I'

Challenge 18 in Hillegass Book

2008-08-08 Thread James G.
I stepped away from the book for a bit, and I'm now trying to work through the Challenge 18 of Hillegass's Cocoa book (3rd edition). The gist of the challenge is to create a document-based application allowing the user to draw ovals in arbitrary locations and size using NSBezierPath, as wel