• 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
Filter with multiple bindings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Filter with multiple bindings


  • Subject: Filter with multiple bindings
  • From: Luca Torella <email@hidden>
  • Date: Sun, 21 Nov 2004 16:18:47 +0100

Hello,
I've got a problem with bindings. Now I'm gonna explain my problem.
I've got an NSTableView with multiple columns. There's a NSArrayController which, using a class created by me with several accessor methods, controls the records.
Moreover there's a special column with NSPopUpButtonCell. These popup button are driven by another NSArrayController which refers to another class with other accessor methods.
The point is that I'm trying I'm trying to filter the various entries. There's a toolbar where I've added an NSPopUpMenu. This popup menu is populated by the same array which drives the popup button cells and it should filter the column with the menu. This filter menu is correctly populated, but I can't make the filter work since i can't recognized how the NSArrayController saves data. My data class have a NSString for the entries of the menu, but when I use NSLog to display the NSString stores, instead of displaying the correct string, it display a code like <23141>. I've also tried converting the data to NSNumber, thinking that it stores a number that corresponds to the index in the menu, but NSLog returns always the same strange code.
Until when I can't discover how it stores data, I can't make my filter work. Please tell me what's I'm wrong or if there's a different approch to the problem. Also similiar examples are welcomes.


Thanks in advance,
Luca.

_______________________________________________
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:
    • Re: Filter with multiple bindings
      • From: Scott Stevenson <email@hidden>
  • Prev by Date: Password dialog
  • Next by Date: Wake up the machine with a timer
  • Previous by thread: Password dialog
  • Next by thread: Re: Filter with multiple bindings
  • Index(es):
    • Date
    • Thread