Re: BigSQL Xcode and IB
Re: BigSQL Xcode and IB
- Subject: Re: BigSQL Xcode and IB
- From: p3consulting <email@hidden>
- Date: Sat, 7 Feb 2004 22:05:06 +0100
On 7 fivr. 2004, at 14:33, Jerry LeVan wrote:
Hi,
It has been about 14 months since I tried to build cocoa apps (
retired...).
I thought I would like to try to get up to speed again with Xcode :).
I found the BigSQL project at BigNerdRanch and thought that might be a
interesting starting point.
BigSQL allows one to query a postgress database and display the
results in a table.
Problem 1) The project file was in an older format. I changed the
extension to ".xcode" and was able to open the project in xcode ( I
still have an older version of project builder in the Applications
directory left over from the upgrade to panther, should I pitch the
older version ?)
Problem 2) The build command succeeded but gave 743 multiple
definition warnings, it looks like they all came from libcrypto and
libssl. Why do these warnings appear and can they be "fixed".
Probably because the PostgreSQL library (libpq.a) on your machine has
already been linked with both libraries when it was built... you should
remove the BigSQL project references to these libraries...
The program appears to run ok, I can access my Postgres DB and display
the query...
Problem 3) If I open the MainMenu nib in IB and attempt to modify the
nib to use a "new" feature such as grid lines, when I save the NIB I
get a warning the I must use a newer format. If I go ahead and save in
the 10.2 format and build the application any attempt to execute a sql
command leads to a hang and a notice in the log that an attempt was
made to insert a null key in a dictionary operation.
looks like a bug in BigSQL... (not testing a query result or something
similar), you should trace it (put a break point on NSMutableDictionary
method -(void)setObject:forKey) or ask the developer
Even if I use the save feature that saves in both formats I get the
same hang and error message.
Problem 4) I can't figure out how to add libraries to the project, the
postgres c library is in /usr/local/pgsql/lib. It is in the project
and the project knows the path to the library ( and postgres c
includes ) but I cannot reconstruct how that info got into the project
ie how can I specify /usr/local/pgsql/lib/libpq.a ?
Under Jaguar the Open dialog a field "Go to folder" and it was evident
how to go to /usr/local/... when adding files or frameworks,, under
Panther you have to start typing the path where you want to go
immediately after selecting Add files/frameworks... to get a "Go to"
window... enter the path of the file you want to add...
Pascal Pochet
P3 Consulting
_______________________________________________
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.