• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Cocoa Bindings and multiple nibs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • NSURL tunneling
      • From: John <email@hidden>
    • Re: Cocoa Bindings and multiple nibs
      • From: Jonathon Mah <email@hidden>
  • Prev by Date: Re: newbie EXC_BAD_ACCESS
  • Next by Date: Re: Cocoa Bindings and multiple nibs
  • Previous by thread: Re: Start application by dragging a file on it
  • Next by thread: Re: Cocoa Bindings and multiple nibs
  • Index(es):
    • Date
    • Thread