FROM : Alexey Zakhlestin
DATE : Mon Apr 30 22:31:17 2007
yes. That seems like the correct way, now I just have to figure out
how to tell interfacebuilder, that I want to:
a) threat one of the keys of Shared User Defaults as an NSMutableSet (done)
b) thread elements of NSMutableSet as instances of my custom class and
not NSMutableDictionary (have to figure out this part)
c) bind UI elements to keys of that custom class
On 4/30/07, Matt Neuburg <<email_removed>> wrote:
> On Mon, 30 Apr 2007 00:12:19 +0400, "Alexey Zakhlestin" <<email_removed>>
> said:
> >Hi cocoa-dev
> >
> >I am implementing the UI which has a 1-columnt table on the left bound
> >to the specific key of Shared User Defaults. On the right it has
> >several text inputs which are bound to the selected element of the
> >table
> >
> >I used this as an example and it works fine:
> >http://www.cocoabuilder.com/archive/message/2004/11/6/120927
> >
> >But, now I want to add the constraint to one of text inputs: it should
> >be numeric-only. I would prefer to have it done using bindings-level,
> >if possible. (I know I can do that by inheriting nstextfield, but that
> >doesn't sound like a good idea)
>
> I may be misunderstanding, but in my apps I do what I *think* you are asking
> for by implementing validateValue:forKeyPath:error:. m.
>
>
> --
> matt neuburg, phd = <email_removed>, <http://www.tidbits.com/matt/>
> A fool + a tool + an autorelease pool = cool!
> AppleScript: the Definitive Guide - Second Edition!
> <http://www.amazon.com/gp/product/0596102119>
>
>
>
>
--
Alexey Zakhlestin
http://blog.milkfarmsoft.com/
DATE : Mon Apr 30 22:31:17 2007
yes. That seems like the correct way, now I just have to figure out
how to tell interfacebuilder, that I want to:
a) threat one of the keys of Shared User Defaults as an NSMutableSet (done)
b) thread elements of NSMutableSet as instances of my custom class and
not NSMutableDictionary (have to figure out this part)
c) bind UI elements to keys of that custom class
On 4/30/07, Matt Neuburg <<email_removed>> wrote:
> On Mon, 30 Apr 2007 00:12:19 +0400, "Alexey Zakhlestin" <<email_removed>>
> said:
> >Hi cocoa-dev
> >
> >I am implementing the UI which has a 1-columnt table on the left bound
> >to the specific key of Shared User Defaults. On the right it has
> >several text inputs which are bound to the selected element of the
> >table
> >
> >I used this as an example and it works fine:
> >http://www.cocoabuilder.com/archive/message/2004/11/6/120927
> >
> >But, now I want to add the constraint to one of text inputs: it should
> >be numeric-only. I would prefer to have it done using bindings-level,
> >if possible. (I know I can do that by inheriting nstextfield, but that
> >doesn't sound like a good idea)
>
> I may be misunderstanding, but in my apps I do what I *think* you are asking
> for by implementing validateValue:forKeyPath:error:. m.
>
>
> --
> matt neuburg, phd = <email_removed>, <http://www.tidbits.com/matt/>
> A fool + a tool + an autorelease pool = cool!
> AppleScript: the Definitive Guide - Second Edition!
> <http://www.amazon.com/gp/product/0596102119>
>
>
>
>
--
Alexey Zakhlestin
http://blog.milkfarmsoft.com/
| Related mails | Author | Date |
|---|---|---|
| Alexey Zakhlestin | Apr 29, 22:12 | |
| Mike Abdullah | Apr 29, 22:47 | |
| Alexey Zakhlestin | Apr 29, 23:16 | |
| mmalc crawford | Apr 30, 00:20 | |
| Matt Neuburg | Apr 30, 18:53 | |
| Alexey Zakhlestin | Apr 30, 22:31 |






Cocoa mail archive

