Le 8 déc. 06 à 11:07, Baptiste Heyman a écrit :
> --- In iolanguage@yahoogroups.com, "Baptiste
Heyman"
> <baptisteheyman ...> wrote:
>
> No there is no objcValue slot, remember that the
Io->Objc
> > autoconversion is still on, so you don't need to
worry when
> passing Io
> > objects to Objective-C functions.
> >
> > Anyway if you want a IoString->NSString
conversion, you can use
> > [NSString stringWithCString:yourIoString], or just
add
> > Sequence objcValue := method([ObjcBridge
classNamed("NSString")
> > stringWithCString:self]).
> >
> > Or am i totally missing the point ?
Sometimes it's more convenient to manipulate Io strings
thanks to the
better API. That's why I asked about the possibility to get
Io
strings from NSString.
> In fact now that I look at it with a fresh mind,
ioValue should not
> exist either, since ioValue == cString for NSString and
ioValue ==
> doubleValue for NSNumber.
>
> What do you think ?
This is true, but it's not self-evident at all… I think it
could
still make sense to add IoValue and ObjcValue. Otherwise
this can be
circumvented by documenting the trick properly.
Quentin.
--
Quentin Mathé
qmathe club-internet.fr
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://grou
ps.yahoo.com/group/iolanguage/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://
groups.yahoo.com/group/iolanguage/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:iolanguage-digest@yahoogroups.com
mailto:iolanguage-fullfeatured@yahoogroups.com
<*> To unsubscribe from this group, send an email to:
iolanguage-unsubscribe@yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.c
om/info/terms/
|