• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
UNSUBSCRIBE
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

UNSUBSCRIBE


  • Subject: UNSUBSCRIBE
  • From: Jeff Taarud <email@hidden>
  • Date: Sun, 22 Jul 2007 14:03:40 -0700


On Jul 19, 2007, at 12:11 PM, 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: Problem using static floats (Matt West)
2. crash in _CFReadBytesFromFile (Arnab Ganguly)
3. Xcode and Javadoc (Jeff Dunnett)
4. Re: g++ arch flag between Debug and Release (Chris Espinosa)
5. CodeWarrior vs XCode build (Hemant Balakrishnan)
6. Re: Xcode and Javadoc (Greg Guerin)
7. Re: embedded projects, dependencies, and linking (Jack Repenning)
8. Re: CodeWarrior vs XCode build (Chris Espinosa)
9. Re: Problem using static floats (Joel Norvell)
10. Re: Problem using static floats (Shawn Erickson)
11. Re: Problem using static floats (Shawn Erickson)
12. Re: Problem using static floats (Shawn Erickson)
13. Java, XCode, CodeSense, code completion woes continued
(Randy Wigginton)
14. Re: Problem using static floats (Shawn Erickson)



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

Message: 1
Date: Thu, 19 Jul 2007 13:04:33 +0100
From: "Matt West" <email@hidden>
Subject: Re: Problem using static floats
To: email@hidden
Message-ID:
	<email@hidden>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

On Jul 19, 2007, at 14:09 , Joel Norvell wrote:
[MyWidget setPageHeight:[self pageHeight]];
.
.
+ (float) getPageHeight { return pageHeight;}

I wonder, should your method name be "pageHeight" instead of "getPageHeight" ?
I am very new to Cocoa, but the code convention is to give your
accessor the same name as the property, not prefix it with 'get' like
I do in my Java day job. This convention is vital for the Key Value
Coding to work.


Hope this helps
matt.


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

Message: 2
Date: Thu, 19 Jul 2007 18:19:56 +0530
From: "Arnab Ganguly" <email@hidden>
Subject: crash in _CFReadBytesFromFile
To: email@hidden
Message-ID:
	<email@hidden>
Content-Type: text/plain; charset="iso-8859-1"

Hi,
I am getting the following error in imac when I am trying to debug the
application .
"Program received signal EXC_BAD_INSTRUCTION, Illegal instruction/ operand.
0x9082c73b in _CFReadBytesFromFile ()"


Have you come across this similar issue before.Google results shows due to
compilation with -mpreferred-stack-boundary=2 (4 is the default) is the
cause.Where do I set the following option.


Thanks in advance.
Regards
-A
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.apple.com/pipermail/xcode-users/attachments/ 20070719/23aac0bd/attachment.html


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

Message: 3
Date: Thu, 19 Jul 2007 10:57:25 -0400
From: Jeff Dunnett <email@hidden>
Subject: Xcode and Javadoc
To: email@hidden
Message-ID: <email@hidden>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed

Hello,

I am trying to create a set of javadoc for my WebObjects
application.  I have a set up a target in my product to run a shell
script.  The shell script is simple:

javadoc *.java
open index.html
exit 0

All it does run javadoc on all my java files and open the file in a
browswer.  The problem is I am getting errors like "package
com.web.objects.foundation does not exist" and "package
com.webobjects.foundation does not exist".  I am thinking that it
must be some kind of problem with javadoc not being able to find
those packages.  Perhaps the CLASSPATH is not set somewhere.  What I
am wondering if anyone would know if this is a Xcode issue or a
javadoc issue?

Regards,
Jeff



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

Message: 4
Date: Thu, 19 Jul 2007 08:32:45 -0700
From: Chris Espinosa <email@hidden>
Subject: Re: g++ arch flag between Debug and Release
To: James Jackson <email@hidden>
Cc: email@hidden
Message-ID: <email@hidden>
Content-Type: text/plain; charset="us-ascii"


On Jul 19, 2007, at 3:57 AM, James Jackson wrote:

I have a bog-standard C++ command line tool in Xcode. With debug
configuration, g++ is passed the correct arch flag:

/usr/bin/g++-4.0 -bundle -arch i386 <snip>

But when I switch to Release, the incorrect arch flag is passed:

/usr/bin/g++-4.0 <snip>  -arch ppc

In the configuration setup page, the architecture is set to $
(NATIVE_ARCH) in both cases.

