• 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: NSValueTransformer for selectedObjects controller key - bug?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSValueTransformer for selectedObjects controller key - bug?


  • Subject: Re: NSValueTransformer for selectedObjects controller key - bug?
  • From: Javigator <email@hidden>
  • Date: Wed, 3 Aug 2005 21:38:33 +0200

Sure, as I said: when coupling the same transformer to, for example, the selection key, everything works - well, at least the app starts and no sigtrap is thrown. It's all properly setup. It's just that the app sigtraps at start when the transformer is set for a array returning controller key.

Joern.



Am 3. Aug 2005 um 21:24 schrieb SA Dev:


Sorry - I meant to post a link to the relevant docs:
http://developer.apple.com/documentation/Cocoa/Conceptual/ ValueTransformers/index.html#//apple_ref/doc/uid/10000175i


It refers to 'registering' your transformer. Evidently, with transformers, there's 'more than meets the eye' ... :-D


On Aug 3, 2005, at 2:50 PM, Javigator wrote:


Hi,

the last two hours I was trying to get a custom value tranformer going for the enabled binding of a NSButton. Specifically I want it to work with the selectedObjects controller key ob the bound NSArrayController.

To no avail. All I get, right at the start of the app a sigtrap 5, in every way I tried:
2005-08-03 20:44:17.227 BindingTest[8351] An uncaught exception was raised
2005-08-03 20:44:17.227 BindingTest[8351] Cannot find value transformer with name IsFlagSelectedTransformer
2005-08-03 20:44:17.227 BindingTest[8351] *** Uncaught exception: <NSInternalInconsistencyException> Cannot find value transformer with name CustomTransformer


But the transformer is there, and working: when I change the controller key to some non-array delivering key, Cocoa is kind enought to let my app start. But not, if there's any of selectedIndexes, selectedObjects selected.

Anyone else experiencing this? Is this a bug? Or am I overlooking something?

Best regards,
Joern Janoschek.



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40silentalcove.net


This email sent to email@hidden






_______________________________________________ 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
References: 
 >NSValueTransformer for selectedObjects controller key - bug? (From: Javigator <email@hidden>)
 >Re: NSValueTransformer for selectedObjects controller key - bug? (From: SA Dev <email@hidden>)

  • Prev by Date: Re: Inserting an (int) into an NSMutableArray
  • Next by Date: saving and restoring an NSTableView's selected row with CoreData
  • Previous by thread: Re: NSValueTransformer for selectedObjects controller key - bug?
  • Next by thread: Solved Re: Fullscreen window after hiding Dock works in 10.4 but not 10.3
  • Index(es):
    • Date
    • Thread