• 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: IB action connections and classes implemented across several files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: IB action connections and classes implemented across several files


  • Subject: Re: IB action connections and classes implemented across several files
  • From: Antonio Nunes <email@hidden>
  • Date: Sat, 11 Apr 2009 13:11:42 +0200

On 11 Apr 2009, at 09:53, Antonio Nunes wrote:

Since one of my main classes is getting categorically huge, I have decided to split it up in several implementation files. I do this by putting sub-categories in their own .m file. For instance, all code to do with document input/output now lives in a separate file that is implemented as a category on the class.

The issue I am seeing is that IB connections that connect to methods implemented in the category, now generate warnings:
The 'someMethod:' action of \File's Owner' is connected to 'someObject' but someMethod:' is no longer implemented on 'someClass'.


If I keep the method declarations in the main header the warnings go away, but the compiler complains that they are not implemented on my class. If I put the methods in a category declaration I get the warning listed above.

How I resolved it now, is that I connected the actions to the first responder instead of to the file's owner. But if there is a way to do as I originally intended, I'd still like to know.


António

-----------------------------------------
Accepting others as they are
brings a wonderful freedom
to your own mind.

--The Peace Formula
-----------------------------------------




_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: IB action connections and classes implemented across several files
      • From: Kevin Cathey <email@hidden>
References: 
 >IB action connections and classes implemented across several files (From: Antonio Nunes <email@hidden>)

  • Prev by Date: IB action connections and classes implemented across several files
  • Next by Date: Re: how to debug ruby cocoa with Xcode?
  • Previous by thread: IB action connections and classes implemented across several files
  • Next by thread: Re: IB action connections and classes implemented across several files
  • Index(es):
    • Date
    • Thread