Can anybody offer any suggestions? This is with Xcode 2.2.1 on a
2GHz Core Duo MacBook Pro running 10.4.9.

This was a bug in 2.2.1 that we fixed in 2.3.

Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.apple.com/pipermail/xcode-users/attachments/ 20070719/1903f703/attachment.html


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

Message: 5
Date: Thu, 19 Jul 2007 12:00:51 -0400
From: Hemant Balakrishnan <email@hidden>
Subject: CodeWarrior vs XCode build
To: email@hidden
Message-ID: <email@hidden>
Content-Type: text/plain; charset="us-ascii"

We had a pascal project under CodeWarrior which was ported into
XCode. The issue we are facing right now is that the build in
CodeWarrior runs upto 5 times faster than the one in XCode. The
project has versions which would compile under both CodeWarrior &
XCode and we notice that the executable (Release version) produced by
XCode is significantly slower.  Has anyone come across such an issue?

***************************************
Hemant Balakrishnan, Ph.D.
TriQuint Semiconductor
1818 South Highway 441
Apopka, FL 32703
407 884 3486
***************************************




-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.apple.com/pipermail/xcode-users/attachments/ 20070719/6bdff899/attachment.html


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

Message: 6
Date: Thu, 19 Jul 2007 09:26:28 -0700
From: Greg Guerin <email@hidden>
Subject: Re: Xcode and Javadoc
To: <email@hidden>
Message-ID: <l03130300c2c53ea45b65@[192.168.11.2]>
Content-Type: text/plain; charset="us-ascii"

Jeff Dunnett wrote:

javadoc *.java
open index.html
exit 0

The shell is expanding *.java. You probably want javadoc itself to expand it.
To do that, quote the wildcard expression:
javadoc '*.java'


You may also want to review the javadoc man page for details about how it
deals with particular naming patterns of source files. Javadoc's treatment
of file-names is more subtle than typical commands.


To open a man page in Xcode, choose "Open man page..." from Xcode's Help
menu. The javadoc man page is long and complex enough that it should be
read with some care.



Perhaps the CLASSPATH is not set somewhere.

If you don't set CLASSPATH somewhere, then it won't be set. Are you
setting CLASSPATH? If so, where? Are you exporting it? Is a CLASSPATH
necessary in order for javadoc to operate with your *.java files?


  -- GG




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

Message: 7
Date: Thu, 19 Jul 2007 09:29:06 -0700
From: Jack Repenning <email@hidden>
Subject: Re: embedded projects, dependencies, and linking
To: Tobias Ford <email@hidden>
Cc: XCode Users <email@hidden>
Message-ID: <email@hidden>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed

On Jul 18, 2007, at 9:37 PM, Tobias Ford wrote:

I always just assumed that the linker would have scanned everything
to build a lookup table first before performing the actual link.  I
also know that this is documented somewhere and that somewhere/
sometime someone probably told me this...

Don't feel bad -- the number of people who have been tripped up by that assumption in the 40 years of Unix linking is beyond counting.

-==-
Jack Repenning
Chief Technology Officer
CollabNet, Inc.
8000 Marina Boulevard, Suite 600
Brisbane, California 94005
office: +1 650.228.2562
mobile: +1 408.835.8090
raindance: +1 877.326.2337, x844.7461
aim: jackrepenning
skype: jrepenning






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

Message: 8
Date: Thu, 19 Jul 2007 09:45:42 -0700
From: Chris Espinosa <email@hidden>
Subject: Re: CodeWarrior vs XCode build
To: Hemant Balakrishnan <email@hidden>
Cc: email@hidden
Message-ID: <email@hidden>
Content-Type: text/plain; charset="us-ascii"


On Jul 19, 2007, at 9:00 AM, Hemant Balakrishnan wrote:

We had a pascal project under CodeWarrior which was ported into
XCode. The issue we are facing right now is that the build in
CodeWarrior runs upto 5 times faster than the one in XCode. The
project has versions which would compile under both CodeWarrior &
XCode and we notice that the executable (Release version) produced
by XCode is significantly slower.  Has anyone come across such an
issue?

How did you port the Pascal project to Xcode? Xcode doesn't come with a Pascal compiler, headers, or link libraries. So the first thing to look at is ether the third-party Pascal compiler you're using, or the quality of the C code resulting from the translation from Pascal.

