|
Next: Help fixing a web page in safari on mac 10.4.6
|
| Author |
Message |
External

Since: Sep 20, 2006 Posts: 18
|
(Msg. 1) Posted: Wed Nov 22, 2006 1:32 am
Post subject: Porting rfom CW8.3 to Xcode problem Archived from groups: comp>sys>mac>programmer>misc (more info?)
|
|
|
Hi, There!
I've ported some sources of project to XCode, but when I trying to
launch in debbuger GetCursor returns NULL, I've learned that it
deprecated now...
I think this is a problem with resources - still using *.r files.
Is that code have to be refactored?
Can I use *.r files or I have to compile it to *.rsrc file or in
Interface Builder import it and get *.nib file.
Also I found that in App bundle there is no any *.r or *.rsrc files.
Thanks!!! |
|
| Back to top |
|
 |  |
External

Since: Sep 20, 2006 Posts: 18
|
(Msg. 2) Posted: Thu Nov 23, 2006 12:31 am
Post subject: Re: Porting rfom CW8.3 to Xcode problem [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
"""David Phillip Oster ΠΙΣΑΜ(Α):
"""
>
> No .rsrc in your bundle, well, that is your problem.
>
> You can certainly add .r files to an Xcode project, and the default
> build rule compiles them to .rsrc files in your bundle. you'll need to
> get the path to the file within your bundle using Core Foundation, then
> open your .rsrc files with FSOpenResFile, but then the old Resource
> Manger calls will still work.
I understood...
But when a add *.r file to poject, XCode doesn't add rsrc file to new
*.app.
In another project i found in "Project Info" Collection Rez.
But in current I have not it! I think collection "Rez" have to be added
automatic when *.r file added! But this doesn't happen.
Beforehand thanks!!! |
|
| Back to top |
|
 |  |
External

Since: Sep 20, 2006 Posts: 18
|
(Msg. 3) Posted: Thu Nov 23, 2006 12:46 am
Post subject: Re: Porting rfom CW8.3 to Xcode problem [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
I remebbered that I compiled *.r file with Rez manually, I added rsrc
file and problem with GetCursor desappear!!!
Thanks! |
|
| Back to top |
|
 |  |
External

Since: Jul 21, 2005 Posts: 150
|
(Msg. 4) Posted: Thu Nov 23, 2006 6:49 am
Post subject: Re: Porting rfom CW8.3 to Xcode problem [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
In article <1164187936.368558.191980.DeleteThis@e3g2000cwe.googlegroups.com>,
"Fonarix" <fonarix.DeleteThis@ukr.net> wrote:
> I've ported some sources of project to XCode, but when I trying to
> launch in debbuger GetCursor returns NULL, I've learned that it
> deprecated now...
> I think this is a problem with resources - still using *.r files.
> Is that code have to be refactored?
> Can I use *.r files or I have to compile it to *.rsrc file or in
> Interface Builder import it and get *.nib file.
> Also I found that in App bundle there is no any *.r or *.rsrc files.
No .rsrc in your bundle, well, that is your problem.
You can certainly add .r files to an Xcode project, and the default
build rule compiles them to .rsrc files in your bundle. you'll need to
get the path to the file within your bundle using Core Foundation, then
open your .rsrc files with FSOpenResFile, but then the old Resource
Manger calls will still work. |
|
| Back to top |
|
 |  |
External

Since: Sep 20, 2006 Posts: 18
|
(Msg. 5) Posted: Thu Nov 23, 2006 8:38 am
Post subject: Re: Porting rfom CW8.3 to Xcode problem [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
I still in search...
When a add *.r file to poject, XCode doesn't add rsrc file to new
*.app.
In another project i found in "Project Info" Collection Rez.
But in current I have not it! I think collection "Rez" have to be added
automatic when *.r file added! But this doesn't happen.
I've written that I compiled it manually, but I have some targets, and
this resources have to be recompile for every current target!
Beforehand thanks!!! |
|
| Back to top |
|
 |  |
External

Since: Jun 18, 2005 Posts: 20
|
(Msg. 6) Posted: Thu Nov 23, 2006 11:04 pm
Post subject: Re: Porting rfom CW8.3 to Xcode problem [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On 2006-11-23 08:38:27 -0800, "Fonarix" <fonarix DeleteThis @ukr.net> said:
> I still in search...
>
> When a add *.r file to poject, XCode doesn't add rsrc file to new
> *.app.
> In another project i found in "Project Info" Collection Rez.
> But in current I have not it! I think collection "Rez" have to be added
>
> automatic when *.r file added! But this doesn't happen.
>
> I've written that I compiled it manually, but I have some targets, and
> this resources have to be recompile for every current target!
You'll need to add a "Build Resource Manager Resources" build phase to
the target that uses these Rez (*.r) files in your project. Then add
your Rez files to this build phase by dragging them under it, and your
Rez files will be built as part of building your application.
At this point you will also have a Rez collection in your target and
project's build settings pane; collections that don't apply to a target
aren't shown in the target's build settings, and collections that don't
apply to any targets in your project aren't shown in the project's
build settings.
-- Chris |
|
| Back to top |
|
 |  |
External

Since: Sep 20, 2006 Posts: 18
|
(Msg. 7) Posted: Fri Nov 24, 2006 9:44 am
Post subject: Re: Porting rfom CW8.3 to Xcode problem [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
"""Chris Hanson ΠΙΣΑΜ(Α):
"""
> On 2006-11-23 08:38:27 -0800, "Fonarix" <fonarix.RemoveThis@ukr.net> said:
>
> > I still in search...
> >
> > When a add *.r file to poject, XCode doesn't add rsrc file to new
> > *.app.
> > In another project i found in "Project Info" Collection Rez.
> > But in current I have not it! I think collection "Rez" have to be added
> >
> > automatic when *.r file added! But this doesn't happen.
> >
> > I've written that I compiled it manually, but I have some targets, and
> > this resources have to be recompile for every current target!
>
> You'll need to add a "Build Resource Manager Resources" build phase to
> the target that uses these Rez (*.r) files in your project. Then add
> your Rez files to this build phase by dragging them under it, and your
> Rez files will be built as part of building your application.
>
> At this point you will also have a Rez collection in your target and
> project's build settings pane; collections that don't apply to a target
> aren't shown in the target's build settings, and collections that don't
> apply to any targets in your project aren't shown in the project's
> build settings.
>
> -- Chris
I've done it!!!
Many thanks!!! |
|
| Back to top |
|
 |  |
| Related Topics: | GetDiskFragment 2806 problem. XCode porting... - In old CW project I had shared library with resources, now I remade it and got dylib in XCode. In program I trying to load it with GetDiskFragment, to load one necessary function from dylib as from shared library: if ((err = FSMakeFSSpec(0, 0, (unsigne...
XCode and Dynamic Linking - I'm totally new to XCode and I can't for the life of me figure out how to get my binary to link against a dynamlic library. I have a very simple ncurses program: #include <ncurses.h> int main() { initscr(); addch('o'); refresh(); ....
What happened to XCode "Find in API" for Java - I seem to remember being impressed with the ProjectBuilder's ability to find the latest Java documentation on Sun's web site. Maybe it was the first XCode. In any case, I haven't used XCode for a while, and after the Feb 6 RefLib update, the Java..
Per-target names for Xcode stlib project - How can I control the name of the output file of a static library project on a per-configuration basis? I'm using Xcode 2.4.1. I know the usual way is to use the same name in per-configuration folders, but I am supposed to put everything in a single..
CustomView & NSImage problem - Hi, I have a CustomView and am displaying an NSImage. The image is higher than the view but instead of cutting off the bottom of the image it cuts off the top. What am I doing wrong? Any help appreciated. Thanks, Paul |
|
You can post new topics in this forum You can reply to topics in this forum You can edit your posts in this forum You can delete your posts in this forum You can vote in polls in this forum
|
|
|
|