[Ann] ObjCServices
[Ann] ObjCServices
- Subject: [Ann] ObjCServices
- From: Matt Gemmell <email@hidden>
- Date: Mon, 9 Sep 2002 03:56:16 +0100
Hi folks,
I've been playing around in Project Builder this evening, and put
together something I hope some of you might find useful. ObjCServices
is a system Service giving six commands to act on the selected text in
any services-aware application:
Inst Vars to Accessor Implementations
Inst Vars to Accessor Implementations (Clipboard)
Inst Vars to Accessor Prototypes
Inst Vars to Accessor Prototypes (Clipboard)
Prototypes to Accessor Implementations
Prototypes to Accessor Implementations (Clipboard)
As you might expect, it takes a list of instance variable declarations
or accessor prototypes and creates appropriate "get" and "set" accessor
method prototypes or implementations, either replacing the selection or
putting the new prototypes/implementations on the clipboard. "Set"
accessors use the "retain then release" style, by the way.
Full source (Jaguar or later) included in the 37k download. It's here:
<
http://www.scotlandsoftware.com/ftp/objc_services.sit.hqx>
Hope someone finds it useful.
Cheers,
-Matt
--
Matt Gemmell
Scotland Software
http://www.scotlandsoftware.com/
_______________________________________________
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.