[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-dev] Cocoa primitives



On Tuesday, December 17, 2002, at 03:24 PM, James McCartney wrote:


I'd rather not since that would encourage people to keep around pointers to SC objects, which is always dangerous. It is better to put the object in a classvar and send a message to the class.

there can only be one openDialog at a time i suppose.
so instead of doing an SC instance, i should keep it all in the CocoaDialog class ?
then call
	CocoaDialog-ok

i am using the class to retain the instance, which seems safe.
but yes, i have an objective-c instance holding a pointer to an sc instance.


You'll also have to close the dialog when the class library is recompiled.
good point.





On Tuesday, December 17, 2002, at 11:30 AM, crucial felix wrote:

i think SCVirtualMachine could have a method:

-(void)object:(PyrObject*)object perform:(PyrSymbol*)selector

--
--- james mccartney james@xxxxxxxxxxxxxx <http://www.audiosynth.com> SuperCollider - a real time synthesis programming language for the PowerMac.
<ftp://www.audiosynth.com/pub/updates/SC2.2.16.sea.hqx>

_______________________________________________
sc-dev mailing list
sc-dev@xxxxxxxxxxxxxxx
http://www.create.ucsb.edu/mailman/listinfo/sc-dev



-felix