Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Tutorials > Tutorial Discussion

Reply
 
LinkBack Thread Tools Display Modes
Old 07-08-2010, 05:31 AM   #1 (permalink)
Registered Member
 
Join Date: Jul 2010
Location: New York
Posts: 2
taj.nanda21 is on a distinguished road
Default Interface and Implementation Class QUESTION

I have a question! I HAVE ATTACHMENTS (SCREEN SHOTS TOO)
In my interface class(Shapes.h) I have declared a protocol for a square and a circle class. so basically i have two interfaces in one file!
So basically my Shapes.h class looks like this
#import <Foundation/Foundation.h>
@interface circle : NSObject {
// objects here
}
-(void) draw


@interface Square: NSObject{
//objects declared here
}
//Prototypes of the function.
AS YOU CAN SEE I HAVE DECLARED INTERFACES OF 2 CLASSES IN ONE FILE Shapes.h
Now my second file that i named "indirection.m" (the implementation class)
has my implementation code that actually describes my interface.
YES, i have imported the "Shapes.h" in "indirection.h"
BUT HERE IS THE ISSUE WHEN I CLICK ON BUILD AND GO IT SAYS "CANNOT FIND FILE OR FOLDER SHAPES.H. I have the right names, right spellings . I DONT KNOW WHATS UP WITH THAT?
anyone with an answer or suggestion PLEASE PLEASE PLEASE lemme know!
Can i have 2 interface descriptions in one file? is that fine or do u think i should make do different .h files (interface) for each interface class.
THanks
Attached Images
File Type: jpg Screen shot 2010-07-08 at 3.28.55 AM.jpg (19.1 KB, 0 views)
File Type: jpg Screen shot 2010-07-08 at 3.29.13 AM.jpg (19.9 KB, 0 views)
taj.nanda21 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Stats
Members: 175,696
Threads: 94,139
Posts: 402,959
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jasper_muc
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 01:55 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0