Cocoa Bindings and multiple nibs
Cocoa Bindings and multiple nibs
- Subject: Cocoa Bindings and multiple nibs
- From: Anton Kiland <email@hidden>
- Date: Sun, 20 Mar 2005 14:24:51 +0100
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hey!
I want to make a multiple document application using one window per
document, plus one
inspector window with values changing to the correct one for the
current document.
I have a controller, which gets notified every time a new document
window gets the
frontmost, and sets a variable named current to the current NSDocument.
To get away from a whole lot of code, I want to use cocoa bindings.
So I set up a NSObjectController pointing to my controller class in my
MainMenu.nib.
Then in the inspector window in that nib, I bind one of the fields to
the NSObjectController,
with the path current.properties.name. Where, as stated, current is the
current NSDocument,
properties is an NSMutableDictionary in the NSDocument, and name is an
added key to
that dictionary.
I have as of yet gotten to different results when trying to get this to
work:
1) Nothing happens what so ever.
2) The field is filled with the words "No selection"
How to solve this?
Huge thanks in advance!
Yours Sincerely,
Anton Kiland.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)
iD8DBQFCPXmmX5qtjlHcF1YRAs9fAKDOJDLERXIdzcdi6VNTh/u224GG9ACdGFal
V1TlzOwfW+wnTgQWbsJCZtY=
=c7oK
-----END PGP SIGNATURE-----
_______________________________________________
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