From alanrogersmith at gmail.com Sat Sep 1 10:09:53 2007 From: alanrogersmith at gmail.com (Alan Smith) Date: Sat Sep 1 10:09:57 2007 Subject: UI Feedback Wanted Message-ID: Hello everyone, I'm writing an application that will have many plugins, displayed in a table on the left, and each plugin will have a set of users, displayed in a table on the right. The view provided by each plugin is displayed in the middle. My question is, how would you do this? The way I'm currently doing it, which you can see in the screenshot, can take up a lot of screen real-estate and I don't like that. Previously I would have put the users table in a drawer but those have more or less died. Any ideas? Thanks, Alan -- My blog: cocoalatte.info // Things I've said ------------------------- "Maturity resides in the mind." "Silence is the Universe's greatest gift." "When the World realizes that personal beliefs are not something to argue or fight over, it shall evolve." From kusterer at gmail.com Sat Sep 1 14:41:43 2007 From: kusterer at gmail.com (Uli Kusterer) Date: Sat Sep 1 14:41:53 2007 Subject: UI Feedback Wanted In-Reply-To: References: Message-ID: <0BF94BB2-A5B3-49E3-8895-B3976BD98222@gmail.com> On 01.09.2007, at 19:09, Alan Smith wrote: > I'm writing an application that will have many plugins, displayed in a > table on the left, and each plugin will have a set of users, displayed > in a table on the right. The view provided by each plugin is displayed > in the middle. My question is, how would you do this? The way I'm > currently doing it, which you can see in the screenshot, can take up a > lot of screen real-estate and I don't like that. Previously I would > have put the users table in a drawer but those have more or less died. > Any ideas? Errr... what screenshot? Also, can you give us some more information on what your app will actually do, and what those "users" are? I'd think that showing your info as a graph (where plugins may add one or more nodes in the graph, as boxes with custom content, custom icons or whatever makes sense) might be a better idea here. FWIW, I also count a design like an automator workflow as a graph, because it's a very simple one with nodes showing UI elements. Would something like that fit your app? By the way, there's a Mac-GUI-Dev mailing list at that may be a better venue to discuss things like this. > // Things I've said ------------------------- > "Maturity resides in the mind." > "Silence is the Universe's greatest gift." > "When the World realizes that personal beliefs are not something to > argue or fight over, it shall evolve." I think you're the first person I've seen who quotes himself ... :-p Cheers, -- M. Uli Kusterer http://www.zathras.de From gweston at mac.com Sat Sep 1 14:44:39 2007 From: gweston at mac.com (Gregory Weston) Date: Sat Sep 1 14:44:43 2007 Subject: UI Feedback Wanted In-Reply-To: <20070901190004.EFAF21AEB65@forums.omnigroup.com> References: <20070901190004.EFAF21AEB65@forums.omnigroup.com> Message-ID: Alan Smith wrote: > I'm writing an application that will have many plugins, displayed in a > table on the left, and each plugin will have a set of users, displayed > in a table on the right. The view provided by each plugin is displayed > in the middle. My question is, how would you do this? The way I'm > currently doing it, which you can see in the screenshot, can take up a > lot of screen real-estate and I don't like that. Previously I would > have put the users table in a drawer but those have more or less died. > Any ideas? 1. Don't know where the screenshot you're referencing is. 2. If the "they" in "they have more or less died" means drawers, I don't agree. They still work fine and are used by several 3rd party apps that I use regularly. If they're the right choice for you, use them. From finlay.dobbie at gmail.com Sat Sep 1 15:42:39 2007 From: finlay.dobbie at gmail.com (Finlay Dobbie) Date: Sat Sep 1 15:42:43 2007 Subject: UI Feedback Wanted In-Reply-To: References: Message-ID: Apple has pretty much replaced them in all of their apps. Their adoption by third parties is, from my experience, dwindling (and was never particularly widespread). -- Finlay On 01/09/07, Alan Smith wrote: > Hello everyone, > > I'm writing an application that will have many plugins, displayed in a > table on the left, and each plugin will have a set of users, displayed > in a table on the right. The view provided by each plugin is displayed > in the middle. My question is, how would you do this? The way I'm > currently doing it, which you can see in the screenshot, can take up a > lot of screen real-estate and I don't like that. Previously I would > have put the users table in a drawer but those have more or less died. > Any ideas? > > Thanks, Alan > > -- > My blog: cocoalatte.info > > // Things I've said ------------------------- > "Maturity resides in the mind." > "Silence is the Universe's greatest gift." > "When the World realizes that personal beliefs are not something to > argue or fight over, it shall evolve." > From alanrogersmith at gmail.com Sat Sep 1 19:52:50 2007 From: alanrogersmith at gmail.com (Alan Smith) Date: Sat Sep 1 19:52:53 2007 Subject: UI Feedback Wanted In-Reply-To: References: Message-ID: Hello, Thanks for looking guys, sorry about the screenshot. You can view it at http://cocoalatte.info/screenshot.png. If you had any questions the picture should be able to answer them for you. A note about the users, the selected user in the table will be considered the "active" user. It will be used to authenticate any calls to websites that the plugin may make. Peace, Alan -- My blog: cocoalatte.info // Things I've said ------------------------- "Maturity resides in the mind." "Silence is the Universe's greatest gift." "When the World realizes that personal beliefs are not something to argue or fight over, it shall evolve." From gweston at mac.com Sun Sep 2 14:47:07 2007 From: gweston at mac.com (Gregory Weston) Date: Sun Sep 2 14:47:11 2007 Subject: UI Feedback Wanted In-Reply-To: <20070902190002.6E6361AF1C5@forums.omnigroup.com> References: <20070902190002.6E6361AF1C5@forums.omnigroup.com> Message-ID: Alan Smith wrote: > A note about the users, the selected user in the table will be > considered the "active" user. It will be used to authenticate any > calls to websites that the plugin may make. How often during a session would the application user typically be changing which user is selected in the table? From alanrogersmith at gmail.com Sun Sep 2 18:37:33 2007 From: alanrogersmith at gmail.com (Alan Smith) Date: Sun Sep 2 18:37:37 2007 Subject: UI Feedback Wanted In-Reply-To: References: <20070902190002.6E6361AF1C5@forums.omnigroup.com> Message-ID: Gregory, Good question? I don't really know? I can't see why a user would have more than one account for each service (How many del.icio.us accounts do you have?) but Pukka has this functionality so I thought someone must use it. If you don't think many people have more than one account per service and that including such functionality is a waste of time and effort please let me know. Peace, Alan -- My blog: cocoalatte.info // Things I've said ------------------------- "Maturity resides in the mind." "Silence is the Universe's greatest gift." "When the World realizes that personal beliefs are not something to argue or fight over, it shall evolve." From bg_lists at mac.com Sun Sep 2 20:03:56 2007 From: bg_lists at mac.com (bg_lists@mac.com) Date: Sun Sep 2 20:03:33 2007 Subject: UI Feedback Wanted In-Reply-To: References: <20070902190002.6E6361AF1C5@forums.omnigroup.com> Message-ID: <23D9D3E5-3E2B-4E67-AC27-6AD85290D801@mac.com> It would seem to me that if you want to employ an account switching mechanism the simplest and most effective option would be a popup as found in Mail, not a large widget such as a table. - brian On Sep 2, 2007, at 6:37 PM, Alan Smith wrote: > Gregory, > > Good question? I don't really know? I can't see why a user would have > more than one account for each service (How many del.icio.us accounts > do you have?) but Pukka has this functionality so I thought someone > must use it. If you don't think many people have more than one account > per service and that including such functionality is a waste of time > and effort please let me know. > > Peace, Alan > > -- > My blog: cocoalatte.info > > // Things I've said ------------------------- > "Maturity resides in the mind." > "Silence is the Universe's greatest gift." > "When the World realizes that personal beliefs are not something to > argue or fight over, it shall evolve." > _______________________________________________ > MacOSX-dev mailing list > MacOSX-dev@omnigroup.com > http://www.omnigroup.com/mailman/listinfo/macosx-dev From kusterer at gmail.com Mon Sep 3 01:58:34 2007 From: kusterer at gmail.com (Uli Kusterer) Date: Mon Sep 3 01:58:46 2007 Subject: UI Feedback Wanted In-Reply-To: References: <20070902190002.6E6361AF1C5@forums.omnigroup.com> Message-ID: On 03.09.2007, at 03:37, Alan Smith wrote: > Good question? I don't really know? I can't see why a user would have > more than one account for each service (How many del.icio.us accounts > do you have?) but Pukka has this functionality so I thought someone > must use it. If you don't think many people have more than one account > per service and that including such functionality is a waste of time > and effort please let me know. If you have access to the WWDC session videos, there's at least two sessions where John Geleynse talks about usability, and how to lay out a GUI. One of the things he outlines there that you may want to take to heart is that screen real estate is limited, and you should lay out your UI (and particularly your main window's UI) by importance and frequency of use. I.e., put the stuff users think about the most when using your app (i.e. the main metaphor) into the main window, and make it the biggest item, then pick the next most important concept, and go on like that. One of the examples is iTunes, where he says that songs are most important, so make it a huge song list. Then people want to organize their stuff in lists of songs (which also include devices like iPods, which, after all, can also be seen as lists of songs since they're containers for songs), so that's the second list. Then the next most important things are a few buttons with the most common actions, which are placed near the items they apply to, and since iTunes is a Music player and can be collapsed into a minimal play-control window, he also puts in a big "what's playing now" area. The rest of the stuff he deems as less important and he dumps them into the menus, and into secondary windows. You should do the same. Don't just take every feature and dump it in a window. Think about who is going to use your app, and how. Then make sure common actions are really quick and easy to do. Imagine iTunes required you to open a separate window and click a button to skip a track there and close it again, every time a song came up that you don't want to hear right now. On the other end of the scale, how often do you enter your iTMS login, or change the equalizer settings, or specify whether the mini player should float on top or not? Those are things you probably set once and then leave that way, or at most change every blue moon, so it's OK to require a few more clicks to do those. If one of your competitors has a particular feature, don't just add it willy-nilly. That's not good business sense. Either it's a good feature, and you want to add it for a reason, then you'll know how important it is. Or the author of that app made a mistake: In that case you don't want to copy his mistakes. Instead, you want to make sure your app distinguishes itself by not having a useless feature, and take advantage of being able to simplify your UI that way. And then you have a leg up on the competition, because you aren't confusing your users with things they'll never use. Find out how people use that feature, and you'll know how to implement it. Cheers, M. Uli Kusterer -- My blog: www.zathras.de/blog.htm // Things I've eaten today ---------- "One sausage" "Cereals in milk" "Noodles with tomatoes, tomato sauce, ground meat, herbs, salt and pepper" From alanrogersmith at gmail.com Mon Sep 3 06:52:17 2007 From: alanrogersmith at gmail.com (Alan Smith) Date: Mon Sep 3 06:52:20 2007 Subject: UI Feedback Wanted In-Reply-To: References: <20070902190002.6E6361AF1C5@forums.omnigroup.com> Message-ID: Thanks everyone! I think I have a couple choices: 1) Put a borderless pop-up menu with the users in it to the right of every plugin table item. 2) Put a "divider" at the bottom of the plugin table and below that put a pop-up with the users in it. I like 2 more than 1 but that doesn't mean that's the better option. Which way do you think I should go? Peace, Alan -- My blog: cocoalatte.info // Things I've said ------------------------- "Maturity resides in the mind." "Silence is the Universe's greatest gift." "When the World realizes that personal beliefs are not something to argue or fight over, it shall evolve." From dunham at mac.com Mon Sep 3 10:17:50 2007 From: dunham at mac.com (David Dunham) Date: Mon Sep 3 10:17:59 2007 Subject: UI Feedback Wanted In-Reply-To: References: <20070902190002.6E6361AF1C5@forums.omnigroup.com> Message-ID: On 3 Sep 2007, at 06:52, Alan Smith wrote: > 1) Put a borderless pop-up menu with the users in it to the right of > every plugin table item. > > 2) Put a "divider" at the bottom of the plugin table and below that > put a pop-up with the users in it. 2 probably wastes fewer pixels -- you don't have an unused column (a column of a single popup is definitely wasted!). David Dunham A Sharp, LLC Voice/Fax: 206 783 7404 http://a-sharp.com Efficiency is intelligent laziness. From mchristian at v1labs.com Tue Sep 4 11:48:57 2007 From: mchristian at v1labs.com (Mark Christian) Date: Tue Sep 4 12:19:24 2007 Subject: NSURLConnection crash on POST Message-ID: Hi, folks; I've got a weird crash that's driving me crazy. Hopefully someone out there can shed some light on the situation. I have a method that navigates a WebView to a particular URL. Sometimes, it posts data along with the request, sometimes not. The POST data is sorted in an NSData called pendingData, and the function looks something like this: if (pendingData == nil) { // Simple request urlRequest = [NSURLRequest requestWithURL:url]; } else { // POST request urlRequest = [NSMutableURLRequest requestWithURL:url]; [urlRequest setHTTPMethod:@"POST"]; // Encode data // (snipped) } [self loadURLRequest:urlRequest]; In the case where pendingData is nil, everything works perfectly. In the case where it's not nil, I get an NSURLConnection. My POST data encoding definitely works, because it has worked in the past -- something else got broken. Just setting the HTTP method to "POST" is enough to cause the crash. Here's the crash log: #0 0x90a594c7 in objc_msgSend () #1 0xbfffe9e8 in ?? () #2 0x92859ee4 in -[NSURLConnection(NSURLConnectionInternal) _sendCallbacks] () #3 0x92859ab5 in _sendCallbacks () #4 0x9082cf92 in CFRunLoopRunSpecific () #5 0x9082cace in CFRunLoopRunInMode () #6 0x92ded8d8 in RunCurrentEventLoopInMode () #7 0x92decfe2 in ReceiveNextEventCommon () #8 0x92dece39 in BlockUntilNextEventMatchingListInMode () #9 0x93293465 in _DPSNextEvent () #10 0x93293056 in -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] () #11 0x9328cddb in -[NSApplication run] () #12 0x93280d2f in NSApplicationMain () #13 0x0000231e in main (argc=1, argv=0xbffff88c) at /Users/mark/Work/ Provisioning/Macintosh/trunk/Provisioning Wizard/main.m:31 If anyone out there can help, I'd be really appreciative. Thank you in advance; Mark From fritza at manoverboard.org Tue Sep 4 13:26:35 2007 From: fritza at manoverboard.org (Fritz Anderson) Date: Tue Sep 4 13:56:18 2007 Subject: NSURLConnection crash on POST In-Reply-To: References: Message-ID: When you "get" your NSURLConnection (you don't show this), do you set the delegate? Do you take care that the delegate does not get released/ autoreleased while the connection is still pending? The -[NSURLConnection(NSURLConnectionInternal) _sendCallbacks] method, followed immediately by a crasher in objc_msgSend (which is a strong indicator of a message sent to a released object) is very suggestive. ? F On Sep 4, 2007, at 1:48 PM, Mark Christian wrote: > In the case where it's not nil, I get an NSURLConnection. ... > Here's the crash log: > #0 0x90a594c7 in objc_msgSend () > #1 0xbfffe9e8 in ?? () > #2 0x92859ee4 in -[NSURLConnection(NSURLConnectionInternal) > _sendCallbacks] () From mchristian at v1labs.com Wed Sep 5 05:33:52 2007 From: mchristian at v1labs.com (Mark Christian) Date: Wed Sep 5 05:35:15 2007 Subject: NSURLConnection crash on POST In-Reply-To: References: Message-ID: <77977AFF-65AD-41FC-A68F-7112ADDBC26A@v1labs.com> The NSURLConnection is implicit -- I send my NSURLRequest to a WebFrame, and some time later, the NSURLConnection error pops up. I never set the delegate myself. Right now, the NSURLRequest is an autoreleased object. However, if I change it to an alloc/init retained object, I still get the crash. Also, and frustratingly, this exact code used to work. The only difference is that the WebFrame is now pointing to a page with a frameset, whereas it wasn't before. Where else can I look for release bugs? Mark On 4-Sep-07, at 5:26 PM, Fritz Anderson wrote: > When you "get" your NSURLConnection (you don't show this), do you > set the delegate? Do you take care that the delegate does not get > released/autoreleased while the connection is still pending? > > The -[NSURLConnection(NSURLConnectionInternal) _sendCallbacks] > method, followed immediately by a crasher in objc_msgSend (which is > a strong indicator of a message sent to a released object) is very > suggestive. > > ? F > > > On Sep 4, 2007, at 1:48 PM, Mark Christian wrote: > >> In the case where it's not nil, I get an NSURLConnection. > ... >> Here's the crash log: >> #0 0x90a594c7 in objc_msgSend () >> #1 0xbfffe9e8 in ?? () >> #2 0x92859ee4 in -[NSURLConnection(NSURLConnectionInternal) >> _sendCallbacks] () > From llothar at web.de Wed Sep 5 06:51:47 2007 From: llothar at web.de (Lothar Scholz) Date: Wed Sep 5 06:52:01 2007 Subject: X11 Xft compile failure Message-ID: <53073812.20070905205147@web.de> Hello MacOSX-Dev, I still have to use X11 for my software and i tried to build the FOX Gui Toolkit. Works fine without using Xft. But when i configure it with "--with-xft" it not work my machine. I get the following error for the first compiled file. g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"fox\" -DVERSION=\"1.6.29\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_DIRENT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -DHAVE_GETPAGESIZE=1 -DHAVE_MMAP=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_FILIO_H=1 -DHAVE_X11_EXTENSIONS_SHAPE_H=1 -DHAVE_X11_EXTENSIONS_XSHM_H=1 -DHAVE_PNG_H=1 -DHAVE_TIFF_H=1 -DHAVE_ZLIB_H=1 -DHAVE_BZLIB_H=1 -DHAVE_X11_XCURSOR_XCURSOR_H=1 -DHAVE_X11_EXTENSIONS_XRANDR_H=1 -DHAVE_VSSCANF=1 -DHAVE_VSNPRINTF=1 -DHAVE_STRTOLL=1 -DHAVE_STRTOULL=1 -DHAVE_LIBDL=1 -I. -I. -I../include -I../include -I /Users/llothar/work_generated/macosx_ix86/contrib/install/include -g -O2 -DHAVE_XFT_H=1 -DHAVE_XSHAPE _H=1 -DHAVE_XSHM_H=1 -DFOX_THREAD_SAFE=1 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_GNU_SOURCE -DHAVE_JPEG_H=1 -DHAVE_PNG_H=1 -DHAVE_TIFF_H=1 -DHAVE_ZLIB_H=1 -DHAVE_BZ2LIB_H=1 -DHAVE_XCURSOR_H=1 -DHAVE_XRANDR_H=1 -DNO_XIM -Wall -W -Woverloaded-virtual -Wformat -O2 -DNDEBUG -Wuninitialized -ffast-math -finline-functions -fomit-frame-pointer -fexpensive-optimizations -fno-strict-aliasing -c FX88592Codec.cpp -o FX88592Codec.o In file included from /usr/include/X11/Xft/Xft.h:35, from ../include/xincs.h:211, from FX88592Codec.cpp:1: /usr/local/include/ft2build.h:56:38: error: freetype/config/ftheader.h: No such file or directory In file included from ../include/xincs.h:211, from FX88592Codec.cpp:1: /usr/include/X11/Xft/Xft.h:36:10: error: #include expects "FILENAME" or In file included from /usr/include/X11/Xft/Xft.h:35, from ../include/xincs.h:211, from FX88591Codec.cpp:1: /usr/local/include/ft2build.h:56:38: error: freetype/config/ftheader.h: No such file or directory In file included from ../include/xincs.h:211, from FX88591Codec.cpp:1: /usr/include/X11/Xft/Xft.h:36:10: error: #include expects "FILENAME" or /usr/include/X11/Xft/Xft.h:53: error: 'FT_Library' does not name a type /usr/include/X11/Xft/Xft.h:87: error: 'FT_UInt' does not name a type /usr/include/X11/Xft/Xft.h:94: error: 'FT_UInt' does not name a type /usr/include/X11/Xft/Xft.h:191: error: expected ',' or '...' before '*' token /usr/include/X11/Xft/Xft.h:296: error: expected ',' or '...' before '*' token /usr/include/X11/Xft/Xft.h:354: error: 'FT_Face' does not name a type /usr/include/X11/Xft/Xft.h:394: error: expected ',' or '...' before '*' token /usr/include/X11/Xft/Xft.h:400: error: expected ',' or '...' before '*' token /usr/include/X11/Xft/Xft.h:409: error: 'FT_UInt' has not been declared /usr/include/X11/Xft/Xft.h:410: error: 'FT_UInt' has not been declared /usr/include/X11/Xft/Xft.h:418: error: 'FT_UInt' does not name a type /usr/include/X11/Xft/Xft.h:462: error: expected ',' or '...' before '*' token /usr/include/X11/Xft/Xft.h:53: error: 'FT_Library' does not name a type /usr/include/X11/Xft/Xft.h:87: error: 'FT_UInt' does not name a type /usr/include/X11/Xft/Xft.h:94: error: 'FT_UInt' does not name a type /usr/include/X11/Xft/Xft.h:191: error: expected ',' or '...' before '*' token /usr/include/X11/Xft/Xft.h:296: error: expected ',' or '...' before '*' token /usr/include/X11/Xft/Xft.h:354: error: 'FT_Face' does not name a type /usr/include/X11/Xft/Xft.h:394: error: expected ',' or '...' before '*' token /usr/include/X11/Xft/Xft.h:400: error: expected ',' or '...' before '*' token /usr/include/X11/Xft/Xft.h:409: error: 'FT_UInt' has not been declared /usr/include/X11/Xft/Xft.h:410: error: 'FT_UInt' has not been declared /usr/include/X11/Xft/Xft.h:418: error: 'FT_UInt' does not name a type /usr/include/X11/Xft/Xft.h:462: error: expected ',' or '...' before '*' token make[1]: *** [FX88591Codec.lo] Error 1 make[1]: *** Waiting for unfinished jobs.... make[1]: *** [FX88592Codec.lo] Error 1 make: *** [all-recursive] Error 1 ****** FATAL ERRROR ******* /usr/include/X11/Xft/Xft.h:36:10: error: #include expects "FILENAME" or This line is indeed "#include FT_FREETYPE_H" and so i guess there is something wrong with my computer configuration. Anybody know how i can fix it (without porting to Cocoa or Carbon)? I manually installed freetype and fontconfig with the usual "configure/make/sudo make install" so the files should be there. I also updated to Xcode 2.4.1 just today. -- Best regards, Lothar mailto:llothar@web.de From kusterer at gmail.com Wed Sep 5 08:48:35 2007 From: kusterer at gmail.com (Uli Kusterer) Date: Wed Sep 5 08:48:42 2007 Subject: Broken missing prototypes warning in ObjC? Message-ID: Hi, I just encountered a strange problem: I tried to turn on all warnings in one of my Cocoa projects, and I also turned on the warning about missing function prototypes (not method, function). Trouble is, now I get error messages for some functions where I *know* that there are prototypes for them. I've tried everything to get rid of these erroneous warnings. I copied the signature of the function right above the implementation, put a semicolon after it, and I still get the warning. Has anyone experienced that? I tried it on several Macs at work and it happens everywhere there, but only in .m files, not in .c or .cpp files. It happens in a fresh Objective C project, even. Has anyone heard of this before, or more importantly, found a fix for this? It's a rather important warning, and I have a bunch of C code that would really benefit from this warning. Alternately, does anyone know whether there's a #pragma or so with which I can turn off this warning in my ObjC files, so I can still leave it on for the C and C++ code? Cheers, -- M. Uli Kusterer http://www.zathras.de From fritza at manoverboard.org Wed Sep 5 10:04:41 2007 From: fritza at manoverboard.org (Fritz Anderson) Date: Wed Sep 5 10:05:07 2007 Subject: X11 Xft compile failure In-Reply-To: <53073812.20070905205147@web.de> References: <53073812.20070905205147@web.de> Message-ID: <0592F84F-0B08-49E5-951D-2063F778A440@manoverboard.org> On Sep 5, 2007, at 8:51 AM, Lothar Scholz wrote: ... > g++ -... -I. -I. -I../include -I../include -I > /Users/llothar/work_generated/macosx_ix86/contrib/install/include ... > In file included from /usr/include/X11/Xft/Xft.h:35, > from ../include/xincs.h:211, > from FX88592Codec.cpp:1: > /usr/local/include/ft2build.h:56:38: error: freetype/config/ > ftheader.h: No such file or directory > In file included from ../include/xincs.h:211, > from FX88592Codec.cpp:1: > /usr/include/X11/Xft/Xft.h:36:10: error: #include expects "FILENAME" > or > In file included from /usr/include/X11/Xft/Xft.h:35, > from ../include/xincs.h:211, > from FX88591Codec.cpp:1: > /usr/local/include/ft2build.h:56:38: error: freetype/config/ > ftheader.h: No such file or directory ... > This line is indeed "#include FT_FREETYPE_H" and so i guess there is > something wrong with my computer configuration. > > Anybody know how i can fix it (without porting to Cocoa or Carbon)? > > I manually installed freetype and fontconfig with the usual > "configure/make/sudo make install" so the files should be there. The obvious questions, assuming gcc is to be taken at its word that the file can't be found: Have you verified that there is a file freetype/config/ftheader.h inside the working directory, a default header directory, or an -I directory? Doing a 'locate ftheader.h' (refreshing the locate DB with 'sudo /usr/ libexec/locate.updatedb', if necessary) is instructive. When I do this, I find /usr/X11/include/freetype2/freetype/config/ftheader.h . I bet /usr/X11/include/freetype2 is not in your header search path. I find that libfreetype is already installed on my system. I installed the developer tools including the X11 SDK. ? F From davejewell at mac.com Wed Sep 5 12:09:43 2007 From: davejewell at mac.com (Dave Jewell) Date: Wed Sep 5 12:11:48 2007 Subject: UI Feedback Wanted In-Reply-To: <20070903190002.E8ADD1AF8B9@forums.omnigroup.com> References: <20070903190002.E8ADD1AF8B9@forums.omnigroup.com> Message-ID: <199ACC76-4547-4943-845C-317EA04FA93A@mac.com> Totally agree with Uli on this one. I've recently started working with a web-site development app called Freeway Pro. (www.softpress.com). This uses the concept of "actions" to (for example) manipulate a graphic on a web page. Previously, these actions were implemented as plug-ins but are now part of the main app, but that's beside the point. The key point is that the list of available actions take no space at all in the main window. If you want to apply an action to a graphic, select the graphic, bring up the actions dialog, and you'll then see a small + button from where you can select an available action and add it to the list of already applied actions for that graphic. The bottom line is that it's a simple, elegant interface which doesn't get in the way of what you're doing most of the time. If you must show your list of available plug-ins all the time (why?), then consider using a popup list. At least that way, you use only a relatively tiny amount of screen space. Dave Uli Kesterer said: > One of the things he outlines there that you may want to > take to heart is that screen real estate is limited, and you should > lay out your UI (and particularly your main window's UI) by > importance and frequency of use. I.e., put the stuff users think > about the most when using your app (i.e. the main metaphor) into the > main window, and make it the biggest item, then pick the next most > important concept, and go on like that. > You should do the same. Don't just take every feature and dump it > in a window. Think about who is going to use your app, and how. Then > make sure common actions are really quick and easy to do. From vctr.br at mail.ru Thu Sep 6 04:15:04 2007 From: vctr.br at mail.ru (=?koi8-r?Q?=F7=C9=CB=D4=CF=D2_=E2=CF=D2=DD=C1=CB?=) Date: Thu Sep 6 04:15:58 2007 Subject: Sudden crash in [NSApplication sendEvent:] Message-ID: Hi folks! I hope that this question is not really stupid but I honestly can't find a solution for a looong time. The application I've been writing crashes on [NSApplication sendEvent:] (see the crash log below). It happens quite often but with no connection to user actions as it seems. It may crash after 5 or 10 minutes of work.. or few hours. Once it crashed during startup... Is there anyone who can suggest some way to catch the error???? PID: 1063 Thread: 0 Exception: EXC_BAD_ACCESS (0x0001) Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000020 Thread 0 Crashed: 0 libobjc.A.dylib 0x90a554c0 objc_msgSend + 16 1 com.apple.AppKit 0x9334d350 -[NSApplication sendEvent:] + 5023 2 com.apple.AppKit 0x93277dfe -[NSApplication run] + 547 3 com.apple.AppKit 0x9326bd2f NSApplicationMain + 573 4 com.likemac.DiskOrder 0x000029ca _start + 216 5 com.likemac.DiskOrder 0x000028f1 start + 41 Thread 1: 0 libSystem.B.dylib 0x900268bc kevent + 12 1 com.apple.Foundation 0x925f736c forkThreadForFunction + 123 2 libSystem.B.dylib 0x90023d87 _pthread_body + 84 Thread 2: 0 libSystem.B.dylib 0x90024427 semaphore_wait_signal_trap + 7 1 com.apple.Foundation 0x9264d2f8 -[NSConditionLock lockWhenCondition:] + 39 2 com.apple.AppKit 0x93355270 -[NSUIHeartBeat _heartBeatThread:] + 377 3 com.apple.Foundation 0x925f736c forkThreadForFunction + 123 4 libSystem.B.dylib 0x90023d87 _pthread_body + 84 Thread 0 crashed with X86 Thread State (32-bit): eax: 0x00000000 ebx: 0x93359f21 ecx: 0x90ab4afc edx: 0x00493550 edi: 0x0046d804 esi: 0x00000008 ebp: 0xbffffa98 esp: 0xbffff978 ss: 0x0000001f efl: 0x00010206 eip: 0x90a554c0 cs: 0x00000017 ds: 0x0000001f es: 0x0000001f fs: 0x00000000 gs: 0x00000037 From joar at joar.com Thu Sep 6 04:33:43 2007 From: joar at joar.com (j o a r) Date: Thu Sep 6 04:33:45 2007 Subject: Sudden crash in [NSApplication sendEvent:] In-Reply-To: References: Message-ID: <6500F245-893D-424B-9EA3-86D598A12AEE@joar.com> On 6 sep 2007, at 13.15, ?????? ?????? wrote: > I hope that this question is not really stupid but I honestly can't > find a solution for a looong time. > The application I've been writing crashes on [NSApplication > sendEvent:] (see the crash log below). It happens quite often but > with no connection to user actions as it seems. It may crash after > 5 or 10 minutes of work.. or few hours. Once it crashed during > startup... To me it looks like a message sent to a deallocated object. The normal thing to do to track down such a problem would be to leverage NSZombieEnabled. Crashing during launching of your application doesn't sound typical to a standard zombie though. Do you have a clean (no haxies or input managers) and known good system? Have this problem been reported on any other machines besides yours? Could it be a random memory smasher (typically from you writing some "unsafe" C-code)? Random memory smashers are best caught using GuardMalloc: j o a r From mailist at ericgorr.net Thu Sep 6 10:31:13 2007 From: mailist at ericgorr.net (Eric Gorr) Date: Thu Sep 6 10:31:47 2007 Subject: Building a Motif application Message-ID: <0C962F49-BED7-4BBD-8B66-4EC862B683D7@ericgorr.net> I was just wondering if anyone has played around with compiling & running a motif application. I am just looking for the basics - just want to see a motif "Hello, World!" program running under the X11. From llothar at web.de Thu Sep 6 19:37:25 2007 From: llothar at web.de (Lothar Scholz) Date: Thu Sep 6 19:37:39 2007 Subject: X11 Xft compile failure In-Reply-To: <0592F84F-0B08-49E5-951D-2063F778A440@manoverboard.org> References: <53073812.20070905205147@web.de> <0592F84F-0B08-49E5-951D-2063F778A440@manoverboard.org> Message-ID: <20762241.20070907093725@web.de> Hello Fritz, Thursday, September 6, 2007, 12:04:41 AM, you wrote: FA> I find that libfreetype is already installed on my system. I installed FA> the developer tools including the X11 SDK. Okay i give up. I just did it the windows way, deleted the harddisk and reinstalled everything with the latest versions. Freetype2 is indeed somewhere in the X11 SDK but the autoconf that is coming with FOX does not know how to detect it. Pretty bad. But maybe time to start with the native Cocoa port. -- Best regards, Lothar mailto:llothar@web.de From bob at apple.com Sat Sep 8 11:58:21 2007 From: bob at apple.com (Bob Frank) Date: Sat Sep 8 11:58:41 2007 Subject: MEETING: Chicago CocoaHeads / CAWUG - launchd - Tuesday Sept. 11 6:00 pm Message-ID: <08996B24-7CEC-489B-972C-CE7BEBD9CF57@apple.com> IMPORTANT NOTES: Our October meeting will start at 7:00 instead of 6:00 on Tuesday October 9th We have a new mailing list URL: http://groups.google.com/group/cawug Email Address: cawug@googlegroups.com We are working on adding all of you -- if you receive a subscription confirmation note, please confirm. Or you can email here to subscribe immediately (you won't be double added): cawug-subscribe@googlegroups.com -------- Hi all, The Chicago CocoaHeads / Chicago Cocoa and WebObjects User Group (CAWUG) is holding our next meeting this coming Tuesday, September 11th, at 6:00 PM at the Apple Store on Michigan Ave. Agenda: - Introductions & Announcements - Dave Zarzycki on launchd (via Google video) - Special Guest: Q & A live with Dave Z. (barring any technical difficulties) - adjournment to O'Toole's When: Tuesday, September 11th, 6:00 PM Where: Apple Store Michigan Avenue 679 North Michigan Ave. (at the corner of Huron & Michigan Ave.) Chicago, IL 60611 http://maps.yahoo.com/maps_result? ed=gYbE5Op_0Tokf_p7h61dwjbWtjC2r1YehzWw&csz=60611 - Dave Zarzycki on launchd Recently Dave gave a presentation on launchd at Google which they recorded as a Google Tech Talk. Barring any technical difficulties, Dave will call in for a live Q & A session at the end of the presentation. Since time immemorial (or the advent of UNIX--pretty much the same thing), the init program ... all has been the first user-space program to run on Unix-like systems. As systems grew more complex, so did system initialization. The responsibilities of init grew multifold and its implementations diverged. Beginning with the "Tiger" version of Mac OS X, Apple introduced a powerful new way of system initialization: launchd. Launchd isn't just an init replacement though--it provides a powerful XML interface for defining when, where, and how programs should be invoked on OS X. In this talk, Dave, who developed launchd, will discuss the rationale behind launchd and how the program came to be. You will also learn about the many options launchd provides for defining the interaction between the operating system and your code, and how your code can be started automatically through launchd. Speaker: Dave Zarzycki Dave Zarzycki is responsible for helping teams across Apple design and integrate their technologies in the the mainline operating system. As a part of this role, he has developed a technology called "launchd" to aid those developers. - O'Tooles We will continue the discussion at our local watering hold Timothy O'Toole's at 622 Fairbanks (2 blocks east of the store). We also wish to thank the folks who run the theater space at the Apple store for letting us have our meetings there, and Jonathan 'Wolf' Rentzsch for hosting the new and revived CAWUG web site. Thanks all. Also, if you are working on a project and would like to talk about it briefly / promote it, I think it would be fun for people to hear about other people's projects. Please email me off line and you can talk at a future meeting or would like a book to review. Future meetings dates: 10/9/07 & 11/13/07 CAWUG Resources Web Site: http://www.cawug.org/ Google Site: http://groups.google.com/group/cawug RSS feed: http://www.cawug.org/rss.xml Mail list: http://groups.google.com/group/cawug iCal: http://ical.mac.com/chicagobob/ Chicago-CocoaHeads-CAWUG (view on the web) iCal: webcal://ical.mac.com/chicagobob/Chicago-CocoaHeads-CAWUG.ics (subscribe to in iCal) Cocoa Heads web site: http://cocoaheads.org/us/ChicagoIllinois/index.html Hope to see you at the meeting. -Bob From edenwaith at mac.com Tue Sep 11 08:08:31 2007 From: edenwaith at mac.com (Chad Armstrong) Date: Tue Sep 11 08:08:44 2007 Subject: Best time to buy a new iMac In-Reply-To: <20070908185959.0E6461B1CE9@forums.omnigroup.com> References: <20070908185959.0E6461B1CE9@forums.omnigroup.com> Message-ID: <311156EF-0114-1000-9FDE-E16277A0B974-Webmail-10022@mac.com> I've been waiting for a number of months to get a new iMac. Optimally, I wanted to save the most money by waiting for the latest model, plus getting iLife '08 and Mac OS 10.5 Leopard. However, I'm caught in a small bind. Since I do development work, I try to have a variety of test systems, dating as far back as Mac OS 10.1. I have Mac OS 10.4 on a PowerPC Mac, but not an Intel Mac yet. Unfortunately, the retail copies of Mac OS 10.4 are only available for PowerPC Macs, and not for Intel-based Macs, since all of the Intel-based Macs have come out during the Tiger timeframe. Would it be a good idea to get a new iMac (preloaded with Tiger) right now and then get Leopard when it comes out (and create a dual-boot), or is there so little difference between the PPC and Intel versions of Tiger that I shouldn't worry too much? At this point, I haven't noticed any real problems occurring from the Intel/UB versions of my applications, but I don't want to be caught by unexpected surprises and not having a proper test platform for both Mac OS 10.4 and 10.5 on Intel. Regards, Chad From dunham at mac.com Tue Sep 11 09:03:20 2007 From: dunham at mac.com (David Dunham) Date: Tue Sep 11 09:02:58 2007 Subject: Best time to buy a new iMac In-Reply-To: <311156EF-0114-1000-9FDE-E16277A0B974-Webmail-10022@mac.com> References: <20070908185959.0E6461B1CE9@forums.omnigroup.com> <311156EF-0114-1000-9FDE-E16277A0B974-Webmail-10022@mac.com> Message-ID: <6B024D34-01F3-4A57-84E7-6EEA377BAF37@mac.com> On 11 Sep 2007, at 08:08, Chad Armstrong wrote: > At this point, I haven't noticed any real problems occurring from > the Intel/UB versions of my applications, Wow, I'm amazed you can ship a Universal Binary without testing on Intel. As you know, any machine you buy now will be "obsolete" in a matter of months. As a consumer, I can see waiting until a machine with Leopard pre-loaded (since you save $100 or whatever it is), but as a developer, you're probably getting Leopard as part of a developer program. So getting an Intel machine is likely the most important thing. David Dunham Macintosh Game Developer GameHouse Studios +1 206 926 5722 www.gamehouse.com "They said it couldn't be done but sometimes it doesn't work out that way." -- Casey Stengel From shawnce at gmail.com Tue Sep 11 09:49:22 2007 From: shawnce at gmail.com (Shawn Erickson) Date: Tue Sep 11 09:49:25 2007 Subject: Best time to buy a new iMac In-Reply-To: <6B024D34-01F3-4A57-84E7-6EEA377BAF37@mac.com> References: <20070908185959.0E6461B1CE9@forums.omnigroup.com> <311156EF-0114-1000-9FDE-E16277A0B974-Webmail-10022@mac.com> <6B024D34-01F3-4A57-84E7-6EEA377BAF37@mac.com> Message-ID: On 9/11/07, David Dunham wrote: > On 11 Sep 2007, at 08:08, Chad Armstrong wrote: > > > At this point, I haven't noticed any real problems occurring from > > the Intel/UB versions of my applications, > > Wow, I'm amazed you can ship a Universal Binary without testing on > Intel. > > As you know, any machine you buy now will be "obsolete" in a matter > of months. As a consumer, I can see waiting until a machine with > Leopard pre-loaded (since you save $100 or whatever it is), but as a > developer, you're probably getting Leopard as part of a developer > program. So getting an Intel machine is likely the most important thing. Also if he has ADC membership he should already be getting Mac OS X 10.4 install discs that support Intel. -Shawn From edenwaith at mac.com Tue Sep 11 19:59:13 2007 From: edenwaith at mac.com (Chad Armstrong) Date: Tue Sep 11 19:59:20 2007 Subject: MacOSX-dev Digest, Vol 45, Issue 8 In-Reply-To: <20070911190004.C1C921B2E85@forums.omnigroup.com> References: <20070911190004.C1C921B2E85@forums.omnigroup.com> Message-ID: <2F1BDCF2-44B9-4F84-B1EA-9AE575E58D7F@mac.com> Don't worry, I do test on an Intel-based Mac, but I don't own one personally ... yet. Chad On Sep 11, 2007, at 2:00 PM, macosx-dev-request@omnigroup.com wrote: > Wow, I'm amazed you can ship a Universal Binary without testing on > Intel. From brianarthur at nc.rr.com Tue Sep 11 21:17:32 2007 From: brianarthur at nc.rr.com (Anthony Arthur) Date: Tue Sep 11 22:01:45 2007 Subject: Assertion failure ABPerson Message-ID: I found other posts at various discussion sites indicating a bug with this when using vCardData, but nothing for this. I am trying to programmatically load ABPerson records to the logged in user's AB. The exception is raised while executing this: if ([abKey isEqualToString:kABEmailProperty] || [abKey isEqualToString:kABPhoneProperty]) { [person setValue:[NSArray arrayWithObject:col] forKey:abKey]; }else{ [person setValue:col forKey:abKey]; } Several values are successfully loaded, like first/last name, before loading an email value spews this: 2007-09-12 00:00:11.381 AddressBookImporter[11891] *** Assertion failure in -[ABPerson nts_SetValue:forProperty:recordCouldBeInDatabase:], Framework/ AddressBook/ABRecord.m:515 Any thoughts? --Brian From kusterer at gmail.com Wed Sep 12 06:06:10 2007 From: kusterer at gmail.com (Uli Kusterer) Date: Wed Sep 12 06:06:19 2007 Subject: Assertion failure ABPerson In-Reply-To: References: Message-ID: <492C1647-3372-4F26-B8CC-3DB45879631E@gmail.com> On 12.09.2007, at 06:17, Anthony Arthur wrote: > if ([abKey isEqualToString:kABEmailProperty] || [abKey > isEqualToString:kABPhoneProperty]) { > [person setValue:[NSArray arrayWithObject:col] forKey:abKey]; > }else{ > [person setValue:col forKey:abKey]; > } Have you set a breakpoint in which of the two cases it's failing? Only in one, both? Have you checked the docs? I vaguely remember that Address book has ABMultiValue and similar classes, so are you sure this should be an NSArray, and not some ABxxx class? What is "col"? Have you NSLogged its class to see if it is the class you expect? Cheers, -- M. Uli Kusterer http://www.zathras.de From brianarthur at nc.rr.com Wed Sep 12 07:05:47 2007 From: brianarthur at nc.rr.com (Anthony Arthur) Date: Wed Sep 12 07:05:52 2007 Subject: Assertion failure ABPerson In-Reply-To: <492C1647-3372-4F26-B8CC-3DB45879631E@gmail.com> References: <492C1647-3372-4F26-B8CC-3DB45879631E@gmail.com> Message-ID: <9A7B6BE5-8CCD-47E1-B844-E13F3F7161CC@nc.rr.com> You are right, it is supposed to be an instance of ABMultiValue, which was clear to me. I'm new to this framework, just started reading up on it yesterday, and I kept imagining ABMultiValue as an array. That's why I sort of blindly implemented it that way, now it is obvious what I did wrong. Thanks, --Brian On Sep 12, 2007, at 9:06 AM, Uli Kusterer wrote: > > On 12.09.2007, at 06:17, Anthony Arthur wrote: >> if ([abKey isEqualToString:kABEmailProperty] || [abKey >> isEqualToString:kABPhoneProperty]) { >> [person setValue:[NSArray arrayWithObject:col] forKey:abKey]; >> }else{ >> [person setValue:col forKey:abKey]; >> } > > Have you set a breakpoint in which of the two cases it's failing? > Only in one, both? Have you checked the docs? I vaguely remember > that Address book has ABMultiValue and similar classes, so are you > sure this should be an NSArray, and not some ABxxx class? What is > "col"? Have you NSLogged its class to see if it is the class you > expect? > > Cheers, > -- M. Uli Kusterer > http://www.zathras.de > > From alastair at alastairs-place.net Thu Sep 13 07:43:29 2007 From: alastair at alastairs-place.net (Alastair Houghton) Date: Thu Sep 13 07:43:39 2007 Subject: Installers (was Re: (no subject)) In-Reply-To: <0443F20F9D4D79418CD9CC7D6727BE030406A951@BIL-EXC2.corpnet.liox.org> References: <0443F20F9D4D79418CD9CC7D6727BE030406A951@BIL-EXC2.corpnet.liox.org> Message-ID: <204431BA-6C89-4BC6-8E8D-EE14DDFB3A2D@alastairs-place.net> On 13 Sep 2007, at 12:10, Kulkarni, Amit wrote: > Hello all, > I have been using VISEX for some time. > I am in search of alternative to VISEX, which should be more > interactive > and flexible. I heard about i-Installer. May I know the pros and > cons of > using I- Installer against VISEX. I am totally unaware of i-Installer. > Please suggest any good installer for MAC OSX. How is this related to AppleScript? You need to choose the correct venue for your questions. Omni Group's macosx-dev list might be a better choice for this one. (Hint: *don't* just reply to this message without removing the AppleScript list from the CC box in your mail program.) It's also bad form to write messages with no subject line. You should use a subject line, because people who read mailing lists don't necessarily have an interest in every message sent to the list, and filling out the subject line with something sensible will encourage those who *do* find the topic interesting to take a look at your question. As for the question you asked, it's worth noting that Apple specifically discourages the use of installer programs, and also that if you really have to use an installer [which is rarely the case], there is a built-in Apple installer, which is what all of Apple's software and a lot of other third-party software uses. The benefit of using Apple's installer is that it integrates nicely with Remote Desktop, and it can be used from the command line [for instance where remote installation is desirable]. Kind regards, Alastair. -- http://alastairs-place.net From st3veh at slingmedia.com Thu Sep 13 14:07:47 2007 From: st3veh at slingmedia.com (St3ve H (Sling Media)) Date: Thu Sep 13 14:07:50 2007 Subject: [Job Posting] Mac Dev positions at Sling Media Message-ID: <46E9A6A3.5030701@slingmedia.com> Sling Media, the makers of the Slingbox--a popular device that lets you watch your TV remotely over the Internet--is seeking two more experienced Mac developers to join our software team here at our headquarters in Foster City, California, located between San Francisco and the Silicon Valley. Req #165: Senior Engineer, Web Services Client Integration We want to extend the Mac SlingPlayer application to include all kinds of web services, but keep the "out-of-browser" experience that native applications do best. That means WebKit. And Javascript. And the Cocoa-Javascript bridge. And SOAP. And...well, join us and show how an experienced web services client developer brings this all together. Req #139: Senior Engineer/Staff Engineer, MacOS X & Cross-Platform The Mac and Windows versions of the SlingPlayer share a lot of key technology, but need to share the code base more. Join us in the design of cross-platform interfaces to audio and video streaming, Slingbox setup and configuration, and much more, and then use your solid knowledge of MacOS X multimedia, networking, and related frameworks to implement them. ------------------------------------------------------------------------ We offer these positions with preference to candidates seeking full-time, on-site employment in Foster City, CA, though contracting and/or telecommuting will be considered with exceptionally qualified candidates. Please do not follow-up or reply to this list! Instead email me (the hiring manager) privately at . Steve Hartwell Project Lead, Macintosh Products Sling Media From brianarthur at nc.rr.com Fri Sep 14 15:20:48 2007 From: brianarthur at nc.rr.com (Anthony B Arthur) Date: Fri Sep 14 15:20:59 2007 Subject: ABAddressBook - state code cross reference Message-ID: <1742AD36-3D83-413D-A3F3-9E6CFDEC3234@nc.rr.com> Hi, My quick search comes up empty, so does anyone know if there's something already built into cocoa that will provide a US state name to code cross reference? --Brian From dunham at mac.com Fri Sep 14 17:25:15 2007 From: dunham at mac.com (David Dunham) Date: Fri Sep 14 17:22:28 2007 Subject: ABAddressBook - state code cross reference In-Reply-To: <1742AD36-3D83-413D-A3F3-9E6CFDEC3234@nc.rr.com> References: <1742AD36-3D83-413D-A3F3-9E6CFDEC3234@nc.rr.com> Message-ID: <1ADF239E-4847-4999-9235-E4B67EA9F1AE@mac.com> On 14 Sep 2007, at 15:20, Anthony B Arthur wrote: > does anyone know if there's something already built into cocoa that > will provide a US state name to code cross reference? Do you mean something like "Washington" -> "WA" or something like [State validate: @"WA"] ? David Dunham www.pensee.com/dunham/ Imagination is more important than knowledge. -- Albert Einstein From brianarthur at nc.rr.com Fri Sep 14 18:16:23 2007 From: brianarthur at nc.rr.com (Anthony B Arthur) Date: Fri Sep 14 18:16:33 2007 Subject: ABAddressBook - state code cross reference In-Reply-To: <1ADF239E-4847-4999-9235-E4B67EA9F1AE@mac.com> References: <1742AD36-3D83-413D-A3F3-9E6CFDEC3234@nc.rr.com> <1ADF239E-4847-4999-9235-E4B67EA9F1AE@mac.com> Message-ID: <8EA51675-0040-4690-BA37-64785133B0AA@nc.rr.com> Yeah, the first suggestion. I want to translate a state full-name into an abbreviation. Rather not re-invent it if it is already there, or perhaps there's an opensource Obj-C framework that does it, I can judge if it is worth using it over doing it myself. -b On Sep 14, 2007, at 8:25 PM, David Dunham wrote: > > On 14 Sep 2007, at 15:20, Anthony B Arthur wrote: > >> does anyone know if there's something already built into cocoa >> that will provide a US state name to code cross reference? > > Do you mean something like "Washington" -> "WA" or something like > [State validate: @"WA"] ? > > David Dunham www.pensee.com/dunham/ > Imagination is more important than knowledge. -- Albert Einstein > > _______________________________________________ > MacOSX-dev mailing list > MacOSX-dev@omnigroup.com > http://www.omnigroup.com/mailman/listinfo/macosx-dev From mah at jump-ing.de Sat Sep 15 00:41:10 2007 From: mah at jump-ing.de (Markus Hitter) Date: Sat Sep 15 00:41:17 2007 Subject: ABAddressBook - state code cross reference In-Reply-To: <8EA51675-0040-4690-BA37-64785133B0AA@nc.rr.com> References: <1742AD36-3D83-413D-A3F3-9E6CFDEC3234@nc.rr.com> <1ADF239E-4847-4999-9235-E4B67EA9F1AE@mac.com> <8EA51675-0040-4690-BA37-64785133B0AA@nc.rr.com> Message-ID: <0D2C34D3-7E19-4EB1-8A81-910F953CBA5A@jump-ing.de> Am 15.09.2007 um 03:16 schrieb Anthony B Arthur: > Yeah, the first suggestion. I want to translate a state full-name > into an abbreviation. Rather not re-invent it if it is already > there, or perhaps there's an opensource Obj-C framework that does > it, I can judge if it is worth using it over doing it myself. Framework? That'd be something like a dictionary with key-value pairs. Markus - - - - - - - - - - - - - - - - - - - Dipl. Ing. Markus Hitter http://www.jump-ing.de/ From adamnash at cs.stanford.edu Sat Sep 15 16:39:08 2007 From: adamnash at cs.stanford.edu (Adam Nash) Date: Sat Sep 15 16:39:20 2007 Subject: Need Help: Linking Error with Mail Plugin Message-ID: <13EAD3AC-A68E-4B53-BF2C-31D8E2A4E493@cs.stanford.edu> Hi everyone, After quite a few years of inactivity, I'm pursuing my first Mac OS X development project in quite a while. I'm writing a new Mail.app plugin, and I'm just trying to get started with the project work. Unfortunately, I'm not having much luck even building a simple "Hello, World" level bundle. It seems I'm hitting a linking error. I'm pretty sure there is a trivial answer to this issue, but I can't seem to figure it out. Basically, my application has just a single class right now with two headers: MVMailBundle.h This file uses the class-dump to specify the interface for the MVMailBundle class which is implemented by Mail.app MyMailBundle.h This file defines a subclass of MVMailBundle, implementing only the class method: + (void)initialize; MyMailBundle.m This file implements initialize as follows: #import "MyMailBundle.h" @implementation MyMailBundle + (void) initialize { [super initialize]; [self registerBundle]; NSLog(@"My Mail Bundle has registered with Apple Mail!"); } @end When I try to compile this project, it works just fine, but it dies with a linking error: /usr/bin/ld: Undefined symbols: .objc_class_name_MVMailBundle /Users/adamnash/Documents/Cocoa/AdamMail/build/AdamMail.build/Debug/ MyMail.build/Objects-normal/ppc/MyMailBundle.o reference to undefined .objc_class_name_MVMailBundle collect2: ld returned 1 exit status This makes sense, of course, since I don't actually have the object code for Mail.app in my project. I'm assuming there is some way to tell XCode to not look for this object code, but I'm not sure how to do this. I've never tried to implement a sub-class for something that only exists in an active application. Can someone help me with this linking error? I've been circling around it for over an hour with no luck. I feel like I've looked at every possible project setting. Thank you! Adam ----------- Adam Nash adamnash@cs.stanford.edu From adamnash at cs.stanford.edu Sat Sep 15 17:12:41 2007 From: adamnash at cs.stanford.edu (Adam Nash) Date: Sat Sep 15 17:12:51 2007 Subject: Need Help: Linking Error with Mail Plugin In-Reply-To: <13EAD3AC-A68E-4B53-BF2C-31D8E2A4E493@cs.stanford.edu> References: <13EAD3AC-A68E-4B53-BF2C-31D8E2A4E493@cs.stanford.edu> Message-ID: Hi everyone, Many thanks to Aaron Harnly for answering my question so quickly! From his email: There are two special settings you'll need in the 'Linking' section of the bundle target's configuration: 1. in the field 'other linker flags', adding -undefined dynamic_lookup will resolve that issue. 2. As with any bundle, set the Bundle Loader to /Applications/Mail.app/Contents/MacOS/Mail - Adam ----------- Adam Nash adamnash@cs.stanford.edu On Sep 15, 2007, at 4:39 PM, Adam Nash wrote: > Hi everyone, > > After quite a few years of inactivity, I'm pursuing my first Mac OS > X development project in quite a while. I'm writing a new Mail.app > plugin, and I'm just trying to get started with the project work. > > Unfortunately, I'm not having much luck even building a simple > "Hello, World" level bundle. It seems I'm hitting a linking > error. I'm pretty sure there is a trivial answer to this issue, > but I can't seem to figure it out. > > Basically, my application has just a single class right now with > two headers: > > MVMailBundle.h > > This file uses the class-dump to specify the interface for the > MVMailBundle class which is implemented by Mail.app > > MyMailBundle.h > > This file defines a subclass of MVMailBundle, implementing only the > class method: > > + (void)initialize; > > MyMailBundle.m > > This file implements initialize as follows: > > #import "MyMailBundle.h" > > @implementation MyMailBundle > > + (void) initialize > { > [super initialize]; > [self registerBundle]; > > NSLog(@"My Mail Bundle has registered with Apple Mail!"); > } > > @end > > When I try to compile this project, it works just fine, but it dies > with a linking error: > > /usr/bin/ld: Undefined symbols: > .objc_class_name_MVMailBundle > /Users/adamnash/Documents/Cocoa/AdamMail/build/AdamMail.build/Debug/ > MyMail.build/Objects-normal/ppc/MyMailBundle.o reference to > undefined .objc_class_name_MVMailBundle > collect2: ld returned 1 exit status > > This makes sense, of course, since I don't actually have the object > code for Mail.app in my project. I'm assuming there is some way to > tell XCode to not look for this object code, but I'm not sure how > to do this. I've never tried to implement a sub-class for > something that only exists in an active application. > > Can someone help me with this linking error? I've been circling > around it for over an hour with no luck. I feel like I've looked > at every possible project setting. > > Thank you! > Adam > > ----------- > Adam Nash > adamnash@cs.stanford.edu > > > > _______________________________________________ > MacOSX-dev mailing list > MacOSX-dev@omnigroup.com > http://www.omnigroup.com/mailman/listinfo/macosx-dev > From hamish.allan at gold.ac.uk Thu Sep 13 12:48:12 2007 From: hamish.allan at gold.ac.uk (Hamish Allan) Date: Tue Sep 18 12:09:16 2007 Subject: Installers In-Reply-To: <20070913190007.DA6E51B3DFA@forums.omnigroup.com> References: <20070913190007.DA6E51B3DFA@forums.omnigroup.com> Message-ID: On Thu, 13 Sep 2007 15:43:29 +0100, Alastair Houghton wrote: > As for the question you asked, it's worth noting that Apple > specifically discourages the use of installer programs, and also that > if you really have to use an installer [which is rarely the case], > there is a built-in Apple installer, which is what all of Apple's > software and a lot of other third-party software uses. The benefit > of using Apple's installer is that it integrates nicely with Remote > Desktop, and it can be used from the command line [for instance where > remote installation is desirable]. There is also an Apple installer-dev mailing list: http://lists.apple.com/mailman/listinfo/installer-dev Best wishes, Hamish From brianarthur at nc.rr.com Fri Sep 21 01:25:46 2007 From: brianarthur at nc.rr.com (Anthony B Arthur) Date: Fri Sep 21 01:25:54 2007 Subject: dyld: Library not loaded: & embedded app resources Message-ID: <4C539F99-87CA-4C1E-8D67-9CC101765614@nc.rr.com> How do I stop my app from looking in /Library/Frameworks for third party frameworks? These frameworks were originally added to the project from that path, but now I want the app to load them from within the app bundle. I have followed all the steps to prepare my frameworks to be embedded (http://rentzsch.com/share/ embeddingFrameworks.mov), created a copy file rule for them, but the app still wants to load them from /Library/Frameworks. dyld: Library not loaded: /Library/Frameworks/EKFormKit.framework/ Versions/A/EKFormKit Reason: image not found How can I persuade the app to stop looking there for resources? Thanks, --Brian From cmhofman at gmail.com Fri Sep 21 01:41:46 2007 From: cmhofman at gmail.com (Christiaan Hofman) Date: Fri Sep 21 01:41:53 2007 Subject: dyld: Library not loaded: & embedded app resources In-Reply-To: <4C539F99-87CA-4C1E-8D67-9CC101765614@nc.rr.com> References: <4C539F99-87CA-4C1E-8D67-9CC101765614@nc.rr.com> Message-ID: <7D87468B-359B-41FC-9514-F7E5F6BE2B1B@gmail.com> Did you link to the correct copy of the library in the Link Binary With Libraries build phase? Christiaan On 21 Sep 2007, at 10:25 AM, Anthony B Arthur wrote: > How do I stop my app from looking in /Library/Frameworks for third > party frameworks? These frameworks were originally added to the > project from that path, but now I want the app to load them from > within the app bundle. I have followed all the steps to prepare my > frameworks to be embedded (http://rentzsch.com/share/ > embeddingFrameworks.mov), created a copy file rule for them, but > the app still wants to load them from /Library/Frameworks. > > dyld: Library not loaded: /Library/Frameworks/EKFormKit.framework/ > Versions/A/EKFormKit > > Reason: image not found > > How can I persuade the app to stop looking there for resources? > > Thanks, > > --Brian > _______________________________________________ > MacOSX-dev mailing list > MacOSX-dev@omnigroup.com > http://www.omnigroup.com/mailman/listinfo/macosx-dev From brianarthur at nc.rr.com Fri Sep 21 02:03:16 2007 From: brianarthur at nc.rr.com (Anthony B Arthur) Date: Fri Sep 21 02:03:23 2007 Subject: dyld: Library not loaded: & embedded app resources In-Reply-To: <7D87468B-359B-41FC-9514-F7E5F6BE2B1B@gmail.com> References: <4C539F99-87CA-4C1E-8D67-9CC101765614@nc.rr.com> <7D87468B-359B-41FC-9514-F7E5F6BE2B1B@gmail.com> Message-ID: hmm, no I did not tamper with this part of the project. It is unclear, from the info panel, what path these are linked to and how to change that. So far, all I've done is delete the relevant frameworks from the linked frameworks group (because I copied the source from another host, so the resource names were red), and re- added each one after compiling them locally, but the app still wants to load them from /Library/Frameworks. Short of recreating the project from scratch, surely there is a configuration setting in xCode to stop that. Also, to clarify my question a bit, I suppose that the command install_name_tool can be used to operate on the app binary and fix this, but then I have the same problem again the next time I compile. Any help is appreciated. --Brian On Sep 21, 2007, at 4:41 AM, Christiaan Hofman wrote: > Did you link to the correct copy of the library in the Link Binary > With Libraries build phase? > > Christiaan > > On 21 Sep 2007, at 10:25 AM, Anthony B Arthur wrote: > >> How do I stop my app from looking in /Library/Frameworks for third >> party frameworks? These frameworks were originally added to the >> project from that path, but now I want the app to load them from >> within the app bundle. I have followed all the steps to prepare >> my frameworks to be embedded (http://rentzsch.com/share/ >> embeddingFrameworks.mov), created a copy file rule for them, but >> the app still wants to load them from /Library/Frameworks. >> >> dyld: Library not loaded: /Library/Frameworks/EKFormKit.framework/ >> Versions/A/EKFormKit >> >> Reason: image not found >> >> How can I persuade the app to stop looking there for resources? >> >> Thanks, >> >> --Brian >> _______________________________________________ >> MacOSX-dev mailing list >> MacOSX-dev@omnigroup.com >> http://www.omnigroup.com/mailman/listinfo/macosx-dev From cmhofman at gmail.com Fri Sep 21 02:27:20 2007 From: cmhofman at gmail.com (Christiaan Hofman) Date: Fri Sep 21 02:27:30 2007 Subject: dyld: Library not loaded: & embedded app resources In-Reply-To: References: <4C539F99-87CA-4C1E-8D67-9CC101765614@nc.rr.com> <7D87468B-359B-41FC-9514-F7E5F6BE2B1B@gmail.com> Message-ID: If you build the framework from source, the best way is to add a subproject for it in your main project file (drag the xcode project for the framework to the groups of the main project). Then add the framework as a dependency to the main project target. Then drag the product framework from inside the linked xcode project group to the Linked Frameworks group in the main project. Next you need to drag the framework to a Copy Files build phase and (I think) to the Link Binary With Libraries build phase. There are several "copies" of the framework in your main project, and it is important which one you drag there, though I'm not 100% sure which one it is, I think it's the one from the linked xcode project (definitely not from Finder). The Get Info panel does not show a difference, but internally there is a difference. Christiaan On 21 Sep 2007, at 11:03 AM, Anthony B Arthur wrote: > hmm, no I did not tamper with this part of the project. It is > unclear, from the info panel, what path these are linked to and > how to change that. So far, all I've done is delete the relevant > frameworks from the linked frameworks group (because I copied the > source from another host, so the resource names were red), and re- > added each one after compiling them locally, but the app still > wants to load them from /Library/Frameworks. Short of recreating > the project from scratch, surely there is a configuration setting > in xCode to stop that. > > Also, to clarify my question a bit, I suppose that the command > install_name_tool can be used to operate on the app binary and fix > this, but then I have the same problem again the next time I compile. > > Any help is appreciated. > > --Brian > > On Sep 21, 2007, at 4:41 AM, Christiaan Hofman wrote: > >> Did you link to the correct copy of the library in the Link Binary >> With Libraries build phase? >> >> Christiaan >> >> On 21 Sep 2007, at 10:25 AM, Anthony B Arthur wrote: >> >>> How do I stop my app from looking in /Library/Frameworks for >>> third party frameworks? These frameworks were originally added >>> to the project from that path, but now I want the app to load >>> them from within the app bundle. I have followed all the steps >>> to prepare my frameworks to be embedded (http://rentzsch.com/ >>> share/embeddingFrameworks.mov), created a copy file rule for >>> them, but the app still wants to load them from /Library/Frameworks. >>> >>> dyld: Library not loaded: /Library/Frameworks/EKFormKit.framework/ >>> Versions/A/EKFormKit >>> >>> Reason: image not found >>> >>> How can I persuade the app to stop looking there for resources? >>> >>> Thanks, >>> >>> --Brian >>> _______________________________________________ >>> MacOSX-dev mailing list >>> MacOSX-dev@omnigroup.com >>> http://www.omnigroup.com/mailman/listinfo/macosx-dev > From me at infinite-labs.net Fri Sep 21 02:27:26 2007 From: me at infinite-labs.net (=?MACINTOSH?Q? Emanuele_"=B0"_Vulcano ?=) Date: Fri Sep 21 02:27:36 2007 Subject: dyld: Library not loaded: & embedded app resources In-Reply-To: References: <4C539F99-87CA-4C1E-8D67-9CC101765614@nc.rr.com> <7D87468B-359B-41FC-9514-F7E5F6BE2B1B@gmail.com> Message-ID: <67C9425B-DA94-4F97-B67E-269A2272A9D9@infinite-labs.net> Il giorno 21/set/07, alle ore 11:03, Anthony B Arthur ha scritto: > hmm, no I did not tamper with this part of the project. It is =20 > unclear, from the info panel, what path these are linked to and =20 > how to change that. When you link to a library, its install name is embedded in the =20 executable. The install name can be fixed on a binary with =20 install_name_tool, or, if you have the source, by changing the =20 framework's install name in its target settings (if the Xcode project =20= is available) or link flags (man gcc should help). At worst, you could make a copy of the framework, run =20 install_name_tool on it, and link to that. If you need the framework =20 to live in Library, you can make a shell script build phase that =20 copies the framework on-the-fly. - =B0= From brianarthur at nc.rr.com Fri Sep 21 04:23:18 2007 From: brianarthur at nc.rr.com (Anthony B Arthur) Date: Fri Sep 21 04:23:42 2007 Subject: dyld: Library not loaded: & embedded app resources In-Reply-To: <67C9425B-DA94-4F97-B67E-269A2272A9D9@infinite-labs.net> References: <4C539F99-87CA-4C1E-8D67-9CC101765614@nc.rr.com> <7D87468B-359B-41FC-9514-F7E5F6BE2B1B@gmail.com> <67C9425B-DA94-4F97-B67E-269A2272A9D9@infinite-labs.net> Message-ID: Thanks to all who responded. I figured out what was wrong, something =20= I swear I had done, but somehow the setting was lost. But the simple =20= solution was setting the build Install Directory value to =20 @executable_path/../Frameworks for every relevant framework. That =20 was it! --Brian On Sep 21, 2007, at 5:27 AM, Emanuele =B0 Vulcano wrote: > > Il giorno 21/set/07, alle ore 11:03, Anthony B Arthur ha scritto: > >> hmm, no I did not tamper with this part of the project. It is =20 >> unclear, from the info panel, what path these are linked to and =20 >> how to change that. > > When you link to a library, its install name is embedded in the =20 > executable. The install name can be fixed on a binary with =20 > install_name_tool, or, if you have the source, by changing the =20 > framework's install name in its target settings (if the Xcode =20 > project is available) or link flags (man gcc should help). > > At worst, you could make a copy of the framework, run =20 > install_name_tool on it, and link to that. If you need the =20 > framework to live in Library, you can make a shell script build =20 > phase that copies the framework on-the-fly. > > - =B0 From r.heimlicher at bluewin.ch Sun Sep 23 22:58:35 2007 From: r.heimlicher at bluewin.ch (Ruedi Heimlicher) Date: Sun Sep 23 23:21:23 2007 Subject: Automatic shutdown not working Message-ID: <083ED5BA-1375-4FCE-955B-61739441D1A9@bluewin.ch> One of my iMacs (.386, 10.4.10) refuses to shut down at the given time. Everytime when I test the behaviour at a time during the day, it works fine. Where can I look for the app that blocks the shut down process? From john_clayton at mac.com Mon Sep 24 00:00:35 2007 From: john_clayton at mac.com (John Clayton) Date: Mon Sep 24 00:01:09 2007 Subject: Automatic shutdown not working In-Reply-To: <083ED5BA-1375-4FCE-955B-61739441D1A9@bluewin.ch> References: <083ED5BA-1375-4FCE-955B-61739441D1A9@bluewin.ch> Message-ID: <1A51A683-EE56-414B-837C-C5BF4FE9D821@mac.com> Hi Ruedi does the iMac have tons of 3rd party s/ware on it? or is it a [recently] fresh install? How are you testing the shutdown behaviour, presumably by setting the shutdown time to a few minutes in the future and just waiting - correct? Have you checked the /var/log/system.log for anything unusual? -- John Clayton On 24/09/2007, at 7:58 AM, Ruedi Heimlicher wrote: > One of my iMacs (.386, 10.4.10) refuses to shut down at the given > time. Everytime when I test the behaviour at a time during the day, > it works fine. > Where can I look for the app that blocks the shut down process? > > _______________________________________________ > MacOSX-dev mailing list > MacOSX-dev@omnigroup.com > http://www.omnigroup.com/mailman/listinfo/macosx-dev From smokinmonkey at yahoo.com Mon Sep 24 11:20:56 2007 From: smokinmonkey at yahoo.com (Michael Dupuis) Date: Mon Sep 24 11:21:01 2007 Subject: Should images returned from NSTableView's dragImageForRowsWithIndexes be autoreleased? Message-ID: <864520.77698.qm@web31910.mail.mud.yahoo.com> Greetings, I have a table subclass that implements dragImageForRowsWithIndexes:::: and have random reports of a crash while in the drag loop code (not my own) that makes me wonder about the images that are created in the implementation: should images alloc'd in this call be "leaked" i.e. not released, not autoreleased, or should they be autoreleased? Right now I autorelease them, and I can't really find anything in the documentation or the list that specifies the actual image retention explicitly. Thanks, Michael ____________________________________________________________________________________ Need a vacation? Get great deals to amazing places on Yahoo! Travel. http://travel.yahoo.com/ From jim.correia at pobox.com Mon Sep 24 11:26:57 2007 From: jim.correia at pobox.com (Jim Correia) Date: Mon Sep 24 11:27:01 2007 Subject: Should images returned from NSTableView's dragImageForRowsWithIndexes be autoreleased? In-Reply-To: <864520.77698.qm@web31910.mail.mud.yahoo.com> References: <864520.77698.qm@web31910.mail.mud.yahoo.com> Message-ID: <5C8035F6-7C61-4ACF-A260-F98DFDE245D4@pobox.com> On Sep 24, 2007, at 2:20 PM, Michael Dupuis wrote: > I have a table subclass that implements > dragImageForRowsWithIndexes:::: and have random > reports of a crash while in the drag loop code (not my > own) that makes me wonder about the images that are > created in the implementation: should images alloc'd > in this call be "leaked" i.e. not released, not > autoreleased, or should they be autoreleased? Right > now I autorelease them, and I can't really find > anything in the documentation or the list that > specifies the actual image retention explicitly. You should assume that, unless an exception is specifically called out, that the standard object ownership rules apply. Jim From cmhofman at gmail.com Mon Sep 24 11:27:32 2007 From: cmhofman at gmail.com (Christiaan Hofman) Date: Mon Sep 24 11:27:42 2007 Subject: Should images returned from NSTableView's dragImageForRowsWithIndexes be autoreleased? In-Reply-To: <864520.77698.qm@web31910.mail.mud.yahoo.com> References: <864520.77698.qm@web31910.mail.mud.yahoo.com> Message-ID: <6DEEB1EC-2550-4FA6-8407-25121418A690@gmail.com> Of course they should be autoreleased. It follows the general rules for retaining objects: unless a method name starts with "copy" or "init", the returned object should not be explicitly retained (unless the object is kept around in an ivar or a global instance of course, which here is probably not the case). Christiaan On 24 Sep 2007, at 8:20 PM, Michael Dupuis wrote: > Greetings, > > I have a table subclass that implements > dragImageForRowsWithIndexes:::: and have random > reports of a crash while in the drag loop code (not my > own) that makes me wonder about the images that are > created in the implementation: should images alloc'd > in this call be "leaked" i.e. not released, not > autoreleased, or should they be autoreleased? Right > now I autorelease them, and I can't really find > anything in the documentation or the list that > specifies the actual image retention explicitly. > > Thanks, > > Michael > From fritza at manoverboard.org Mon Sep 24 11:32:55 2007 From: fritza at manoverboard.org (Fritz Anderson) Date: Mon Sep 24 11:33:23 2007 Subject: Should images returned from NSTableView's dragImageForRowsWithIndexes be autoreleased? In-Reply-To: <864520.77698.qm@web31910.mail.mud.yahoo.com> References: <864520.77698.qm@web31910.mail.mud.yahoo.com> Message-ID: <4BE7CF49-A26B-4CEA-AB18-D8F57EEA5ADA@manoverboard.org> On 24 Sep 2007, at 1:20 PM, Michael Dupuis wrote: > I have a table subclass that implements > dragImageForRowsWithIndexes:::: and have random > reports of a crash while in the drag loop code (not my > own) that makes me wonder about the images that are > created in the implementation: should images alloc'd > in this call be "leaked" i.e. not released, not > autoreleased, or should they be autoreleased? Right > now I autorelease them, and I can't really find > anything in the documentation or the list that > specifies the actual image retention explicitly. By the rules of object ownership for memory management (which I won't fully summarize here), you must not release or autorelease any object returned from a method not containing "alloc", "new", or "copy" in its name. -- F From smokinmonkey at yahoo.com Mon Sep 24 12:28:58 2007 From: smokinmonkey at yahoo.com (Michael Dupuis) Date: Mon Sep 24 12:29:02 2007 Subject: Should images returned from NSTableView's dragImageForRowsWithIndexes be autoreleased? In-Reply-To: <5C8035F6-7C61-4ACF-A260-F98DFDE245D4@pobox.com> Message-ID: <696370.57803.qm@web31906.mail.mud.yahoo.com> Thanks for the replies. They were what I expected, I was just checking, since I can't see to put my finger on what else could be causing my crash. Thanks all for ruling this out at least. Michael ____________________________________________________________________________________ Got a little couch potato? Check out fun summer activities for kids. http://search.yahoo.com/search?fr=oni_on_mail&p=summer+activities+for+kids&cs=bz From florent.lacheroy at alwancolor.com Wed Sep 26 10:43:06 2007 From: florent.lacheroy at alwancolor.com (Florent Lacheroy) Date: Wed Sep 26 10:43:16 2007 Subject: XMP Toolkit & Static C++ libraries import Message-ID: <387777DF-73FE-462C-A1A7-30BB6249B647@alwancolor.com> Hi, I'm trying to use XMP Toolkit in my application but it seems I'm missing something about the way to import a static C++ library (.a extension) in my Cocoa project. When I'm compiling the release, I've got this message: "warning suggest use of -bind_at_load, as lazy binding may result in errors or different symbols being used" the build succeed and no executable is generated in the app package?!? The debug version is completely unstable. The samples embedded in the XMP SDK are perfectly working on my machine so I think XMP Libs I've compiled are OK. Is there anyone experienced in this domain? Thanks for your help Florent Lacheroy florent.lacheroy@alwancolor.com From mailings at obviousmatter.com Thu Sep 27 11:59:06 2007 From: mailings at obviousmatter.com (Diederik Hoogenboom) Date: Thu Sep 27 13:10:53 2007 Subject: XMP Toolkit & Static C++ libraries import In-Reply-To: <387777DF-73FE-462C-A1A7-30BB6249B647@alwancolor.com> References: <387777DF-73FE-462C-A1A7-30BB6249B647@alwancolor.com> Message-ID: <648A352B-73E5-471D-81E7-AE6FCFCC1E9E@obviousmatter.com> Hi Florent, Make sure that, if you use Obj-C, to name the class files where you use the XMP classes .mm (Obj-C++) instead of .m. This will cause the right libraries to be linked in. Diederik -- Diederik Hoogenboom Obvious Matter - DiskLibrary for Mac http://www.obviousmatter.com On 26-sep-2007, at 19:43, Florent Lacheroy wrote: > > Hi, > > I'm trying to use XMP Toolkit in my application but it seems I'm > missing something about the way to import a static C++ library (.a > extension) in my Cocoa project. > > When I'm compiling the release, I've got this message: > "warning suggest use of -bind_at_load, as lazy binding may result > in errors or different symbols being used" > the build succeed and no executable is generated in the app package?!? > The debug version is completely unstable. > > The samples embedded in the XMP SDK are perfectly working on my > machine so I think XMP Libs I've compiled are OK. > > Is there anyone experienced in this domain? > > > Thanks for your help > > > > Florent Lacheroy > florent.lacheroy@alwancolor.com > > > > _______________________________________________ > MacOSX-dev mailing list > MacOSX-dev@omnigroup.com > http://www.omnigroup.com/mailman/listinfo/macosx-dev > From florent.lacheroy at alwancolor.com Fri Sep 28 00:53:07 2007 From: florent.lacheroy at alwancolor.com (Florent Lacheroy) Date: Fri Sep 28 00:53:15 2007 Subject: XMP Toolkit & Static C++ libraries import In-Reply-To: <648A352B-73E5-471D-81E7-AE6FCFCC1E9E@obviousmatter.com> References: <387777DF-73FE-462C-A1A7-30BB6249B647@alwancolor.com> <648A352B-73E5-471D-81E7-AE6FCFCC1E9E@obviousmatter.com> Message-ID: <131265CC-CE24-41CD-8F6F-5D054B88F76A@alwancolor.com> Hi, Thanks for your help. I finally decide to create a new project with my classes. I set the libraries and headers paths, changed some code in my classes and it worked. Actually, I had two problems in my project: 1. I must have corrupted the build settings to the bone when I was trying to solve problem 2. 2. I did not correctly initialize XMP classes I used (SXMPFiles and SXMPMeta): I forgot to call "Initialize" method of the classes. I thought because of the kind of error I got it was a link problem. Florent Lacheroy florent.lacheroy@alwancolor.com On 27 sept. 07, at 20:59, Diederik Hoogenboom wrote: > Hi Florent, > > Make sure that, if you use Obj-C, to name the class files where you > use the XMP classes .mm (Obj-C++) instead of .m. This will cause > the right libraries to be linked in. > > Diederik > > -- > Diederik Hoogenboom > Obvious Matter - DiskLibrary for Mac > http://www.obviousmatter.com > > > > On 26-sep-2007, at 19:43, Florent Lacheroy wrote: > >> >> Hi, >> >> I'm trying to use XMP Toolkit in my application but it seems I'm >> missing something about the way to import a static C++ library (.a >> extension) in my Cocoa project. >> >> When I'm compiling the release, I've got this message: >> "warning suggest use of -bind_at_load, as lazy binding may result >> in errors or different symbols being used" >> the build succeed and no executable is generated in the app >> package?!? >> The debug version is completely unstable. >> >> The samples embedded in the XMP SDK are perfectly working on my >> machine so I think XMP Libs I've compiled are OK. >> >> Is there anyone experienced in this domain? >> >> >> Thanks for your help >> >> >> >> Florent Lacheroy >> florent.lacheroy@alwancolor.com >> >> >> >> _______________________________________________ >> MacOSX-dev mailing list >> MacOSX-dev@omnigroup.com >> http://www.omnigroup.com/mailman/listinfo/macosx-dev >> > From brianarthur at nc.rr.com Fri Sep 28 02:33:24 2007 From: brianarthur at nc.rr.com (Anthony B Arthur) Date: Fri Sep 28 02:33:37 2007 Subject: embedded frameworks and dyld failure Message-ID: This is related to a question I posted a few days ago. Apologies if this has already been answered, but I am not finding it. Running OSX 10.4.10 on intel. Question: I am trying to bundle an app with all resources embedded. I have followed steps posted here - http://developer.apple.com/documentation/ MacOSX/Conceptual/BPFrameworks/Tasks/CreatingFrameworks.html#// apple_ref/doc/uid/20002258-106880-BAJJBIEF, under the Using Separate Xcode Projects For Each Target heading. The app runs fine locally but when copied to another host (or just renaming the resource path locally -- effectively hiding the frameworks so that I know the app is loading the embedded ones) it fails. Here's a few lines of the crash log: ********** Host Name: decatur Date/Time: 2007-09-28 04:47:01.642 -0400 OS Version: 10.4.10 (Build 8R2232) Report Version: 4 Command: EstiKit Path: /Users/aarthur/Desktop/EstiKit.app/Contents/MacOS/EstiKit Parent: WindowServer [59] Version: 0.1 (0.1) PID: 21368 Thread: 0 Exception: EXC_BAD_ACCESS (0x0001) Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000000 Thread 0 Crashed: 0 <<00000000>> 0x00000000 0 + 0 1 com.apple.myApp 0x000028a9 start + 41 Thread 0 crashed with X86 Thread State (32-bit): eax: 0x00000000 ebx: 0xbffffd74 ecx: 0x90001658 edx: 0x00000002 edi: 0xbffffd68 esi: 0xbffffd90 ebp: 0xbffffd48 esp: 0xbffffd0c ss: 0x0000001f efl: 0x00010286 eip: 0x00000000 cs: 0x00000017 ds: 0x0000001f es: 0x0000001f fs: 0x00000000 gs: 0x00000037 Binary Images Description: 0x1000 - 0x5fff com.apple.myApp 0.1 /Users/aarthur/Desktop/ EstiKit.app/Contents/MacOS/EstiKit 0x63000 - 0x6efff com.apple.yourcocoaframework 1.0 /Users/ aarthur/Desktop/EstiKit.app/Contents/Frameworks/EKFormKit.framework/ Versions/A/EKFormKit 0xc6000 - 0xcafff com.apple.yourcocoaframework 1.0 /Users/ aarthur/Desktop/EstiKit.app/Contents/Frameworks/GBAccess.framework/ Versions/A/GBAccess 0x205000 - 0x220fff com.apple.yourcocoaframework 1.0 /Users/ aarthur/Desktop/EstiKit.app/Contents/Frameworks/ EstiKitModel.framework/Versions/A/EstiKitModel 0x2d1000 - 0x2eafff com.apple.yourcocoaframework 1.0 /Users/ aarthur/Desktop/EstiKit.app/Contents/Frameworks/GBSketchKit.framework/ Versions/A/GBSketchKit 0x20000000 - 0x20003fff com.apple.yourcocoaframework 1.0 /Users/ aarthur/Desktop/EstiKit.app/Contents/Frameworks/GBAppKit.framework/ Versions/A/GBAppKit 0x8fe00000 - 0x8fe4afff dyld 46.12 /usr/lib/dyld 0xb0000000 - 0xb000afff com.apple.yourcocoaframework 1.0 /Users/ aarthur/Desktop/EstiKit.app/Contents/Frameworks/GBBase.framework/ Versions/A/GBBase ********** I've included the first few lines, and the last line of the log. Observe that dyld is loading 5 frameworks (I think), but there should be 6. The missing framework is the one listed on the last line. I suspect that is the source of my problem, but not exactly sure. Also, using otool -L on the app binary all 6 frameworks are linked: decatur:~/Library/EmbeddingBldDir/EstiKitHidden aarthur$ otool -L Development/EstiKit.app/Contents/MacOS/EstiKit Development/EstiKit.app/Contents/MacOS/EstiKit: /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa (compatibility version 1.0.0, current version 11.0.0) @executable_path/../Frameworks/EKFormKit.framework/Versions/ A/EKFormKit (compatibility version 1.0.0, current version 1.0.0) @executable_path/../Frameworks/EstiKitModel.framework/ Versions/A/EstiKitModel (compatibility version 1.0.0, current version 1.0.0) @executable_path/../Frameworks/GBAccess.framework/Versions/A/ GBAccess (compatibility version 1.0.0, current version 1.0.0) @executable_path/../Frameworks/GBAppKit.framework/Versions/A/ GBAppKit (compatibility version 1.0.0, current version 1.0.0) @executable_path/../Frameworks/GBBase.framework/Versions/A/ GBBase (compatibility version 1.0.0, current version 1.0.0) @executable_path/../Frameworks/GBSketchKit.framework/ Versions/A/GBSketchKit (compatibility version 1.0.0, current version 1.0.0) /System/Library/PrivateFrameworks/ZeroLink.framework/ Versions/A/ZeroLink (compatibility version 1.0.0, current version 1.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 88.3.9) ********** Can anyone please offer a clue to the solution here. Also, is there a load order? GBBase is the most basic framework and if order counts it should load first but it's unclear how to accomplish that. I re- arranged the order in the app but kinda doubt that makes a difference. Best, --Brian From ben at tanjero.com Fri Sep 28 11:17:32 2007 From: ben at tanjero.com (Benjamin Stiglitz) Date: Fri Sep 28 11:23:18 2007 Subject: embedded frameworks and dyld failure In-Reply-To: References: Message-ID: <764557B4-9A9D-4EBD-BEEB-8EF3198FF94A@tanjero.com> > Binary Images Description: > 0x1000 - 0x5fff com.apple.myApp 0.1 /Users/aarthur/Desktop/ > EstiKit.app/Contents/MacOS/EstiKit > 0x63000 - 0x6efff com.apple.yourcocoaframework 1.0 /Users/ > aarthur/Desktop/EstiKit.app/Contents/Frameworks/EKFormKit.framework/ > Versions/A/EKFormKit > 0xc6000 - 0xcafff com.apple.yourcocoaframework 1.0 /Users/ > aarthur/Desktop/EstiKit.app/Contents/Frameworks/GBAccess.framework/ > Versions/A/GBAccess > 0x205000 - 0x220fff com.apple.yourcocoaframework 1.0 /Users/ > aarthur/Desktop/EstiKit.app/Contents/Frameworks/ > EstiKitModel.framework/Versions/A/EstiKitModel > 0x2d1000 - 0x2eafff com.apple.yourcocoaframework 1.0 /Users/ > aarthur/Desktop/EstiKit.app/Contents/Frameworks/ > GBSketchKit.framework/Versions/A/GBSketchKit > 0x20000000 - 0x20003fff com.apple.yourcocoaframework 1.0 /Users/ > aarthur/Desktop/EstiKit.app/Contents/Frameworks/GBAppKit.framework/ > Versions/A/GBAppKit > 0x8fe00000 - 0x8fe4afff dyld 46.12 /usr/lib/dyld You should change the identifiers to be unique; right now, they?re all com.apple.yourcocoaframework, but should be something like com.rr.nc.estikit.GBAppKit. -Ben From brianarthur at nc.rr.com Fri Sep 28 14:04:08 2007 From: brianarthur at nc.rr.com (Anthony B Arthur) Date: Fri Sep 28 14:04:22 2007 Subject: embedded frameworks and dyld failure In-Reply-To: <764557B4-9A9D-4EBD-BEEB-8EF3198FF94A@tanjero.com> References: <764557B4-9A9D-4EBD-BEEB-8EF3198FF94A@tanjero.com> Message-ID: <11CB8B38-5623-4183-A259-FAE19596B280@nc.rr.com> Thanks for the suggestion. I was skeptical, but at this point I'll try anything......, alas it did not make a difference, the results are exactly the same with or without specifying a CFBundleIdentifier. I am pretty sure of what is going wrong. Even though I have assigned @executable_path/../Frameworks to every framework's Installation Directory config setting, somehow there's still something in the app, either the app itself or linked frameworks, that is loading these frameworks from a directory outside of the app bundle instead of from @executable_path/../Frameworks because when this outside folder is available the app runs otherwise it crashes at launch. Why? ********** Host Name: decatur Date/Time: 2007-09-28 16:45:47.101 -0400 OS Version: 10.4.10 (Build 8R2232) Report Version: 4 Command: EstiKit Path: /Users/aarthur/Desktop/EstiKit.app/Contents/MacOS/EstiKit Parent: WindowServer [61] Version: 0.1 (0.1) PID: 2246 Thread: 0 Exception: EXC_BAD_ACCESS (0x0001) Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000000 Thread 0 Crashed: 0 <<00000000>> 0x00000000 0 + 0 1 com.apple.myApp 0x000028a9 start + 41 Thread 0 crashed with X86 Thread State (32-bit): eax: 0x00000000 ebx: 0xbffffd74 ecx: 0x90001658 edx: 0x00000002 edi: 0xbffffd68 esi: 0xbffffd90 ebp: 0xbffffd48 esp: 0xbffffd0c ss: 0x0000001f efl: 0x00010286 eip: 0x00000000 cs: 0x00000017 ds: 0x0000001f es: 0x0000001f fs: 0x00000000 gs: 0x00000037 Binary Images Description: 0x1000 - 0x5fff com.apple.myApp 0.1 /Users/aarthur/Desktop/ EstiKit.app/Contents/MacOS/EstiKit 0x9000 - 0xdfff com.gigabit.gbaccess 1.0 /Users/aarthur/ Desktop/EstiKit.app/Contents/Frameworks/GBAccess.framework/Versions/A/ GBAccess 0x205000 - 0x220fff com.gigabit.estikitmodel 1.0 /Users/aarthur/ Desktop/EstiKit.app/Contents/Frameworks/EstiKitModel.framework/ Versions/A/EstiKitModel 0x2d1000 - 0x2dcfff com.gigabit.ekformkit 1.0 /Users/aarthur/ Desktop/EstiKit.app/Contents/Frameworks/EKFormKit.framework/Versions/ A/EKFormKit 0x334000 - 0x34dfff com.gigabit.gbsketchkit 1.0 /Users/aarthur/ Desktop/EstiKit.app/Contents/Frameworks/GBSketchKit.framework/ Versions/A/GBSketchKit 0x20000000 - 0x20003fff com.gigabit.gbappkit 1.0 /Users/aarthur/ Desktop/EstiKit.app/Contents/Frameworks/GBAppKit.framework/Versions/A/ GBAppKit 0x8fe00000 - 0x8fe4afff dyld 46.12 /usr/lib/dyld 0x90000000 - 0x90171fff libSystem.B.dylib /usr/lib/libSystem.B.dylib On Sep 28, 2007, at 2:17 PM, Benjamin Stiglitz wrote: >> Binary Images Description: >> 0x1000 - 0x5fff com.apple.myApp 0.1 /Users/aarthur/Desktop/ >> EstiKit.app/Contents/MacOS/EstiKit >> 0x63000 - 0x6efff com.apple.yourcocoaframework 1.0 /Users/ >> aarthur/Desktop/EstiKit.app/Contents/Frameworks/ >> EKFormKit.framework/Versions/A/EKFormKit >> 0xc6000 - 0xcafff com.apple.yourcocoaframework 1.0 /Users/ >> aarthur/Desktop/EstiKit.app/Contents/Frameworks/GBAccess.framework/ >> Versions/A/GBAccess >> 0x205000 - 0x220fff com.apple.yourcocoaframework 1.0 /Users/ >> aarthur/Desktop/EstiKit.app/Contents/Frameworks/ >> EstiKitModel.framework/Versions/A/EstiKitModel >> 0x2d1000 - 0x2eafff com.apple.yourcocoaframework 1.0 /Users/ >> aarthur/Desktop/EstiKit.app/Contents/Frameworks/ >> GBSketchKit.framework/Versions/A/GBSketchKit >> 0x20000000 - 0x20003fff com.apple.yourcocoaframework 1.0 /Users/ >> aarthur/Desktop/EstiKit.app/Contents/Frameworks/GBAppKit.framework/ >> Versions/A/GBAppKit >> 0x8fe00000 - 0x8fe4afff dyld 46.12 /usr/lib/dyld > > You should change the identifiers to be unique; right now, they?re > all com.apple.yourcocoaframework, but should be something like > com.rr.nc.estikit.GBAppKit. > > -Ben From brianarthur at nc.rr.com Sat Sep 29 02:22:48 2007 From: brianarthur at nc.rr.com (Anthony B Arthur) Date: Sat Sep 29 02:22:55 2007 Subject: embedded frameworks and dyld failure In-Reply-To: <11CB8B38-5623-4183-A259-FAE19596B280@nc.rr.com> References: <764557B4-9A9D-4EBD-BEEB-8EF3198FF94A@tanjero.com> <11CB8B38-5623-4183-A259-FAE19596B280@nc.rr.com> Message-ID: I've experimented with so many different configuration settings I can't be 100% sure this was the solution, but I think what fixed this for me was turning off ZeroLink. -b On Sep 28, 2007, at 5:04 PM, Anthony B Arthur wrote: > Thanks for the suggestion. I was skeptical, but at this point I'll > try anything......, alas it did not make a difference, the results > are exactly the same with or without specifying a CFBundleIdentifier. > > I am pretty sure of what is going wrong. Even though I have > assigned @executable_path/../Frameworks to every framework's > Installation Directory config setting, somehow there's still > something in the app, either the app itself or linked frameworks, > that is loading these frameworks from a directory outside of the > app bundle instead of from @executable_path/../Frameworks because > when this outside folder is available the app runs otherwise it > crashes at launch. Why? > > ********** > > Host Name: decatur > Date/Time: 2007-09-28 16:45:47.101 -0400 > OS Version: 10.4.10 (Build 8R2232) > Report Version: 4 > > Command: EstiKit > Path: /Users/aarthur/Desktop/EstiKit.app/Contents/MacOS/EstiKit > Parent: WindowServer [61] > > Version: 0.1 (0.1) > > PID: 2246 > Thread: 0 > > Exception: EXC_BAD_ACCESS (0x0001) > Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000000 > > Thread 0 Crashed: > 0 <<00000000>> 0x00000000 0 + 0 > 1 com.apple.myApp 0x000028a9 start + 41 > > Thread 0 crashed with X86 Thread State (32-bit): > eax: 0x00000000 ebx: 0xbffffd74 ecx: 0x90001658 edx: 0x00000002 > edi: 0xbffffd68 esi: 0xbffffd90 ebp: 0xbffffd48 esp: 0xbffffd0c > ss: 0x0000001f efl: 0x00010286 eip: 0x00000000 cs: 0x00000017 > ds: 0x0000001f es: 0x0000001f fs: 0x00000000 gs: 0x00000037 > > Binary Images Description: > 0x1000 - 0x5fff com.apple.myApp 0.1 /Users/aarthur/Desktop/ > EstiKit.app/Contents/MacOS/EstiKit > 0x9000 - 0xdfff com.gigabit.gbaccess 1.0 /Users/aarthur/ > Desktop/EstiKit.app/Contents/Frameworks/GBAccess.framework/Versions/ > A/GBAccess > 0x205000 - 0x220fff com.gigabit.estikitmodel 1.0 /Users/aarthur/ > Desktop/EstiKit.app/Contents/Frameworks/EstiKitModel.framework/ > Versions/A/EstiKitModel > 0x2d1000 - 0x2dcfff com.gigabit.ekformkit 1.0 /Users/aarthur/ > Desktop/EstiKit.app/Contents/Frameworks/EKFormKit.framework/ > Versions/A/EKFormKit > 0x334000 - 0x34dfff com.gigabit.gbsketchkit 1.0 /Users/aarthur/ > Desktop/EstiKit.app/Contents/Frameworks/GBSketchKit.framework/ > Versions/A/GBSketchKit > 0x20000000 - 0x20003fff com.gigabit.gbappkit 1.0 /Users/aarthur/ > Desktop/EstiKit.app/Contents/Frameworks/GBAppKit.framework/Versions/ > A/GBAppKit > 0x8fe00000 - 0x8fe4afff dyld 46.12 /usr/lib/dyld > 0x90000000 - 0x90171fff libSystem.B.dylib /usr/lib/libSystem.B.dylib > > On Sep 28, 2007, at 2:17 PM, Benjamin Stiglitz wrote: > >>> Binary Images Description: >>> 0x1000 - 0x5fff com.apple.myApp 0.1 /Users/aarthur/Desktop/ >>> EstiKit.app/Contents/MacOS/EstiKit >>> 0x63000 - 0x6efff com.apple.yourcocoaframework 1.0 /Users/ >>> aarthur/Desktop/EstiKit.app/Contents/Frameworks/ >>> EKFormKit.framework/Versions/A/EKFormKit >>> 0xc6000 - 0xcafff com.apple.yourcocoaframework 1.0 /Users/ >>> aarthur/Desktop/EstiKit.app/Contents/Frameworks/ >>> GBAccess.framework/Versions/A/GBAccess >>> 0x205000 - 0x220fff com.apple.yourcocoaframework 1.0 /Users/ >>> aarthur/Desktop/EstiKit.app/Contents/Frameworks/ >>> EstiKitModel.framework/Versions/A/EstiKitModel >>> 0x2d1000 - 0x2eafff com.apple.yourcocoaframework 1.0 /Users/ >>> aarthur/Desktop/EstiKit.app/Contents/Frameworks/ >>> GBSketchKit.framework/Versions/A/GBSketchKit >>> 0x20000000 - 0x20003fff com.apple.yourcocoaframework 1.0 /Users/ >>> aarthur/Desktop/EstiKit.app/Contents/Frameworks/ >>> GBAppKit.framework/Versions/A/GBAppKit >>> 0x8fe00000 - 0x8fe4afff dyld 46.12 /usr/lib/dyld >> >> You should change the identifiers to be unique; right now, they?re >> all com.apple.yourcocoaframework, but should be something like >> com.rr.nc.estikit.GBAppKit. >> >> -Ben > > _______________________________________________ > MacOSX-dev mailing list > MacOSX-dev@omnigroup.com > http://www.omnigroup.com/mailman/listinfo/macosx-dev From slittle at free.fr Sat Sep 29 02:53:52 2007 From: slittle at free.fr (scott little) Date: Sat Sep 29 03:00:19 2007 Subject: embedded frameworks and dyld failure In-Reply-To: <11CB8B38-5623-4183-A259-FAE19596B280@nc.rr.com> References: <764557B4-9A9D-4EBD-BEEB-8EF3198FF94A@tanjero.com> <11CB8B38-5623-4183-A259-FAE19596B280@nc.rr.com> Message-ID: <19DAEA9C-9432-4796-82CA-76D1811300F3@free.fr> I have found that the exact same issue occurs for Mail Plugins that I have written. I was trying to use RBSplitView as a framework from within a plugin and at run time it would always complain about that framework not being there. I could not get the linker to change where it would look at run time no matter what I did. In the end I used the static library supplied for RBSplitView. I would love to know how to solve this one as well. scott -- "Reality is that which, when you stop believing in it, doesn't go away." Philip K. Dick -- scott little slittle@free.fr -- sadly no music right now: iTunes is Stopped On 28 Sep, 2007, at 23:04, Anthony B Arthur wrote: > Thanks for the suggestion. I was skeptical, but at this point I'll > try anything......, alas it did not make a difference, the results > are exactly the same with or without specifying a CFBundleIdentifier. > > I am pretty sure of what is going wrong. Even though I have > assigned @executable_path/../Frameworks to every framework's > Installation Directory config setting, somehow there's still > something in the app, either the app itself or linked frameworks, > that is loading these frameworks from a directory outside of the > app bundle instead of from @executable_path/../Frameworks because > when this outside folder is available the app runs otherwise it > crashes at launch. Why? > > ********** > > Host Name: decatur > Date/Time: 2007-09-28 16:45:47.101 -0400 > OS Version: 10.4.10 (Build 8R2232) > Report Version: 4 > > Command: EstiKit > Path: /Users/aarthur/Desktop/EstiKit.app/Contents/MacOS/EstiKit > Parent: WindowServer [61] > > Version: 0.1 (0.1) > > PID: 2246 > Thread: 0 > > Exception: EXC_BAD_ACCESS (0x0001) > Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000000 > > Thread 0 Crashed: > 0 <<00000000>> 0x00000000 0 + 0 > 1 com.apple.myApp 0x000028a9 start + 41 > > Thread 0 crashed with X86 Thread State (32-bit): > eax: 0x00000000 ebx: 0xbffffd74 ecx: 0x90001658 edx: 0x00000002 > edi: 0xbffffd68 esi: 0xbffffd90 ebp: 0xbffffd48 esp: 0xbffffd0c > ss: 0x0000001f efl: 0x00010286 eip: 0x00000000 cs: 0x00000017 > ds: 0x0000001f es: 0x0000001f fs: 0x00000000 gs: 0x00000037 > > Binary Images Description: > 0x1000 - 0x5fff com.apple.myApp 0.1 /Users/aarthur/Desktop/ > EstiKit.app/Contents/MacOS/EstiKit > 0x9000 - 0xdfff com.gigabit.gbaccess 1.0 /Users/aarthur/ > Desktop/EstiKit.app/Contents/Frameworks/GBAccess.framework/Versions/ > A/GBAccess > 0x205000 - 0x220fff com.gigabit.estikitmodel 1.0 /Users/aarthur/ > Desktop/EstiKit.app/Contents/Frameworks/EstiKitModel.framework/ > Versions/A/EstiKitModel > 0x2d1000 - 0x2dcfff com.gigabit.ekformkit 1.0 /Users/aarthur/ > Desktop/EstiKit.app/Contents/Frameworks/EKFormKit.framework/ > Versions/A/EKFormKit > 0x334000 - 0x34dfff com.gigabit.gbsketchkit 1.0 /Users/aarthur/ > Desktop/EstiKit.app/Contents/Frameworks/GBSketchKit.framework/ > Versions/A/GBSketchKit > 0x20000000 - 0x20003fff com.gigabit.gbappkit 1.0 /Users/aarthur/ > Desktop/EstiKit.app/Contents/Frameworks/GBAppKit.framework/Versions/ > A/GBAppKit > 0x8fe00000 - 0x8fe4afff dyld 46.12 /usr/lib/dyld > 0x90000000 - 0x90171fff libSystem.B.dylib /usr/lib/libSystem.B.dylib > > On Sep 28, 2007, at 2:17 PM, Benjamin Stiglitz wrote: > >>> Binary Images Description: >>> 0x1000 - 0x5fff com.apple.myApp 0.1 /Users/aarthur/Desktop/ >>> EstiKit.app/Contents/MacOS/EstiKit >>> 0x63000 - 0x6efff com.apple.yourcocoaframework 1.0 /Users/ >>> aarthur/Desktop/EstiKit.app/Contents/Frameworks/ >>> EKFormKit.framework/Versions/A/EKFormKit >>> 0xc6000 - 0xcafff com.apple.yourcocoaframework 1.0 /Users/ >>> aarthur/Desktop/EstiKit.app/Contents/Frameworks/ >>> GBAccess.framework/Versions/A/GBAccess >>> 0x205000 - 0x220fff com.apple.yourcocoaframework 1.0 /Users/ >>> aarthur/Desktop/EstiKit.app/Contents/Frameworks/ >>> EstiKitModel.framework/Versions/A/EstiKitModel >>> 0x2d1000 - 0x2eafff com.apple.yourcocoaframework 1.0 /Users/ >>> aarthur/Desktop/EstiKit.app/Contents/Frameworks/ >>> GBSketchKit.framework/Versions/A/GBSketchKit >>> 0x20000000 - 0x20003fff com.apple.yourcocoaframework 1.0 /Users/ >>> aarthur/Desktop/EstiKit.app/Contents/Frameworks/ >>> GBAppKit.framework/Versions/A/GBAppKit >>> 0x8fe00000 - 0x8fe4afff dyld 46.12 /usr/lib/dyld >> >> You should change the identifiers to be unique; right now, they?re >> all com.apple.yourcocoaframework, but should be something like >> com.rr.nc.estikit.GBAppKit. >> >> -Ben > > _______________________________________________ > MacOSX-dev mailing list > MacOSX-dev@omnigroup.com > http://www.omnigroup.com/mailman/listinfo/macosx-dev > From kusterer at gmail.com Sat Sep 29 10:51:03 2007 From: kusterer at gmail.com (Uli Kusterer) Date: Sat Sep 29 10:51:11 2007 Subject: embedded frameworks and dyld failure In-Reply-To: <19DAEA9C-9432-4796-82CA-76D1811300F3@free.fr> References: <764557B4-9A9D-4EBD-BEEB-8EF3198FF94A@tanjero.com> <11CB8B38-5623-4183-A259-FAE19596B280@nc.rr.com> <19DAEA9C-9432-4796-82CA-76D1811300F3@free.fr> Message-ID: <4B7761D0-CEE7-4155-9E3B-75A77A973C26@gmail.com> Am 29.09.2007 um 11:53 schrieb scott little: > I have found that the exact same issue occurs for Mail Plugins that > I have written. I was trying to use RBSplitView as a framework from > within a plugin and at run time it would always complain about that > framework not being there. I could not get the linker to change > where it would look at run time no matter what I did. In the end I > used the static library supplied for RBSplitView. > > I would love to know how to solve this one as well. @executable_path literally means the path of the *executable* launched. It won't point to the loader of a particular library, it will point to the root application in whose memory space all those libraries were launched. You'd need something like an @loader_path if you want to embed one framework in the other. Since, AFAIK, that isn't available yet, you may have to change the path of a bundle that is loaded by another bundle so it points at the correct path *relative to the application*, not relative to its containing framework. Does that help in any way? You'd definitely want to make sure you have unique identifiers, too, because frameworks get loaded based on their identifier, I think, so it may be possible that if one framework got loaded with a particular identifier, the OS may not actually load the others. Also, make sure your Cocoa class names are unique across *all* frameworks. There's only a single namespace for classes, so if you load a framework with a class named the same as one already loaded, your new class will not be loaded, and your code will use the already loaded class instead, which may implement a completely different API. Cheers, -- M. Uli Kusterer http://www.zathras.de