Hello,

I'm creating a document-based drawing application and I'm looking for some 
expert advice on the approach to take for referencing my document from a custom 
view that will draw itself based on the data that is stored in the document 
object.
My custom view, which you could see as a kind of drawing canvas, is not 
instantiated from the document window nib, but rather is created by the 
windowcontroller and added to the view hierarchy in windowDidLoad:.

I was thinking of using a weak property for my custom view to reference the 
document and set this property from the same windowDidLoad: method, but I'm not 
sure if this is a good approach to take. Any advise on this?

Thank you,
-- 
Luc Van Bogaert

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to