The general solution to "Why is X faster than Y" is to use Shark on
both and look carefully at the results.  You can then see if the
slowdown is algorithmic (the two versions are doing different
things), systemic, or the result of poor optimization or code
generation.

gcc 2.95.2, used in early versions of Xcode, had relatively poor code
generation; Apple and the gnu community have made substantial
improvements since then, and code generated by gcc 4.0 should not be
5x slower than code generated by a Pascal compiler.

Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.apple.com/pipermail/xcode-users/attachments/ 20070719/42c4c249/attachment.html


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

Message: 9
Date: Thu, 19 Jul 2007 09:59:54 -0700 (PDT)
From: Joel Norvell <email@hidden>
Subject: Re: Problem using static floats
To: email@hidden
Message-ID: <email@hidden>
Content-Type: text/plain; charset=iso-8859-1

Thanks Scott. I guess this is a bug. I'm using your workaround. Your clear
and concise note saved the day!


Thanks Steve. Ideally I should have created a minimal project to exhibit the
behavior I was describing.


Thanks Matt. I'd written this code some time ago and had adopted the "get"
prefix to make my use of class variables stand out. But you're right; I'll
clean this up.


Sincerely,
Joel




______________________________________________________________________ ______________
Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games.
http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow



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

Message: 10
Date: Thu, 19 Jul 2007 10:37:56 -0700
From: "Shawn Erickson" <email@hidden>
Subject: Re: Problem using static floats
To: "Scott F Bayes" <email@hidden>,	"Joel Norvell"
	<email@hidden>
Cc: email@hidden
Message-ID:
	<email@hidden>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

On 7/19/07, Scott F Bayes <email@hidden> wrote:
Hi Joel,

I saw something somewhat similar a few days ago and submitted a bug
report. No response yet. 10.4.10 on an original MacBook, latest
Xcode, stock standard.

In my case, passing a float into an Obj-C instance method failed.
Just before the method call, the debugger showed the expected value
in my float variable. On the other side, inside the method, the
incoming float argument was essentially a random number. When I
changed to a double, it worked fine. So did an int.

This sounds like the caller assuming the return type to be something other then what the implementation expected. Did you get any compiler warnings about it assuming the return type for a message?

It is highly likely that the calling code doesn't have visibility of
the methods declaration and as a result assumes the return type to be
id (a pointer) which is default return type for objective-c messages.
Pointers (integers) are passed in different registers the floats and
as a result the caller is looking in the wrong registers on return
from the method.

-Shawn


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

Message: 11
Date: Thu, 19 Jul 2007 10:40:45 -0700
From: "Shawn Erickson" <email@hidden>
Subject: Re: Problem using static floats
To: "Scott F Bayes" <email@hidden>,	"Joel Norvell"
	<email@hidden>
Cc: email@hidden
Message-ID:
	<email@hidden>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

On 7/19/07, Shawn Erickson <email@hidden> wrote:
On 7/19/07, Scott F Bayes <email@hidden> wrote:
Hi Joel,

I saw something somewhat similar a few days ago and submitted a bug
report. No response yet. 10.4.10 on an original MacBook, latest
Xcode, stock standard.

In my case, passing a float into an Obj-C instance method failed.
Just before the method call, the debugger showed the expected value
in my float variable. On the other side, inside the method, the
incoming float argument was essentially a random number. When I
changed to a double, it worked fine. So did an int.

This sounds like the caller assuming the return type to be something other then what the implementation expected. Did you get any compiler warnings about it assuming the return type for a message?

It is highly likely that the calling code doesn't have visibility of
the methods declaration and as a result assumes the return type to be
id (a pointer) which is default return type for objective-c messages.
Pointers (integers) are passed in different registers the floats and
as a result the caller is looking in the wrong registers on return
from the method.

I should note that this is easily confirmed by dissembling both the calling code and method implementation. You can ask Xcode to do this or while in the debugger show the disassembly pane.

-Shawn


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

Message: 12
Date: Thu, 19 Jul 2007 10:43:47 -0700
From: "Shawn Erickson" <email@hidden>
Subject: Re: Problem using static floats
To: "Joel Norvell" <email@hidden>
Cc: email@hidden
Message-ID:
	<email@hidden>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

On 7/19/07, Joel Norvell <email@hidden> wrote:

I guess this is a bug. I'm using your workaround.

You should fix your code and not use a "workaround" since the bug is highly likely to be in your code (again likely a declaration visibility issue). I assure you that you can pass use floats just fine with objective-c.

-Shawn


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

