Re: Adding simple AppleScript commands to a Cocoa application
Re: Adding simple AppleScript commands to a Cocoa application
- Subject: Re: Adding simple AppleScript commands to a Cocoa application
- From: Ondra Cada <email@hidden>
- Date: Wed, 19 Apr 2006 05:56:47 +0200
Dustin,
On 19.4.2006, at 4:53, Dustin Voss wrote:
The problem is that Objective-C does not have the concept of object-
independent actions. The closest it has is NSInvocation, and even
that is meaningless until it is tied to one, specific object.
There cannot be really a concept of objectless operations in an
object-oriented environment.
On the other hand, classes--being static objects--can in practice
fill this gap nicely and, from the implementation point of view, very
cleanly: if, that is, the designer cares :)
For example, an NSObject category containing just a bunch of class
methods can be in practice pretty well considered an "objectless"
list of actions.
---
Ondra Čada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden