What exactly does the 'Preprocess' option do in XCode (v3)? I'm referring to the right-click, context sensitive, menu option you get on a library file when it is included in the xcode project (.O file).
I'm currently developing a program in plain C with Carbon libraries that uses the Oracle OCI library to connect to an Oracle database. I've tried over and over to get the thing to build cleanly, but it always failed at the link stage with a couple of unresolved references to the Oracle library. After playing around a little, I've found if I fully clean and rebuild, and allow it to fail with the unsolved references, and then select 'Preprocess' on the Oracle library, hey presto I have built binary with success! Is there something I'm missing about this? Can I add a build stage to add this preprocess step in somewhere? (I can supply more details if required e.g. version numbers, file names etc.).
>>> On 16/05/2008 at 20:10, in message <email@hidden>, <email@hidden> wrote:
Send Xcode-users mailing list submissions to
email@hidden
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.apple.com/mailman/listinfo/xcode-users
or, via email, send a message with subject or body 'help' to
email@hidden
You can reach the person managing the list at
email@hidden
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Xcode-users digest..."
Today's Topics:
1. Re: Bug ID 5927392: XCODE must be able show C++/ObjC
overloaded methods in a window as CodeWarrior (Ruslan Zasukhin)
2. IB: Connections Inspector, extra spaces, no horizontal resize
(lbland)
3. re: Per Frame/Timed "Update"? (George Warner)
4. Re: (objc_warning) is valid for ObjC/ObjC++ but not for C
(William H.Schultz)
5. Viewing A Pointer As An Array (Nick Nallick)
6. Stream problems/too many open files (Martin Redington)
7. Build setting for current data model path? (Rush Manbert)
8. Re: (objc_warning) is valid for ObjC/ObjC++ but not for C
(Jean-Daniel Dupas)
9. Stream problems/too many open files (Martin Redington)
10. Re: Viewing A Pointer As An Array (Rick Sustek)
11. gdb console *inside* debugger? (Jack Repenning)
----------------------------------------------------------------------
Message: 1
Date: Fri, 16 May 2008 15:56:23 +0300
From: Ruslan Zasukhin <email@hidden>
Subject: Re: Bug ID 5927392: XCODE must be able show C++/ObjC
overloaded methods in a window as CodeWarrior
To: Thomas Engelmeier <email@hidden>,Xcode Users
<email@hidden>
Message-ID: <
C4535F27.99A73%email@hidden>
Content-Type: text/plain;charset="US-ASCII"
On 5/16/08 12:01 PM, "Thomas Engelmeier" <email@hidden>
wrote:
Hi Thomas,
>> I believe that it is possible solve this task in the XCODE, because
>> it have database of symbols.
>
> Which is probably
> - namespace agnostic
Sorry? Usually family of classes is part of the same namespace.
right?
Even if not, what problems display it as
fbl::class1::get_Count()
fbl::class1_1::get_Count()
fbl::class1_2:g:et_Count()
vsql::class1_3:g:et_Count()
Intention here shows child classes.
> - has no concept of multi-inheritance
Again not so bad.
1) if I click symbol while I am in the TOP class --
we show ALL its child classes.
works?
2) if we click at some middle class, e.g. Class_1_2 on method get_Count(),
and this class has multi-inheritance form class_1 and class_2,
and they both have get_Count() then window show
Methods for any of them Class_1 or Class_2 hierarchy, and note again:
I have write: we need also in that window menu which will looks
for this example as:
-------------------------
| All Classes |
-------------------------
| Class_1 children only |
| Class_2 children only |
-------------------------
You see idea? Even if system show me class_1 tree, I can easy switch to
class_2 tree, or even to ALL such symbols in the project.
> and is for that reason not helpful enough for C++.
I believe it will be very helpful and help developers avoid nasty bugs
during development of big projects with complex class-trees
> At least the parser
> for completion will cease as soon as it encounters something like
>
> std::printf
>
> Regards,
> Tom_E
--
Best regards,
Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc
Valentina - Joining Worlds of Information
http://www.paradigmasoft.com[I feel the need: the need for speed]
------------------------------
Message: 2
Date: Fri, 16 May 2008 09:43:08 -0400
From: lbland <email@hidden>
Subject: IB: Connections Inspector, extra spaces, no horizontal resize
To: xcode-users Users <email@hidden>
Message-ID: <
email@hidden>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
hi-
In Xcode 3.0, IB: 3.0, Connections Inspector some class names are
weird, for example:
GGFN_NSView looks like:
N_ N S View
I guess someone in the back room decided to make class names look
more "friendly" by putting spaces before capital letters in the
Inspector? (... screams down hall in agony).
Any way this "feature" can be turned off?
Also, IB 2.x FINALLY had the Inspector window resize horizontally
(feature missing in 1.0 dark days). That was taken out in 3.x, so now
all my really long action names are truncated (cries in silence). Can
we pleeeze bring back horizontal resizing in the inspector? Or is
this a settable feature?
thanks!-
-lance
VVI
------------------------------
Message: 3
Date: Fri, 16 May 2008 08:08:54 -0700
From: George Warner <email@hidden>
Subject: re: Per Frame/Timed "Update"?
To: <email@hidden>
Message-ID: <
C452F196.48717%email@hidden>
Content-Type: text/plain;charset="US-ASCII"
On Thu, 15 May 2008 17:38:49 -0700 (PDT), Clancy John Imislund
<email@hidden> wrote:
> Hi all,
>
> I have an App that needs to call an "Update()" function every 1/30th of a
second on certain objects (not just respond to asynch messages). Does anyone
know the proper XCode way to do this?
This is more of a Carbon/Cocoa API question; it really doesn't have anything
to do with Xcode. I'd suggest asking this on ether the Carbon or Cocoa dev
mailing lists.
That said there are different solutions depending on your criteria: If
you're doing animation the you may want to use core animation or QuickTime;
if you're doing simulation (physics?) you may want to use timers, etc. If
you're doing data acquisition you may need to use scheduled I/O, etc.
Brute force you could just write a loop:
for ( int idx = 0; idx < 600; idx++ ) {
Duration tDuration = kDurationMillisecond * 1000 / 30;
AbsoluteTime nextTime = AddDurationToAbsolute( tDuration, UpTime() );
Update();
MPDelayUntil( nextTime );
}
Note that we compute "nextTime" before calling Update; this prevents
Update's computational time from effecting the interval at which it's
called. If you use timers that are dispatched by a runloop then the interval
at which its handlers are dispatched can be effected by the runtimes of
other handlers called by that runloop (this is because the runloop timers
handlers won't be dispatched until control is returned to the runloop from
those other handlers).
--
Enjoy,
George Warner,
Schizophrenic Optimization Scientist
Apple Developer Technical Support (DTS)
------------------------------
Message: 4
Date: Fri, 16 May 2008 08:36:25 -0700
From: William H.Schultz <email@hidden>
Subject: Re: (objc_warning) is valid for ObjC/ObjC++ but not for C
To: Roy Lovejoy <email@hidden>
Cc: email@hidden
Message-ID: <
email@hidden>
Content-Type: text/plain; charset="us-ascii"
Skipped content of type multipart/alternative-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 194 bytes
Desc: This is a digitally signed message part
Url :
http://lists.apple.com/pipermail/xcode-users/attachments/20080516/9657bd30/PGP.bin
------------------------------
Message: 5
Date: Fri, 16 May 2008 10:32:42 -0600
From: Nick Nallick <email@hidden>
Subject: Viewing A Pointer As An Array
To: XCode Users <email@hidden>
Message-ID: <
email@hidden>
Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes
I've spent way to much time this morning getting gdb to laboriously
print several hundred structures from an array (hitting return after
every eight or so) and once again I find myself longing for a way to
tell the Xcode debugger my pointer is really an array. This seems to
come up every so often in the list archive and it still tempts me to
try to get CodeWarrior to build my code. For example, here's a
request from a couple years ago that could use a bump...
>> On Apr 17, 2006, at 12:54 PM, Skip Haughay wrote:
>>
>> I have recently moved from CodeWarrior to XCode, and while the
>> environment of XCode is quite nice for the most part, there are
>> some glaring omissions. One thing which I have been quite unable to
>> figure out how to do is to display an array within the debugger. In
>> CodeWarrior, I could click on, say, a variable defined as a pointer
>> to an integer. I could view this as hex, view this as decimal, OR
>> view this pointer as an array... the debugger would show me a
>> window with a list of array items if interpreting that pointer as
>> the array ptr.
>>
>> Is there ANY way to do this in XCode? It would be terribly
>> inconvenient and slow to have to manually peek at each item offset
>> from my pointer each time I want to examine an array's values.
>
> Right now Xcode doesn't have the ability to interrogate the array
> and show the items inside :( We have gotten many request for better
> inspection of container-style classes (many on the team want it too)
> and we want to provide this in a future version of Xcode.
>
> Scott
------------------------------
Message: 6
Date: Fri, 16 May 2008 17:53:04 +0100
From: "Martin Redington" <email@hidden>
Subject: Stream problems/too many open files
To: "Xcode Users" <email@hidden>
Message-ID:
<
email@hidden>
Content-Type: text/plain; charset=ISO-8859-1
I'm having some strange problems with Xcode 3.1 and Xcode 2.5 on Leopard.
These seem to be related.
These may also be related to an issue I thought I'd posted about here
previously (although I might not have done).
Basically, my original problem was that, when running my app from
Xcode, writes to stderr were either throwing exceptions, or going to
the console log, instead of the Xcode Console (3.1)/Run Log (2.5).
Recently, with no apparent trigger, the symptoms have changed as follows:
On Xcode 2.5, writes to stderr seem to generate an Xcode alert with
the following message:
====
File:/SourceCache/DevToolsIDE/DevToolsIDE-799/pbxinterface/Debugger.subproj/PBXLSExecutableLauncher.m
Line:446
Object:<PBXLSExecutableLauncher:0x0c336160>
Method:task:outputData:
received data from task but expecting it to be on a stream!
====
I also seem to be getting the message something like:
Xcode has detected too many open files, and may be unstable.
On Xcode 3.1, I only see this latter alert - I don't get the "received
data from task, but expected it to be on a stream one"
I'm pretty certain that my logging code is what's triggering this. It
writes to a log file unless a certain environment variable is set,
when it writes to stderr, so that I can see the log messages easily in
Xcode's run log.
The standard error filehandle is retrieved via
NSFileHandle *fileHandle = [NSFileHandle fileHandleWithStandardError];
In the Xcode 3.1 case, and indeed some of the 2.5 code, that logging
code isn't in use, and the stderr writes are just normal NSLog calls.
I've tried deleting my preferences, but that seems to have had no effect.
--
http://www.mildmanneredindustries.com/------------------------------
Message: 7
Date: Fri, 16 May 2008 10:10:30 -0700
From: Rush Manbert <email@hidden>
Subject: Build setting for current data model path?
To: Xcode Users <email@hidden>
Message-ID: <
email@hidden>
Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes
I'm trying to setup a External Build System project that uses
mogenerator to generate source code from a Xcode data model.
I have versioned the data model and I am wondering if there is a build
time symbol defined that contains the path to the currently selected
data model version. I can't find anything in the docs.
Thanks,
Rush
------------------------------
Message: 8
Date: Fri, 16 May 2008 19:32:50 +0200
From: Jean-Daniel Dupas <email@hidden>
Subject: Re: (objc_warning) is valid for ObjC/ObjC++ but not for C
To: William H.Schultz <email@hidden>
Cc: email@hidden
Message-ID: <
email@hidden>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes
Le 16 mai 08 α 17:36, William H.Schultz a Θcrit :
> On May 12, 2008, at 3:55 PM, Roy Lovejoy wrote:
>
>>
>> On May 12, 2008, at 2:59 PM, Sean McBride wrote:
>>
>> I'm assuming there's no way to turn this 'warning-warning' off?
>>
>> (if you can't avoid the warning, squelch it)
>>
>
> What about configuring Xcode to compile every file as if it was Obj-C
> ++? That might be reasonable workaround.
>
Not a good idea. C++ is far less tolerant than C (and Obj-C) and lot
of code that compile without warning in Obj-C will report error using
Obj-C++ compiler.
------------------------------
Message: 9
Date: Fri, 16 May 2008 18:33:09 +0100
From: "Martin Redington" <email@hidden>
Subject: Stream problems/too many open files
To: "Xcode Users" <email@hidden>
Message-ID:
<
email@hidden>
Content-Type: text/plain; charset=ISO-8859-1
I'm having some strange problems with Xcode 3.1 and Xcode 2.5 on Leopard.
These seem to be related.
These may also be related to an issue I thought I'd posted about here
previously (although I might not have done).
Basically, my original problem was that, when running my app from
Xcode, writes to stderr were either throwing exceptions, or going to
the console log, instead of the Xcode Console (3.1)/Run Log (2.5).
Recently, with no apparent trigger, additional symptoms have appeared:
On Xcode 2.5, writes to stderr seem to generate an Xcode alert with
the following message:
====
File:/SourceCache/DevToolsIDE/DevToolsIDE-799/pbxinterface/Debugger.subproj/PBXLSExecutableLauncher.m
Line:446
Object:<PBXLSExecutableLauncher:0x0c336160>
Method:task:outputData:
received data from task but expecting it to be on a stream!
====
I also seem to be getting the message something like:
Xcode has detected too many open files, and may be unstable.
On Xcode 3.1, I only see this latter alert - I don't get the "received
data from task, but expected it to be on a stream one"
I'm pretty certain that my logging code is what's triggering this. It
writes to a log file unless a certain environment variable is set,
when it writes to stderr, so that I can see the log messages easily in
Xcode's run log.
The standard error filehandle is retrieved via
NSFileHandle *fileHandle = [NSFileHandle fileHandleWithStandardError];
In the Xcode 3.1 case, and indeed some of the 2.5 code, that logging
code isn't in use, and the stderr writes are just normal NSLog calls.
I've tried deleting my preferences, but that seems to have had no effect.
--
http://www.mildmanneredindustries.com/------------------------------
Message: 10
Date: Fri, 16 May 2008 11:30:48 -0700
From: Rick Sustek <email@hidden>
Subject: Re: Viewing A Pointer As An Array
To: Nick Nallick <email@hidden>
Cc: XCode Users <email@hidden>
Message-ID: <
email@hidden>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
Yes indeed:
create a new _expression_, using the var@len syntax, examples:
For an integer array named foo:
*(int *)foo@256
For a float array named rootBeer:
*(float *)rootBeer@64
This will expand in the expressions window, with a disclosure
triangle so you can collapse it, if desired. The length is simply
however many you want to display -- even beyond the actual array
bounds if you use a number that is larger than the array depth.
Happy, happy, joy, joy,
-Rick
------------------------------
Message: 11
Date: Fri, 16 May 2008 11:55:31 -0700
From: Jack Repenning <email@hidden>
Subject: gdb console *inside* debugger?
To: Xcode Users <email@hidden>
Message-ID: <
email@hidden>
Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes
Last night (at Silicon Valley Cocoaheads), I saw a debugger window
(the one with stack, variables, and source) that also showed the gdb
console. How do I do that? I can only make the console come up in a
separate window (and then I always have to move it somewhere more
convenient).
-==-
Jack Repenning
email@hidden
Project Owner
SCPlugin
http://scplugin.tigris.org"Subversion for the rest of OS X"
------------------------------
_______________________________________________
Xcode-users mailing list
email@hidden
http://lists.apple.com/mailman/listinfo/xcode-users
End of Xcode-users Digest, Vol 5, Issue 302
*******************************************