On Thu, Jul 8, 2010 at 10:19 AM,  <k...@highrolls.net> wrote:
>> his seems weird. Why assign the panel/window to your own ivar when this is
>> exactly -[NSWindowController window] is designed to do for you?
>
> I was thinking I might need to reference it and rather than call for it just
> have it hanging around. Yes, no?

Did you profile (with Shark or Instruments) your code, and did the
profiler tell you that calls to -window are taking up a significant
amount of your app's time? If not, what you're doing is called
"premature optimization," and it's generally considered a bad idea.

sherm--

-- 
Cocoa programming in Perl:
http://www.camelbones.org
_______________________________________________

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