• 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
programmatically binding
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

programmatically binding


  • Subject: programmatically binding
  • From: email@hidden
  • Date: Tue, 11 Jan 2005 10:43:57 -0500

I have an NSTbaleView that is binded with an NSArrayController for its content. I have programmatically set up a binding from with my main documents subclass for the "selectedObjects" key. Whenever a selec tion occurs in my NSTableView, my method in my NSDocument is called with an array of Objects. Within my selected objects, i have an NSArray of NSTableColumn. I use those columns to fill in the columns of another NSTableView. So from my selectedObjects method in my NSDocument subclass, i call a method of my second MSTableView subclass to remove all of it's columns then fill it in with my new columns of my selectedObject. Removing all the columns goes fine, but then when i try and add the new columns, i get a crash. Is it ok to fill in a NSTbaleView's columns from this method? Is there anything i should be doing special? The columns are valid but it just crashes... if i look in the crash log, i see that the crash occurs in the NSTableView's method [NSTableView tile].

Any help is appreciated,
thanks
Alex

_______________________________________________
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


  • Prev by Date: Re: Slider with 2 knobs
  • Next by Date: Re: Revisiting NSTextView bugs in Interface Builder (rant about BugRe porter)
  • Previous by thread: Customizing the alert shown by validate<Key>
  • Next by thread: NSCell with NSImage and text
  • Index(es):
    • Date
    • Thread