Maybe I'm missing your point but the compiler warning is trivial to address.

- [NSWindowController document] returns an id. If you want to call methods in 
your document class,

CarlosDocument * doc = (CarlosDocument*) [windowController document];
[doc carlosMethod];

However if your views are calling methods on your document, you're doing it 
wrong. Your views should operate on data provided by your document (preferably 
via bindings) and by actions your views call into your document (or window 
controller, depending upon how you've designed your app).

--
Jon Gary / Object Orienteer  / Ambrosia Software, Inc. -- 
http://www.AmbrosiaSW.com


On Feb 18, 2011, at 2:20 PM, Carlos Eduardo Mello wrote:

> 1) Is there a better way to approach this?

_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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

Reply via email to