• 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: Trouble with design pattern
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trouble with design pattern


  • Subject: Re: Trouble with design pattern
  • From: email@hidden
  • Date: Fri, 18 Feb 2011 11:46:54 -0800

On Feb 18, 2011, at 11:20 AM, Carlos Eduardo Mello wrote:

> I need to declare an instance of MyDocument inside my view's classes. The compiler won't let me do this unless I import MyDocument to the class definitions.

you can use:

@class MyDocument;

in your .h file to forward declare MyDocument as a class without importing its definition.

_murat_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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

  • Follow-Ups:
    • Re: Trouble with design pattern
      • From: Carlos Eduardo Mello <email@hidden>
References: 
 >Trouble with design pattern (From: Carlos Eduardo Mello <email@hidden>)

  • Prev by Date: Trouble with design pattern
  • Next by Date: NSDistributedNotificationCenter questions.
  • Previous by thread: Trouble with design pattern
  • Next by thread: Re: Trouble with design pattern
  • Index(es):
    • Date
    • Thread