MacOSX SDK 10.7 and CGDisplayBitsPerPixel, InsetRect and some static casts

192 views
Skip to first unread message

Arthur Norman

unread,
Jul 22, 2011, 3:43:26 AM7/22/11
to wx-...@googlegroups.com
I just tried building using revision 68324 on MacOSX Lion. After some
pain because my previous scripts tried a universal build but now "-arch
ppc" just fails it MOSTLY builds for me but I get moans that
CGDisplayBitsPerPixel no longer exists. Developer.apple.com reports that
that was deprecated in 10.6 and does longer exist beyond there... so the
10.7 SDK gives pain.

Rather similarly InsetRect seems to have been removed too.

If I patch so that compilation gets beyond the above I see complaints
about invalid static casts in osx/cocoa/dataview.mm where in SDK 10.7 I
get a moan that objc_object* may not be cast to wxDataViewColumn* -
while with SDK10.6 my compilation at least completed OK.

If I use the 10.6 SDK on Lion I still seem to need to avoid any attempt
to build ppc code but I can build a working library so this is not
totally urgent...

Stefan Csomor

unread,
Jul 22, 2011, 3:54:06 AM7/22/11
to wx-...@googlegroups.com
Hi

>If I use the 10.6 SDK on Lion I still seem to need to avoid any attempt
>to build ppc code but I can build a working library so this is not
>totally urgent...

ppc support was thrown out of xcode 4 and clang, so be sure to keep a
version of XCode 3 around

Best,

Stefan

Arthur Norman

unread,
Jul 25, 2011, 6:08:07 AM7/25/11
to wx-...@googlegroups.com
The attachment gives diffs showing temporary hacks I put in my copy so I
could at least compile using the 10.7 SDK. They give me a version I can
play with some more on Lion... and at least they give 100% definite
pointers to the places that gave me trouble... My casts via "void *"
really do not seem a proper way to go!
Arthur

wxchanges

Vadim Zeitlin

unread,
Jul 25, 2011, 6:41:09 AM7/25/11
to wx-...@googlegroups.com
On Mon, 25 Jul 2011 11:08:07 +0100 Arthur Norman <ac...@cam.ac.uk> wrote:

AN> The attachment gives diffs showing temporary hacks I put in my copy so I
AN> could at least compile using the 10.7 SDK. They give me a version I can
AN> play with some more on Lion... and at least they give 100% definite
AN> pointers to the places that gave me trouble... My casts via "void *"
AN> really do not seem a proper way to go!

I do wonder what does "pointer" return now if it doesn't return "void *"
though. And how can we convert "id" (Objective C object pointer) to C
pointer and whether it's even still valid... Unfortunately I don't know
the answers to these questions nor how to find them.

I am also curious to know why did they feel the need to deprecate and then
remove InsetRect(), this really doesn't look like a function that it would
be expensive to keep nor is it obviously "wrong" in any way I can see. Oh
well, it's Apple.

Regards,
VZ

Stefan Csomor

unread,
Jul 25, 2011, 7:36:24 AM7/25/11
to wx-...@googlegroups.com
Hi

I've put the question about the proper handling on the apple dev forums,
if I don't get an answer, I'll spend a Developer Request. The way SDK 10.7
is right now, building something for < 10.6 is not really supported, but I
have not found a definitive answer in a release note or somewhere...

Best,

Stefan


Reply all
Reply to author
Forward
0 new messages