Why use NSClassWithString?
Why use NSClassWithString?
- Subject: Why use NSClassWithString?
- From: Seth Willits <email@hidden>
- Date: Fri, 15 Aug 2003 12:07:44 -0700
I was trying to figure out how to use a NSAppleScript object to execute
an AppleScript, but the selector initWithSource: wasn't working until I
found a small portion of an example on the Stone site which used
NSClassWithString. Why does it have to be done this way?
[[[NSClassFromString(@"NSAppleScript") alloc] initWithSource:[textField
string]] autorelease];
Seth Willits
------------------------------------------------------------------------
---
President and Head Developer of Freak Software -
http://www.freaksw.com
Q&A Columnist for REALbasic Developer Magazine -
http://www.rbdeveloper.com
Webmaster for REALbasic Game Central -
http://www.freaksw.com/rbgames
"Procrastination is the worst of my virtues, but one that I associate
with all too often."
-- Seth Willits
------------------------------------------------------------------------
---
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.