• 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
Re: NSViewController Binding Problem continued
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSViewController Binding Problem continued


  • Subject: Re: NSViewController Binding Problem continued
  • From: Cathy Shive <email@hidden>
  • Date: Sat, 19 Jul 2008 00:18:08 +0200

On Jul 17, 2008, at 10:26 PM, Hamish Allan wrote:

You might wish to file an enhancement request for NSViewController to
provide an init method taking a representedObject to be set up before
attempting bindings etc., which would circumvent this issue.


I wonder if it would actually make a difference in this case. Since the nib doesn't get loaded until the 'load view' method is called and she's setting the rO directly after the initializer (before requesting the view), the result would be the same, right? Either way, the object you're binding to is the view controller and not the array controller that the NSTableView requires.


Or you could argue that, according to the principles of duck typing,
NSTableView shouldn't care, just as long as
representedObject.arrangedObjects.displayText quacks like an array. In
which case it's a bug.


Seems like this is the real issue ;)

I'm really curious to find a solution to this, too - one that doesn't involve adding another array controller to the app or moving the bindings setup to code. Going to code isn't too bad, tho...

I guess that it would be nice if IB would let you bind directly to representedObject when the File's Owner's class is set to an NSViewController so that when the nib is loaded, the table view gets what it wants.

Just some wishful thinking.

Best,
Cathy


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: NSViewController Binding Problem continued
      • From: "Hamish Allan" <email@hidden>
    • Re: NSViewController Binding Problem continued
      • From: Jonathan Dann <email@hidden>
References: 
 >NSViewController Binding Problem continued (From: Ivy Feraco <email@hidden>)
 >Re: NSViewController Binding Problem continued (From: Ron Lue-Sang <email@hidden>)
 >Re: NSViewController Binding Problem continued (From: "Hamish Allan" <email@hidden>)

  • Prev by Date: Re: tidying HTML up
  • Next by Date: Re: NSMutableDictionary autorelease chrashes application
  • Previous by thread: Re: NSViewController Binding Problem continued
  • Next by thread: Re: NSViewController Binding Problem continued
  • Index(es):
    • Date
    • Thread