• 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
IBOutlet id
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

IBOutlet id


  • Subject: IBOutlet id
  • From: Daniel Todd Currie <email@hidden>
  • Date: Fri, 20 Feb 2004 23:57:43 -0800

I have a couple of custom classes for which I am creating instances in Interface Builder. I declare these classes as follows, and then link them up in IB:

IBOutlet id anNSWindowSubclass;

The problem is that all of the messages I send to anNSWindowSubclass yield compiler warnings (which aren't a problem, they are just annoying):

warning: cannot find method `-updateLocations'; return type `id' assumed

This is understandable, since it doesn't know the class of the object to which these messages are being sent.

What I would like to do is the following declaration:

IBOutlet NSWindowSubclass *anNSWindowSubclass;

But when I declare the instance that way, I get this error:

error: parse error before "NSWindowSubclass"

Why do I get this error? What have others done differently to avoid this problem?

Thanks,

-- Daniel Currie
_______________________________________________
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.

  • Follow-Ups:
    • Re: IBOutlet id
      • From: "Louis C. Sacha" <email@hidden>
    • Re: IBOutlet id
      • From: mmalcolm crawford <email@hidden>
  • Prev by Date: precompiled header issues...
  • Next by Date: Re: IBOutlet id
  • Previous by thread: Re: ctags
  • Next by thread: Re: IBOutlet id
  • Index(es):
    • Date
    • Thread