Re: BigSQL Xcode and IB
Re: BigSQL Xcode and IB
- Subject: Re: BigSQL Xcode and IB
- From: Jerry LeVan <email@hidden>
- Date: Sat, 7 Feb 2004 20:17:41 -0500
I guess I sorta solved the problems...
On Feb 7, 2004, at 4:05 PM, p3consulting wrote:
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 ?)
I guess the answer to 1) is just to be careful...
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...
For problem 2, evidently the libssl.dylib and libcrypto.dylib were
pointing to older versions of the libs...I deleted the references and
reinstalled current references to the current versions of the two libs.
The rascal now compiles with no warnings.
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 3 seems to bound up in the initialization of NSTextview
objects, when the NIB was upgraded to a 10.2
format it appears that *no* font is specified ie [outputTextView font]
returns NULL this caused a failure when an attributed string was
contructed. I could not figure out how to specify a font in IB so I
specified the font in the NSTextView object during the awakeFromNib
method.
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...
I initially got around this difficuly by using the "Go to folder" menu
command and dragging the file to the project. Pascal suggested a much
easier way :)
Pascal Pochet
P3 Consulting
I did not expect this much difficulty in "upgrading" the project to
Xcode ;(
--Jerry
_______________________________________________
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.