• 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: Bindings - Address Display Problem?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Bindings - Address Display Problem?


  • Subject: RE: Bindings - Address Display Problem?
  • From: "Wayne Lau" <email@hidden>
  • Date: Sat, 13 Nov 2004 13:03:53 -0800

One thing that I forgot to mention was that in my subclassed NSArrayController class, I have a help function that calls "[self rearrangeObjects] to force arrangeObjects: to be called (the custom version).

Not sure if that helps.

From: "Wayne Lau" <email@hidden>
To: email@hidden
Subject: Bindings - Address Display Problem?
Date: Sat, 13 Nov 2004 12:53:19 -0800

Hi,

In Interface Builder, I currently have an NSArrayController setup whose contentArray is bound to an array set in my NSDocument class.

Now, I have an NSPopUpButton in the GUI and I bind its "content" bindings to the NSArrayController and it works great as it displays all my array entries in there.

However, I subclassed NSArrayController so I could ovverride the arrangeObjects: function and filter the list. When I went to run the program again, the NSPopUpButton displayed "<Item: 0x3eb310>, where Item is my data class.

Initially I thought my version of arrangeObjects was causing errors, but when I only put "return [super arangeObjects:objects];" the program still displays that wierd address problem in the popup.

Could it be my binding in IB? Is it supposed to be set to something else? I'm not too experienced with the other binding options...

Any help would be great. Thanks.

_________________________________________________________________
Take advantage of powerful junk e-mail filters built on patented Microsoft® SmartScreen Technology. http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines Start enjoying all the benefits of MSN® Premium right now and get the first two months FREE*.


_______________________________________________
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

_________________________________________________________________
Powerful Parental Controls Let your child discover the best the Internet has to offer. http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines Start enjoying all the benefits of MSN® Premium right now and get the first two months FREE*.


_______________________________________________
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: Bindings - Address Display Problem?
  • Next by Date: Re: Software To Interpret a pattern within an Image
  • Previous by thread: Re: Bindings - Address Display Problem?
  • Next by thread: Using Cocoa to get UID
  • Index(es):
    • Date
    • Thread