[Openmcl-devel] Snow Leopard snafu

Ron Garret ron at flownet.com
Tue Sep 1 10:16:18 PDT 2009


Thanks!

I would still like to understand what happened to make my old code  
stop working.  If it wasn't upgrading to SL, what was it, and when did  
it happen?

rg


On Sep 1, 2009, at 10:06 AM, Gail Zacharias wrote:

> I'm not sure what the recommended way is, but I just happened to be  
> looking at some code that used ccl::%make-nsstring.
>
>
> At 9/1/2009 12:59 PM, Ron Garret wrote:
>> Oh blarg, this doesn't work either:
>>
>> ? (make-instance gui::ns-lisp-string :with-string (coerce "foo"
>> 'simple-base-string))
>> > Error: value "foo" is not of the expected type (OR MACPTR NULL).
>>
>> So let me just ask: what is the Right Way to convert a Lisp string to
>> an NSString nowadays?
>>
>> rg
>>
>> On Sep 1, 2009, at 9:54 AM, Ron Garret wrote:
>>
>> > Ah, thank you.
>> >
>> > When did this change?  I'm pretty sure that the old withless  
>> version
>> > worked under Leopard not that long ago (though in my current  
>> state of
>> > mind I'm not at all sure that I can be 100% certain of anything).
>> >
>> > rg
>> >
>> > On Sep 1, 2009, at 9:40 AM, Greg Pfeil wrote:
>> >
>> >> On 1 Sep 2009, at 12:20, Ron Garret wrote:
>> >>
>> >>> OK, I get that I'm being a moron and I'm missing something  
>> obvious.
>> >>> But my house nearly burned down three days ago so I'm not really
>> >>> firing on all cylinders at the moment and would appreciate it  
>> if you
>> >>> could cut me a little slack here.  What is «the "with"  
>> component»?
>> >>
>> >> The make-instance arguments get concatenated to create the Obj-C
>> >> init message name
>> >>
>> >>      (make-instance 'foo :string "") becomes initString:
>> >>
>> >> while
>> >>
>> >>      (make-instance 'foo :with-string "") becomes initWithString:
>> >>
>> >> The latter looks like how most init messages are named. So you
>> >> probably just need to chang :string to :with-string, and the
>> >> behavior shouldn't have anything to do with Snow Leopard.
>> >>
>> >>> On Sep 1, 2009, at 2:52 AM, Gary Byers wrote:
>> >>>
>> >>>> As if that wasn't bad enough, that evil old Snow Leopard has
>> >>>> somehow
>> >>>> convinced Leopard to behave the same way.  Retroactively.  And  
>> it's
>> >>>> managed to wipe out my memory of the "with" component ever  
>> having
>> >>>> been optional, though I have a disturbing sense of having
>> >>>> mistakenly
>> >>>> claimed that it was in email a few months ago.
>> >>>>
>> >>>> All this for only US$29.  I'd like to see Windows 7 try to top
>> >>>> that!
>> >>>>
>> >>>>
>> >>>> On Tue, 1 Sep 2009, Ron Garret wrote:
>> >>>>
>> >>>>> I upgraded to Snow Leopard, and now this happens:
>> >>>>>
>> >>>>> ? (make-instance gui::ns-lisp-string :string (coerce "foo"
>> >>>>> 'simple-
>> >>>>> base-string))
>> >>>>>> Error: Unknown ObjC init message: "initString:"
>> >>>>>
>> >>>>> rg
>> >>>>>
>> >>>>> _______________________________________________
>> >>>>> Openmcl-devel mailing list
>> >>>>> Openmcl-devel at clozure.com
>> >>>>> http://clozure.com/mailman/listinfo/openmcl-devel
>> >>>>>
>> >>>>>
>> >>>
>> >>> _______________________________________________
>> >>> Openmcl-devel mailing list
>> >>> Openmcl-devel at clozure.com
>> >>> http://clozure.com/mailman/listinfo/openmcl-devel
>> >>
>> >
>> > _______________________________________________
>> > Openmcl-devel mailing list
>> > Openmcl-devel at clozure.com
>> > http://clozure.com/mailman/listinfo/openmcl-devel
>>
>> _______________________________________________
>> Openmcl-devel mailing list
>> Openmcl-devel at clozure.com
>> http://clozure.com/mailman/listinfo/openmcl-devel
>




More information about the Openmcl-devel mailing list