Re: Good example code for an Inspector/Get Info window?
Re: Good example code for an Inspector/Get Info window?
- Subject: Re: Good example code for an Inspector/Get Info window?
- From: Nick Zitzmann <email@hidden>
- Date: Fri, 2 Jan 2004 20:17:24 -0800
On Jan 2, 2004, at 2:50 PM, Jim Rankin wrote:
The Inspector/Get Info paradigm is a common Cocoa design pattern, but
is there a good source code example of how to implement this pattern in
a Document based application? A quick perusal of /Developer/Examples
doesn't turn up anything.
Have you tried OmniAppKit? That framework has an implementation of
inspectors for Cocoa.
The difficult part in writing inspectors is figuring out when to update
the inspector. If you're using a class that has a did-change delegate
or notification, then this isn't too difficult - just listen for
changes, and tell the inspector to update when a change occurs. If
you're using NSBrowser or NSMatrix, or some other view that has no
built-in way of telling others that the class changed, then some
subclassing will be necessary...
Nick Zitzmann
<
http://seiryu.home.comcast.net/>
S/MIME signature available upon request
"That's a funny thing to promise. Well, you can't never let anything
happen to him [Nemo]; then, nothing would ever happen to him." - Dory,
from the movie "Finding Nemo"
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.