• 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: How to write a "function" in Cocoa?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to write a "function" in Cocoa?


  • Subject: Re: How to write a "function" in Cocoa?
  • From: Scott Stevenson <email@hidden>
  • Date: Fri, 3 Nov 2006 23:40:02 -0800


On Nov 3, 2006, at 11:31 PM, Joel Norvell wrote:

I've had to implement identical functions in unrelated classes to manipulate
NSRects. These functions also use Cocoa objects. Doing a Category doesn't
seem feasible here since NSRect is not a class. How can I factor these
functions into a file like MyRectUtilities.h?

Have you run into a specific problem or are you just asking about style?

In terms of style, just putting the two functions in the same file (as you describe) is fine.

   - Scott
_______________________________________________
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


References: 
 >How to write a "function" in Cocoa? (From: Joel Norvell <email@hidden>)

  • Prev by Date: Re: How to write a "function" in Cocoa?
  • Next by Date: Re: What all is Cocoa used for?
  • Previous by thread: Re: How to write a "function" in Cocoa?
  • Next by thread: Re: How to write a "function" in Cocoa?
  • Index(es):
    • Date
    • Thread