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: Scott Anguish <email@hidden>
- Date: Sat, 3 Jan 2004 02:38:38 -0500
On Jan 2, 2004, at 11:17 PM, Nick Zitzmann wrote:
>
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...
>
why would you need to subclass NSBrowser or NSMatrix?
your application will need to detect the change in selection, but both
those have target methods that can be used to determine that something
has been clicked on. Delegate methods give some additional control
over NSBrowser selection.
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
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.