Message: 13
Date: Thu, 19 Jul 2007 10:47:56 -0700
From: Randy Wigginton <email@hidden>
Subject: Java, XCode, CodeSense, code completion woes continued
To: email@hidden
Message-ID: <email@hidden>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed


OK, I have re-run pbhelpindexer multiple times (25 minutes each), I re-installed the J2SE release 5.0 documentation. I looked at the size of files in /Developer/ADC Reference Library/indexes

I even copied the contents of the indexes files from another machine
into that directory (code completion works on the other machine).

On machine 2 (the working machine), if I put this into xcode:

String foo;
foo.

An autocomplete list will come up.  On machine 1 (my main machine), I
cannot get the list, and when I select completion list from the edit
menu, it says no completions found.  However, if I do the following:
EOEditingContext ec;
ec.

I will get the autocompletes for the EOEditing class.

Is there a setting somewhere that I'm missing?  Can anyone tell me
where the autocomplete list is drawn from?



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

Message: 14
Date: Thu, 19 Jul 2007 11:08:23 -0700
From: "Shawn Erickson" <email@hidden>
Subject: Re: Problem using static floats
To: "Joel Norvell" <email@hidden>
Cc: email@hidden
Message-ID:
	<email@hidden>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

On 7/18/07, Joel Norvell <email@hidden> wrote:

I can see that the float value is not passed correctly into MyWidget but the int value is. (Both worked correctly on the PowerBook.) I think this may be a byte ordering problem in floats. Is there an X-code setting that affects this?

The following is an (contrived) example of what I think you are getting hit by. If you compile the following you see the warnings...

/Users/serickson/DecIssue/DecIssue.m:19: warning: no '+floatValue' method found
/Users/serickson/DecIssue/DecIssue.m:19: warning: (Messages without a
matching method signature
/Users/serickson/DecIssue/DecIssue.m:21: warning: no '+setFloatValue:'
method found
/Users/serickson/DecIssue/DecIssue.m:22: warning: no '+floatValue' method found
/Users/serickson/DecIssue/DecIssue.m:25: warning: no '+floatValue' method found


...and the output will be other then you expect simple because the
compile doesn't see the declaration for some of the methods and
assumes id to be the type...

2007-07-19 11:05:41.883 DecIssue[21367] 1) 1.000000 1.000000 0.000000
2007-07-19 11:05:41.883 DecIssue[21367] 2) 0.000000 0.000000 0.000000
2007-07-19 11:05:41.883 DecIssue[21367] 3) 3.000000 3.000000 0.000000

#import <Foundation/Foundation.h>

static float value;

@class MissedDeclaration;
@class VisibleDeclaration;

@interface VisibleDeclaration : NSObject {
}
+ (void) setValue:(float)inValue;
+ (float) value;
@end

int main (int argc, const char * argv[]) {
    value = 0.0;

    [VisibleDeclaration setValue:1.0];
    NSLog(@"1) %f %f %f", value, [VisibleDeclaration value],
[MissedDeclaration floatValue]);

    [MissedDeclaration setFloatValue:2.0];
    NSLog(@"2) %f %f %f", value, [VisibleDeclaration value],
[MissedDeclaration floatValue]);

    [VisibleDeclaration setValue:3.0];
    NSLog(@"3) %f %f %f", value, [VisibleDeclaration value],
[MissedDeclaration floatValue]);

    return 0;
}

@interface MissedDeclaration : NSObject {
}
+ (void) setFloatValue:(float)inValue;
+ (float) floatValue;
@end

@implementation VisibleDeclaration
+ (void) setValue:(float)inValue
{
    value = inValue;
}

+ (float) value
{
    return value;
}
@end

@implementation MissedDeclaration
+ (void) setFloatValue:(float)inValue
{
    value = inValue;
}

+ (float) floatValue
{
    return value;
}
@end


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

_______________________________________________
Xcode-users mailing list
email@hidden
http://lists.apple.com/mailman/listinfo/xcode-users

End of Xcode-users Digest, Vol 4, Issue 344
*******************************************

_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: UNSUBSCRIBE
      • From: Alastair Houghton <email@hidden>
  • Prev by Date: Re: xcclassmodel Problem
  • Next by Date: Re: distcc incompatible between different OS builds
  • Previous by thread: Re: Hush up deprecated warnings...
  • Next by thread: Re: UNSUBSCRIBE
  • Index(es):
    • Date
    • Thread