• 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
Re: Q: how do you generate get/set methods?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Q: how do you generate get/set methods? (From: Alexander Spohr <email@hidden>)

  • Prev by Date: Re: Q: how do you generate get/set methods?
  • Next by Date: Re: [ANN] Site for standard toolbar icons gone live.
  • Previous by thread: Re: Q: how do you generate get/set methods?
  • Next by thread: Re: Q: how do you generate get/set methods?
  • Index(es):
    • Date
    • Thread