Igor Delovski Board Forum Index Igor Delovski Board
My Own Personal Slashdot!
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

XCode and Libraries

 
Post new topic   Reply to topic    Igor Delovski Board Forum Index -> Mac Carbon
Mac Carbon  
Author Message
delovski



Joined: 14 Jun 2006
Posts: 3522
Location: Zagreb

PostPosted: Tue Aug 29, 2006 10:29 pm    Post subject: XCode and Libraries Reply with quote

Question About XCode and Static Carbon Libraries

"After using CodeWarrior for years, I have finally been forced to make
the inevitable switch to XCode. I will spare everyone the gory details
but let it suffice to say that I almost threw up my hands in frustration
and simply gave up. This was not really an option so after putting it
off for 18 months I am finally making the attempt to get switched over
to XCode."
Back to top
View user's profile Send private message Visit poster's website
Jean Jacques



Joined: 01 Jul 2006
Posts: 12

PostPosted: Fri Sep 01, 2006 6:30 pm    Post subject: Reply with quote

XCode and header file changes?

"I change a #define which exists in a header file but that file isn't in the
project.
Behavior: XCode appear to compile some files but during debugging I can
clearly see that the change wasn't seen. I end up having to do a Clean
and full Build to make the change effective"
Back to top
View user's profile Send private message
delovski



Joined: 14 Jun 2006
Posts: 3522
Location: Zagreb

PostPosted: Thu Sep 07, 2006 11:08 am    Post subject: Reply with quote

Can't add a file to XCode project

"The files are still greyed out.  The workaround was to drag & drop from
the Finder. I'm increasingly convinced that XCode is very immature
compared to Codewarrior. "
Back to top
View user's profile Send private message Visit poster's website
delovski



Joined: 14 Jun 2006
Posts: 3522
Location: Zagreb

PostPosted: Tue Sep 26, 2006 3:53 pm    Post subject: Reply with quote

Indie Gamer: Mac programming

"Apps developed in earlier versions of the OS should work in later versions,
but there may be some quirks so you should always test. Apps developed
in X.4 will work in earlier versions, but only if you set the deployment
target in Xcode to an earlier system (just a simple flag). Also, you can't
require the use of technologies only available in later systems. Still, you'll
want to test on earlier systems to make sure everything works."
Back to top
View user's profile Send private message Visit poster's website
delovski



Joined: 14 Jun 2006
Posts: 3522
Location: Zagreb

PostPosted: Mon Oct 09, 2006 8:28 am    Post subject: Reply with quote

Help with linking error

"I know OS X is famous for it's linking errors when using C++ and make,
but I unfortunately have some legacy code which I would like to compile
and run on my OS X machine."
Back to top
View user's profile Send private message Visit poster's website
XNote
Kapetan


Joined: 16 Jun 2006
Posts: 520

PostPosted: Tue Oct 31, 2006 8:58 pm    Post subject: Reply with quote

C equivalent of cp, cpmac or ditto ?

"I have heard that this feature is broken, although I don't exactly recall
and I've never tested it. Beware when writing code that uses this, and
test it in weird situations like external drives, network volumes, etc.
The Trash is a complicated place."
Back to top
View user's profile Send private message
delovski



Joined: 14 Jun 2006
Posts: 3522
Location: Zagreb

PostPosted: Tue Nov 07, 2006 10:21 am    Post subject: Reply with quote

Why are libraries so flaky on macosx?

"This happens because the file system modification date of the archive is
later than the date of the .a TOC. Use 'cp -p' to copy the static lib to
preserve the original file system flags."


See: Building And Using Static And Shared "C" Libraries
Back to top
View user's profile Send private message Visit poster's website
delovski



Joined: 14 Jun 2006
Posts: 3522
Location: Zagreb

PostPosted: Fri Nov 17, 2006 9:47 am    Post subject: Reply with quote

Completely puzzled vis-a-vis Carbon and Unix executables

"If I paste this code into an XCode "simple Carbon window" project (i.e.
into main.c) then it works as expected: it gives me a resizable,
movable, focusable Smile window. But then, the end-result of building the
XCode project is a directory structure with some obscure resources and
an executable tucked underneath."
Back to top
View user's profile Send private message Visit poster's website
delovski



Joined: 14 Jun 2006
Posts: 3522
Location: Zagreb

PostPosted: Wed Jan 03, 2007 10:59 am    Post subject: Reply with quote

Help, no-go

"I'm using Xcode 2.4.1 and if I start a new Cocoa app, write no extra
code and so only use what was generated, build a release version (or
debug) and run it the app only runs on my machine and no other. (all are
PPC"
Back to top
View user's profile Send private message Visit poster's website
delovski



Joined: 14 Jun 2006
Posts: 3522
Location: Zagreb

PostPosted: Wed Feb 07, 2007 10:27 am    Post subject: Reply with quote

Carbon WebKit

"I've found a few references, and everything seems like it should be
easy, but I'm making some simple mistakes."
Back to top
View user's profile Send private message Visit poster's website
delovski



Joined: 14 Jun 2006
Posts: 3522
Location: Zagreb

PostPosted: Wed May 16, 2007 1:42 pm    Post subject: Reply with quote

iDevApps: Path of library / GetModuleHandle() equivalent

"What kind of a library? You can use CFBundleGetBundleWithIdentifier to get
the system frameworks, and CFBundleCreate + CFBundleLoadExecutable to
load a plug-in. CFBundleCopyBundleURL is the function you want."
Back to top
View user's profile Send private message Visit poster's website
Ike
Kapetan


Joined: 17 Jun 2006
Posts: 2634
Location: Europe

PostPosted: Tue Oct 14, 2008 5:11 pm    Post subject: Reply with quote

SO - How do I create a dynamic library (dylib) with Xcode?

"I'm building few command-line utilities in Xcode (plain C, no Cocoa). I want
all of them to use my customized version of libpng, and I want to save space
by sharing one copy of the library among all executables (I don't mind re-
distributing .dylib with them)."
Back to top
View user's profile Send private message
Ike
Kapetan


Joined: 17 Jun 2006
Posts: 2634
Location: Europe

PostPosted: Wed Jan 22, 2014 10:24 pm    Post subject: Reply with quote

github.com - soffes / ssziparchive

"Utility class for zipping and unzipping files on iOS and Mac"

Based on: ziparchive

"An Objective C class for zip/unzip on iPhone and Mac OSX"
Back to top
View user's profile Send private message
Ike
Kapetan


Joined: 17 Jun 2006
Posts: 2634
Location: Europe

PostPosted: Mon Apr 11, 2022 8:54 am    Post subject: Reply with quote

git - Tigerbrew

"On the computer you're reading this on, control or right click this link and
save it (the option will be something like 'Save Link As' or 'Download Linked
File' depending on your browser) to disk:

https://raw.github.com/mistydemeo/tigerbrew/go/install

Transfer it to your Tiger or Leopard machine along with Xcode."


tip: Building EDuke32 on Mac OS X

Code:
 brew install --universal sdl sdl_mixer sdl2 sdl2_mixer homebrew/dupes/zlib libpng libogg libvorbis flac libvpx luajit


lipo -create <file1> <file2> <...> -output <file>
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Igor Delovski Board Forum Index -> Mac Carbon All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Delovski.hr
Powered by php-B.B. © 2001, 2005 php-B.B. Group