Re: Q: how do you generate get/set methods?
Re: Q: how do you generate get/set methods?
- Subject: Re: Q: how do you generate get/set methods?
- From: Andy Satori <email@hidden>
- Date: Sat, 17 Jan 2004 10:25:42 -0500
I use an Object Wizard that I wrote so I don't have to do that :-).
It's pretty simple, but it works, I'll release it to the public once I
get a few remaining loose ends tied up. For the most part, these are
dependancy issues.
Today, it uses libXSL and xsltproc via NSTask to generate it's output,
so you have to install those into reasonable system locations for it to
be usable, other than that, it's a very simple process of fill in the
blanks, click the appropriate checkboxes, generate the file and add it
your project.
In the future I hope to automate more of the process, and it only works
for new files, it doesn't support adding an iVar and accessor methods
to an existing object.
Andy
On Jan 17, 2004, at 8:42 AM, Alexander Spohr wrote:
>
hi list,
>
>
a simple question to all:
>
how do you generate init/get/set/dealloc declarations and methods for
>
ivars?
>
>
do you type them by hand for every ivar?
>
i hate writing that stuff again and again by hand :)
>
>
i am curious, because i have built a service doing that for me.
>
it works by
>
- selecting the header (cmd-a)
>
- invoking the service
>
- pasting it into the .h/.m file
>
>
would anyone be interested in that little tool?
>
>
atze
>
_______________________________________________
>
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.
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
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.