Re: Making Inspectors
Re: Making Inspectors
- Subject: Re: Making Inspectors
- From: Stephane Sudre <email@hidden>
- Date: Sat, 25 Jun 2005 19:32:14 +0200
On samedi, juin 25, 2005, at 01:42 PM, Scott Anguish wrote:
On Jun 24, 2005, at 10:29 AM, Stephane Sudre wrote:
On 24 juin 05, at 15:54, Frank D. Engel, Jr. wrote:
Is there documentation anywhere on how to make "Inspector" windows,
such as the ones in Pages and Keynote? Is there any "standard" way
to do this in Cocoa?
I'm usually using NSNotification to communicate between the Inspector
and the document. YMMV.
that is certainly one way...
another, much easier in many cases, way is to use Cocoa bindings..
you'd want to bind items in the inspector to
NSApplication (or Shared Application, depending on what is
displayed)
and then to the mainWindow.windowController.document keypath.. you
may need to add the additional key of your document's controller as
appropriate..
Would the Cocoa Binding solution deal with the following case?
The document window contains a NSTextFieldCell in a NSTableView which
is being edited
The Inspector window contains a NSTextField which is the value in the
previous text field and it's being edited and validated.
Would the NSTextFieldCell in the NSTableView be modified (the
NSTextFieldCell edition is terminated and the NSTableView is reloaded)?
This would be nice if it works like that.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden