• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
[Ann] ObjCServices
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[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.

  • Prev by Date: Re: Objects between threads
  • Next by Date: Passing autoreleased objects in Distributed Object calls?
  • Previous by thread: Re: Outlineview byitem.. what is "item" ?
  • Next by thread: Re: [Ann] ObjCServices
  • Index(es):
    • Date
    • Thread