• 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: Error using categories: 'cannot find interface section for MyClass'
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Error using categories: 'cannot find interface section for MyClass'


  • Subject: Re: Error using categories: 'cannot find interface section for MyClass'
  • From: Uli Kusterer <email@hidden>
  • Date: Thu, 22 Feb 2007 22:31:00 +0100

Am 21.02.2007 um 20:53 schrieb Jon Hull:
Well, since you control both classes, you could always put both sections into one set of .h and .m files. That is probably the simplest method. Alternatively, if you need separate files, you might be able to #import <MyClassExtension.h> in MyClass.m, but I think you might need the @class directive to avoid a recursive include.

You could create a "master header" that includes both headers, and use that in your other code. Or, alternatively, you could just put the #import "MyClassExtension.h" (use quotes, not angle brackets -- those are reserved for system headers in system header locations) at the bottom of "MyClass.h".


Cheers,
-- M. Uli Kusterer
http://www.zathras.de



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Error using categories: 'cannot find interface section for MyClass' (From: "Arthur C." <email@hidden>)
 >Re: Error using categories: 'cannot find interface section for MyClass' (From: Jon Hull <email@hidden>)

  • Prev by Date: must change control of NSTokenField selection
  • Next by Date: PackageMaker. How to start application after closing installer.
  • Previous by thread: Re: Error using categories: 'cannot find interface section for MyClass'
  • Next by thread: Re: Error using categories: 'cannot find interface section for MyClass'
  • Index(es):
    • Date
    • Thread