Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Feb 22, 2005, 03:08 PM   #1
DavidCar
macrumors 6502a
 
Join Date: Jan 2004
I'm missing the paradigm shift to XCode

Simple XCode Question

I'm quite new to XCode, C and Objective C. I am trying to port an old project from THINK Pascal. I've got the "15 minute text editor" from Apple documentation up and running. I've successfully added a MyDocument class, and I'm starting on a MyTreeItem class. I've answered various questions through the built in documentation, but I've run into a problem that may be too fundamental to easily find in the documentation.

This is generally what I am trying to port:

---------------------

UNIT ParserManager;

INTERFACE
Uses ParserDefs;

Function MyParser(hPE: PEHandle; var hTree; MyTreeHandle): BOOLEAN;

IMPLEMENTATION
Uses ParserProcs;

Function MyParser(hPE: PEHandle; var hTree; MyTreeHandle): BOOLEAN;
BEGIN
MyParser := FALSE;
hTree := NIL;
END

END.

---------------------

So I am expecting in XCode to have a file called ParserManager.h which contains

#import <Cocoa/Cocoa.h>
#import "ParserDefs.h"
#import "MyTreeItem.h"

(BOOL) MyParser(NSString *Str, MyTreeItem **tree);


... and a file called ParserManager.m which contains

#import "ParserProcs.h"

(BOOL) MyParser(NSString *Str, MyTreeItem **tree) {
return NO;
}

... and my file MyDocument.m would contain


#import "ParserManager.h"

...

NSString *Str;
MyTreeItem *tree;

if (MyParser(Str, &tree)) {
// set flag
};

---------------------

I must be failing to navigate a paradigm shift here, because XCode doesn't get what I want it to do. Would enlightened ones be redefining MyParser as a class, or what?
DavidCar is offline   0 Reply With Quote
Old Feb 23, 2005, 05:36 PM   #2
DavidCar
Thread Starter
macrumors 6502a
 
Join Date: Jan 2004
Complaint about vague compiler error messages

I found my problem, which was just a trivial omission rather than something as grand as missing a paradigm shift. If the complier had given me a clearer error message I would not have had to spend hours trying to find the source of the problem.
DavidCar is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
Only app I'm missing is the App Store app! SeaLawyer iOS 5 and earlier 2 Oct 17, 2011 10:13 PM
I'm going to miss the 3AM preorder time; Verizon or apple? lilcosco08 iPhone 4 Oct 6, 2011 08:42 PM
Which One of These Macbook Pro Models Makes the Most Sense to Buy... Today jdsmoooth Buying Tips and Advice 5 Feb 2, 2011 01:56 PM
Just me, or does the calendar app not fit the paradigm? magicandmystery iPad 46 Aug 3, 2010 11:21 AM
I'm missing the Photo App Cormier6083 iPod touch Hacks 1 Mar 24, 2008 12:49 PM


All times are GMT -5. The time now is 08:41 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC