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'
But the question I think is still valid and one I'm I'm trying to
figure out myself. How, for instance, would you have the view request
data from the document (or any other object for that matter). I
understand that it may not always be the best design choices but how
is it done? Posting notificat
On Aug 10, 2008, at 5:22 PM, Ashley Perrien wrote:
But the question I think is still valid and one I'm I'm trying to
figure out myself. How, for instance, would you have the view
request data from the document (or any other object for that matter).
id doc = [[[self window] windowController
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'm unsure of.
You're missing the point. You don't
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'm unsure of.
You're missing the point. You don't c
On Aug 8, 2008, at 6:40 PM, Graham Cox wrote:
So there needs to be a connection between model, controller and view
that allows you to communicate freely back and forth. For now you
could just use the view as the model, unless you are really keen to
explore MVC at this point rather than jus
On 9 Aug 2008, at 8:55 am, James G. wrote:
My question is along the lines of the "proper" way to design the
classes. I'll have a custom view class that will do the drawing, and
the collection of ovals will be an iVar of the MyDocument class, so
that I can support de/coding and undo. What's
Hi James,
I'd recommend looking at the AppKit Sketch example for architecture and Scott
Stevenson's tutorial for using NSBezierPath:
http://cocoadevcentral.com/d/intro_to_quartz_two/
HTH,
Joel
___
Cocoa-dev mailing list (Cocoa-dev@lists.ap
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