Professional Web Applications Themes

Bundles of Joy - Mac Programming

From the doentation for Bundle services: Listing 1-6 Locating a bundle using its identifier CFBundleRef requestedBundle; // Look for a bundle using its identifier requestedBundle = CFBundleGetBundleWithIdentifier( CFSTR("com.apple.Finder.MyGetInfoPlugIn") ); I wrote a mini program to do that and only that; the problem is... it doesn't work. For the string I've tried "com.apple.Finder", "com. apple.Safari", ditto.ProjectBuilder, "net.sourceforge.alphatcl", all of which running at the time and not running at the time, and I got those strings by looking with the Plist editor at the CFBundleIdentifier of those apps' Info.plist files. Right? Well for crying out loud. Would someone please make me feel ...

  1. #1

    Default Bundles of Joy


    From the doentation for Bundle services:

    Listing 1-6 Locating a bundle using its identifier

    CFBundleRef requestedBundle;

    // Look for a bundle using its identifier
    requestedBundle = CFBundleGetBundleWithIdentifier(
    CFSTR("com.apple.Finder.MyGetInfoPlugIn") );


    I wrote a mini program to do that and only that; the problem is...
    it doesn't work. For the string I've tried "com.apple.Finder", "com.
    apple.Safari", ditto.ProjectBuilder, "net.sourceforge.alphatcl", all of
    which running at the time and not running at the time, and I got those
    strings by looking with the Plist editor at the CFBundleIdentifier of
    those apps' Info.plist files. Right?

    Well for crying out loud. Would someone please make me feel like an
    idiot NOW. Thank you.

    Speaking of frustrating bundles: I have a project of which the main
    PB "file", "Halime.pbproj", used to be the appropriate, launching pseudo-
    file thing, but it's become a regular ol' folder now. Double clicking
    it of course just opens the folder... Like it's lost its "BNDL bit". I
    can only open it from the Open dialog of PB; is there a non-restarting
    way to fix that?

    Eden
    Eden Guest

  2. #2

    Default Re: Bundles of Joy

    In article <lafn.org>,
    Eden Smallwood <pg> wrote:
     

    They forgot to mention it only works on bundles that are already loaded in the
    current process.
     

    You are welcome :-)
     

    Try creating an empty file inside it named ".typeAttributes.dict".

    hth

    meeroh

    --
    If this message helped you, consider buying an item
    from my wish list: <http://web.meeroh.org/wishlist>

    Miro Guest

  3. #3

    Default Re: Bundles of Joy

    Miro Jurisic spake:
    ? In article <lafn.org>,
    ? Eden Smallwood <pg> wrote:
    ?
    ?> Listing 1-6 Locating a bundle using its identifier
    ?
    ? They forgot to mention it only works on bundles that are already
    ? loaded in the current process.

    Well, the fact that 'loading it into the current process' is just what
    I thought I was trying to do suggests to me that I might as well cancel
    this question. This was really an attempted recon into a question I'll
    ask in a new thread, therefore.

    ?> "BNDL bit". I can only open it from the Open dialog of PB; is there
    ?> a non-restarting way to fix that?
    ?
    ? Try creating an empty file inside it named ".typeAttributes.dict".

    Hasn't affected anything yet. I REALLY wish I had ResEditX... but
    thanks fer tryin',

    Eden
    Eden Guest

  4. #4

    Default Re: Bundles of Joy

    In article <lafn.org>,
    Eden Smallwood <pg> wrote:
     

    Not that it's anywhere close to finished, but I just wanted to point out
    that, years ago, we started on ResKnife (http://resknife.sf.net), and if
    you want a ResEdit for X, your best option is to start with that and add
    whatever features you're missing.

    Cheers,
    -- M. Uli Kusterer
    http://www.zathras.de
    Uli Guest

  5. #5

    Default Re: Bundles of Joy

    Uli Kusterer spake:
    ? In article <lafn.org>,
    ? Eden Smallwood <pg> wrote:
    ?
    ?> Hasn't affected anything yet. I REALLY wish I had ResEditX... but

    ? Not that it's anywhere close to finished, but I just wanted to point
    ? out that, years ago, we started on ResKnife (http://resknife.sf.net),
    ? and if you want a ResEdit for X, your best option is to start with
    ? that and add whatever features you're missing.

    I'll check it out, thanks. FWIW, I came up with the 'answer' to a
    muffed BNDL bit: change the extension to something arbitrary, (say OK to
    the annoying dialog), then change it back to what it should be. Easy. :)

    Eden
    Eden Guest

Similar Threads

  1. baOpenFile, Bundles, and OS9
    By Michael Gartner in forum Macromedia Director Basics
    Replies: 3
    Last Post: April 29th, 02:30 PM
  2. Auto-starting bundles on Mac OS???
    By Nitin Mistry in forum Macromedia Director Lingo
    Replies: 1
    Last Post: October 22nd, 01:18 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139