is it possible to have 1 class with 2 interface in Header file and 2 implementation in M file?
S saleh.hi.62 macrumors member Original poster Jul 25, 2011 95 0 Dec 9, 2011 #1 is it possible to have 1 class with 2 interface in Header file and 2 implementation in M file?
Catfish_Man macrumors 68030 Sep 13, 2001 2,579 2 Portland, OR Dec 9, 2011 #2 saleh.hi.62 said: is it possible to have 1 class with 2 interface in Header file and 2 implementation in M file? Click to expand... That's called "having 2 classes", but yes it works fine. Each @interface defines a class, each @implementation implements one. Doesn't matter how many of each you have in a file, or what files they're in, really.
saleh.hi.62 said: is it possible to have 1 class with 2 interface in Header file and 2 implementation in M file? Click to expand... That's called "having 2 classes", but yes it works fine. Each @interface defines a class, each @implementation implements one. Doesn't matter how many of each you have in a file, or what files they're in, really.
mduser63 macrumors 68040 Nov 9, 2004 3,042 31 Salt Lake City, UT Dec 10, 2011 #3 Why do you want to do this? What are you trying to accomplish? Take a look at Categories and Class Extensions: http://developer.apple.com/library/...ceptual/objectivec/chapters/occategories.html
Why do you want to do this? What are you trying to accomplish? Take a look at Categories and Class Extensions: http://developer.apple.com/library/...ceptual/objectivec/chapters/occategories.html