• 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: Obj-C language question: C function within @implementation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Obj-C language question: C function within @implementation


  • Subject: Re: Obj-C language question: C function within @implementation
  • From: Jeff Harrell <email@hidden>
  • Date: Thu, 3 Jul 2003 10:19:23 -0500

On Thursday, July 3, 2003, at 10:15 AM, Sean McBride wrote:

The error my coworker made (aside from step 3 itself :)) was to
accidentally put the C function within the @implementation block, and it
still compiles.

I'm also not an Objective C expert, but I don't believe this is an error. I forget the details, exactly, but I think I remember writing a program that used an NSArray method for sorting that called on a comparator function. Not a method, but an honest-to-god C-style function. I put this function in my implementation, and it compiled and ran just fine.

So unless I also made the same mistake, I think this is acceptable. After all, Objective C is just C-plus-some-more, right?

--
email@hidden
http://homepage.mac.com/jharrell
_______________________________________________
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: 
 >Re: Obj-C language question: C function within @implementation (From: "Sean McBride" <email@hidden>)

  • Prev by Date: Re: NSTableView w/ custom cell draws only first
  • Next by Date: Capture screen when full screen OpenGL application running
  • Previous by thread: Re: Obj-C language question: C function within @implementation
  • Next by thread: Re: Obj-C language question: C function within @implementation
  • Index(es):
    • Date
    • Thread