Skip navigation.
 
mlRe: defer loading window using bundles in XCode 3 Leopard
FROM : Adam R. Maxwell
DATE : Fri Jul 25 23:28:55 2008

On Friday, July 25, 2008, at 12:40PM, "Kyle Sluder" <kyle.sluder+<email_removed>> wrote:
>On Fri, Jul 25, 2008 at 2:19 PM, julius <<email_removed>> wrote:

>> What I have seen on the web seemed to indicate that bundles are a really
>> good way of splitting up code development etc.
>> I like keeping code compartamentalised and bundles looked like a good way to
>> do it.

>
>This is not what bundles are intended for.  Bundles are ways of
>loading code at runtime.  The reasons for doing so are dictated by
>program requirements, not the development environment.  From a
>development perspective, when your code gets loaded into your process
>should be orthogonal to your environment.  Nothing prevents you from
>splitting your code into multiple projects that all get compiled into
>one executable in the end, achieving your compartmentalization without
>abusing the dynamic loader.


I don't think this is an abuse of bundles, even though it's may not be that common anymore.  If you look at http://www.stone.com/The_Cocoa_Files/Thanks_A_Bundle_.html or the source for CVL [1], I think you'll find bundles used in this way.

>> But I also have the memory of someone else being advised on this list to
>> keep away from bundles.
>> That plus the hastle of working with what to me looks  like out of date
>> documentation....

>
>You may be right; it's certainly incomplete.  One thing it
>historically hasn't addressed well is the use of macros such as
>@executable_path and @loader_path.  I *still* can't find mention of
>@executable_path in the official documentation, despite its
>criticality for certain functionality.


Really?  http://www.google.com/search?hl=en&q=site%3Adeveloper.apple.com+%40executable_path&btnG=Search turns up a number of relevant things, as does a full-text search of "All Doc Sets" in Xcode.  "Dynamic Library Design Guidelines" covers both of these (or at least it mentions them :).

--
Adam

[1] http://www.sente.ch/software/cvl/

Related mailsAuthorDate
mldefer loading window using bundles in XCode 3 Leopard julius Jul 25, 19:38
mlRe: defer loading window using bundles in XCode 3 Leopard Kyle Sluder Jul 25, 19:49
mlRe: defer loading window using bundles in XCode 3 Leopard julius Jul 25, 20:19
mlRe: defer loading window using bundles in XCode 3 Leopard Kyle Sluder Jul 25, 21:38
mlRe: defer loading window using bundles in XCode 3 Leopard Adam R. Maxwell Jul 25, 23:28
mlRe: defer loading window using bundles in XCode 3 Leopard Kyle Sluder Jul 26, 00:33
mlRe: defer loading window using bundles in XCode 3 Leopard Adam R. Maxwell Jul 26, 01:08
mlRe: defer loading window using bundles in XCode 3 Leopard Jeff Johnson Jul 26, 01:23