[Vm-beginners] Re: Objective-C

Sean P. DeNigris sean at clipperadams.com
Mon May 2 00:14:05 UTC 2011


Thanks to John for pointing out that an NSString must be passed to
bundleWithPath:

The following works with the Squeak 5.7.4.1.app VM:
bundle := ObjectiveCObject findClassName: 'NSBundle'.
nsStringClass := ObjectiveCBridge classObjectForName: 'NSString'.
string := '/Applications/Mail.app'.
nsString := nsStringClass alloc initWithBytes: string length: string size
encoding: 4.
aBundle := bundle bundleWithPath: nsString.

Sean--
View this message in context: http://forum.world.st/Objective-C-tp3487777p3489034.html
Sent from the Smalltalk VM - Beginners mailing list archive at Nabble.com.


More information about the VM-beginners mailing list