realbasic-nug
[Top] [All Lists]

Re: Carbonizing Declares

To: REALbasic Network Users Group <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Carbonizing Declares
From: Brady Duga <duga at ljug dot com>
Date: Sun, 30 Mar 2003 12:51:51 -0800

On Sunday, March 30, 2003, at 12:30  PM, Ryan Govostes wrote:

I got annoyed that every time I opened an old RB project I'd downloaded, the declares were all made for Classic and I had to Carbonize them and put in #if statements and so forth. So, I wrote myself a little method, put it in a little module, and just added it to whatever projects I opened.

I prefer to just make a constant called whatever the classic lib is called, with CarbonLib as the OS X alternate. So, O might have a constant called kAppearanceLib which has a value called "AppearanceLib" for classic and "CarbonLib" for OS X. It's a little more setup, but once you get going you end up with a bunch of constants ready and waiting (especially if they are in an external item).


--Brady
The La Jolla Underground


---
A searchable archive of this list is available at:
<http://support.realsoftware.com/listarchives/search.php>

Unsubscribe:
<mailto:realbasic-nug-off at lists dot realsoftware dot com>

Subscribe to the digest: <mailto:realbasic-nug-digest at lists dot realsoftware dot com>
.


<Prev in Thread] Current Thread [Next in Thread>