From Stefan.Johansson at orctradelab.com Tue Oct 1 01:36:04 2002 From: Stefan.Johansson at orctradelab.com (Stefan Johansson) Date: Thu Nov 3 14:50:11 2005 Subject: iODBC and 10.2 In-Reply-To: Message-ID: I'm trying to figure out how to use iODBC in my foundation tools. Supposedly there should exist a framework for iODBC which you can use in PB. I cannot find any framework, nor any information on how to use iODBC. I know I can link /usr/lib/libiodbc.a manually, but I want to use it from PB in framework "form" (at least if you look at www.iodbc.org it says that a framework exist, and how it can be installed). No docs about iODBC exists on my machine whatsoever. Funny, maybe I'm supposed to guess? I'm very impressed by the level of documentation... I know I'm cranky, but I'm a bit tired of wasting my dev time on guessing stuff :) /Stefan From W.Northcott at unsw.edu.au Tue Oct 1 04:19:00 2002 From: W.Northcott at unsw.edu.au (W.Northcott@unsw.edu.au) Date: Thu Nov 3 14:50:12 2005 Subject: HOw to compile objctive-c compiler with gnu-objc by default Message-ID: Alex wrote > I have a little problem. The source of gcc compile objc with > Next-objc compiler which is a bit different from gnu-objc-compiler. > Can anyone tell me how to tell, during the compilation of gcc, to the > objc compiler to use the gnu-objc instead of the NExt-objc? AFAIK this is controlled by the __APPLE__ macro. Maybe you could disable this or produce the compiler as a cross compiler on a Linux system. However, I have to ask 'What is the point?' The resulting compiler, even if it would build, would be thoroughly broken. The right way is to just use the -fgnu-runtime when you want to compile an Objective-C class in gnu style. Bill Northcott From murphy at jascot.org Tue Oct 1 06:36:02 2002 From: murphy at jascot.org (murphy@jascot.org) Date: Thu Nov 3 14:50:12 2005 Subject: ODBC in Mac OS X Message-ID: <24792.136.2.1.101.1033479366.squirrel@squirrelmail.jascot.org> 1) I'm really new to the programming scene, in general, and have the misfortune of being paid to program web apps in ASP/VB for Windoze, so please bear with me as I stumble along here... 2) I've seen the ODBC Administrator panel, and have seen some discussion about iODBC here, but I was wondering: does 10.2 ship with any ODBC drivers built in, and if so, where are they to be found? 3) If not, where do I find drivers? Thanks! Jason M. Batchelor From mark at lilback.com Tue Oct 1 06:43:01 2002 From: mark at lilback.com (Mark J. Lilback) Date: Thu Nov 3 14:50:12 2005 Subject: ODBC in Mac OS X In-Reply-To: <24792.136.2.1.101.1033479366.squirrel@squirrelmail.jascot.org> References: <24792.136.2.1.101.1033479366.squirrel@squirrelmail.jascot.org> Message-ID: At 9:36 AM -0400 10/1/2002, wrote: >2) I've seen the ODBC Administrator panel, and have seen some discussion >about iODBC here, but I was wondering: does 10.2 ship with any ODBC >drivers built in, and if so, where are they to be found? Nope, Apple didn't include any drivers, just the driver manager. >3) If not, where do I find drivers? From the database vendor, or from OpenLink software . You'll also want to download the iODBC SDK to get the header files to compile against. . -- __________________________________________________________________________ "They that can give up essential liberty Mark J. Lilback to obtain a little temporary safety deserve neither liberty or safety." http://www.lilback.com/ -- Benjamin Franklin From mark at lilback.com Tue Oct 1 06:46:04 2002 From: mark at lilback.com (Mark J. Lilback) Date: Thu Nov 3 14:50:12 2005 Subject: iODBC and 10.2 In-Reply-To: References: Message-ID: Grab the SDK from . It has the frameworks and documentation. There are issues (what I can't remember) with what comes with Jaguar and OpenLink advises you install iODBC along with whatever drivers you want to use. (I asked about it because Sybase only works on Jaguar yet the ODBC driver installer for it installs the whole iODBC package.) -- __________________________________________________________________________ "They that can give up essential liberty Mark J. Lilback to obtain a little temporary safety deserve neither liberty or safety." http://www.lilback.com/ -- Benjamin Franklin From estes at onscreen-sci.com Tue Oct 1 07:33:01 2002 From: estes at onscreen-sci.com (Bob Estes) Date: Thu Nov 3 14:50:12 2005 Subject: Displaying text in an OpenGLView? Message-ID: I'm discovering more unadvertised (though maybe obvious to experts) drawbacks to the currently implemented OpenGLView. I want to display some text in an OpenGLView. Since I didn't come across an OpenGL way (an easy one anyway), I first tried just using NSAttributedString drawAtPoint:, which didn't work. This failure to allow mixing of quartz and opengl wasn't surprising. The next thing I tried was to just put a NSTextField into the view. This didn't work either, and that is more surprising, since it seems to say that an OpenGLView is not a normal view that can display subviews. Can someone confirm that this is the case? If so, is that necessarily the case, or just the way things stand now? Can someone point me to a way to display text with OpenGL under MacOSX? A quick perusal of some MFC online tutorials revealed the existence of a CGLFont class that can be used to set all the font attributes and then draw text in opengl. Nothing yet for Cocoa? Bob Estes From chmod007 at mac.com Tue Oct 1 07:40:02 2002 From: chmod007 at mac.com (David Remahl) Date: Thu Nov 3 14:50:12 2005 Subject: Displaying text in an OpenGLView? In-Reply-To: Message-ID: > I'm discovering more unadvertised (though maybe obvious to experts) > drawbacks to the currently implemented OpenGLView. > > I want to display some text in an OpenGLView. Since I didn't come > across an OpenGL way (an easy one anyway), I first tried just using > NSAttributedString drawAtPoint:, which didn't work. This failure to > allow mixing of quartz and opengl wasn't surprising. > > The next thing I tried was to just put a NSTextField into the view. > This didn't work either, and that is more surprising, since it seems > to say that an OpenGLView is not a normal view that can display > subviews. Can someone confirm that this is the case? If so, is that > necessarily the case, or just the way things stand now? > > Can someone point me to a way to display text with OpenGL under > MacOSX? A quick perusal of some MFC online tutorials revealed the > existence of a CGLFont class that can be used to set all the font > attributes and then draw text in opengl. Nothing yet for Cocoa? > > Bob Estes In Mac OS X 10.2 Jaguar, there are features which enable exactly the kind of things you like to see. Underlay surfaces allow you to mix OpenGL and Cocoa controls. There is an example project here: /Developer/Examples/OpenGL/Cocoa/UnderlaySurface/ Underlay surfaces work better on systems supported by Quartz Extreme, but will function on every graphics card - though with a significant performance penalty. / Regards, David From jdavis at math.wisc.edu Tue Oct 1 09:07:01 2002 From: jdavis at math.wisc.edu (Joshua Davis) Date: Thu Nov 3 14:50:12 2005 Subject: Displaying text in an OpenGLView? In-Reply-To: Message-ID: <9A6E0DB6-D557-11D6-961E-003065CBDA5E@math.wisc.edu> On Tuesday, October 1, 2002, at 09:39 AM, David Remahl wrote: >> I want to display some text in an OpenGLView. Since I didn't come >> across an OpenGL way (an easy one anyway), I first tried just using >> NSAttributedString drawAtPoint:, which didn't work. This failure to >> allow mixing of quartz and opengl wasn't surprising. >> >> The next thing I tried was to just put a NSTextField into the view. >> This didn't work either, and that is more surprising, since it seems >> to say that an OpenGLView is not a normal view that can display >> subviews. Can someone confirm that this is the case? If so, is that >> necessarily the case, or just the way things stand now? > > In Mac OS X 10.2 Jaguar, there are features which enable exactly the > kind of > things you like to see. Underlay surfaces allow you to mix OpenGL and > Cocoa > controls. > > There is an example project here: > > /Developer/Examples/OpenGL/Cocoa/UnderlaySurface/ This shows how to configure the OpenGL view, but it doesn't help you draw the text with line breaks, etc. If you want to format text, then you need to use the NSTextStorage/NSLayoutManager/NSTextContainer combination. The "Assembling the Text System by Hand" topic in the docs goes into this. For all of this to work, you will need to flip the coordinates in your view, by overriding isFlipped to return YES. If you don't want to go to all of that trouble, check out the SMKDrawingManager class in my newly updated SMea Kit, which abstracts all of this into two easy calls. There's a detailed manual that you can view online before you download. http://www.math.wisc.edu/~jdavis/software/index.html Joshua Davis jdavis@math.wisc.edu http://www.math.wisc.edu/~jdavis/ From devdrvr at davis.com Tue Oct 1 09:39:02 2002 From: devdrvr at davis.com (devdrvr.net Multi-Platform SW) Date: Thu Nov 3 14:50:12 2005 Subject: MEETING: MacOS Developer Meeting Davis, CA Fri. 10/11/02 In-Reply-To: Message-ID: Mishka's Caf? Friday 10/11/02 7:30 PM (2nd & E Street, Davis, CA). MacOS developers in the area stop by next Fri. to chat and do caffeine. Our first meeting, we'll be feeling things out to see if there is interest to make a similar gathering happen every couple of months (with an Agenda). Please RSVP if you plan on attending. Mishka's has a free net connection through an Airport router that I installed. They roast their own coffee so the adenosine adjustment is good. --Perry ======== 01 (530) 400-5692 [Davis, CA USA] mailto:perry_gregg@post.harvard.edu http://www.devdrvr.net/PerryCard.html ftp://www.devdrvr.net/ From msrednsi at yahoo.es Tue Oct 1 10:07:01 2002 From: msrednsi at yahoo.es (=?ISO-8859-1?Q?Manuel_S=E1nchez?=) Date: Thu Nov 3 14:50:12 2005 Subject: gdb problem on 10.2.1 Message-ID: After migrating to 10.2.1, installing the July developer tools an all updates i have found a problem with gdb: bash-2.05a$ gdb /Applications/Mail.app/Contents/MacOS/Mail GNU gdb 5.1-20020408 (Apple version gdb-231) (Tue Aug 13 21:37:39 GMT 2002) Copyright 2002 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "powerpc-apple-macos10". Reading symbols for shared libraries .............. done (gdb) r Starting program: /Applications/Mail.app/Contents/MacOS/Mail Cannot exec uid: No such file or directory. Program exited with code 0177. This happens with all applications, and only if i use a networked user, with its home directory nfs or afp mounted. With a local user, gdb works properly. Some idea? Manuel S?nchez Nexus Servicios de Informaci?n, S.L. Sant Feliu del Llobregat Spain _______________________________________________________________ Yahoo! Messenger Nueva versi?n: Webcam, voz, y mucho m?s ?Gratis! Desc?rgalo ya desde http://messenger.yahoo.es From marquedej at mac.com Tue Oct 1 12:11:03 2002 From: marquedej at mac.com (Mark de Jong) Date: Thu Nov 3 14:50:12 2005 Subject: [Q] Activating and deactivating fonts (again, sorry) Message-ID: <6ED16306-D571-11D6-BFFE-003065B89C78@mac.com> I sent this a few days ago. Sorry to bug these lists again, but I'm really puzzled by this and need assistance. Has anyone here worked extensively with FMActivateFonts() and FMDeactivateFonts()? I'll be happy to exchange emails off the list, if that's more appropriate. Thanks. -- Mark Begin forwarded message: > Hi, > > I'm having some strange crashes and I think it's because of the way I'm > trying to use fonts. > > Currently, if I want to display a font that is not available from the > font manager, I try to enable the font with: > > err = FMActivateFonts( &myFontFSSpec, NULL, NULL, > globalScope ? kFMGlobalActivationContext : > kFMLocalActivationContext); > > where "globalScope" is a boolean I pass in to my routine and > "myFontFSSpec" is an FSSpec pointing to the font I want to use. > > I'm trying to display a list of font names in an NSOutlineView. I'd > like each name to be displayed in its font. > > From what I understand, it seems like I should use > "kFMLocalActivationContext" when calling "FMActivateFonts()" so that > the font does not get enabled for the entire system. However, > regardless of whether I use "kFMLocalActivationContext" or > "kFMGlobalActivationContext", I get the crash shown below. > > The crash seems to occur if I enable many fonts. The specific font does > not seem to matter (but I guess it could; I have a mix of Type1, > TrueType, Windows TTF, and OpenType fonts that I'm working with). > > My question is: do fonts have to be enabled with FMActivateFonts() > before they can be used? Or is there a different way to enable fonts > that just need to be used within an application? > > Along similar lines, is there a way to accurately determine the set of > activated fonts? I've tried using the NSFontManager message > "availableFonts". However, "availableFonts" does not seem to reflect > any changes made by calling either "FMActivateFonts()" or > "FMDeactivateFonts()". > > Thanks, in advance, for any suggestions, > > -- Mark > > > Exception: EXC_BAD_ACCESS (0x0001) > Codes: KERN_INVALID_ADDRESS (0x0001) at 0x03b6c04c > > Thread 0 Crashed: > #0 0x919404c8 in ProcessKerningPairsList > #1 0x91937384 in ApplyKerning > #2 0x91933698 in _eLLCLayoutText > #3 0x91939364 in LLCLayoutText > #4 0x933d3c50 in -[NSATSTypesetter > layoutGlyphsInLayoutManager:startingAtGlyphIndex:maxNumberOfLineFragmen > t > s:nextGlyphIndex:] > #5 0x931e86e8 in -[NSLayoutManager(NSPrivate) > _fillLayoutHoleAtIndex:desiredNumberOfLines:] > #6 0x931f7990 in > _NSFastFillAllLayoutHolesUpToEndOfContainerForGlyphIndex > #7 0x931e07ac in -[NSLayoutManager > textContainerForGlyphAtIndex:effectiveRange:] > #8 0x931e1bf0 in -[NSLayoutManager glyphRangeForTextContainer:] > #9 0x93112d18 in textContainerForTextCell > #10 0x93112f20 in _NXDrawTextCell > #11 0x932f0d4c in -[NSTextFieldCell drawInteriorWithFrame:inView:] > #12 0x932d14e0 in -[NSTableView drawRow:clipRect:] > #13 0x9323f11c in -[NSOutlineView drawRow:clipRect:] > #14 0x932d4b2c in -[NSTableView drawRect:] > #15 0x9335b6c4 in -[NSView _drawRect:clip:] > #16 0x9335bee8 in -[NSView > _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibl > e > RectForView:topView:] > #17 0x9335c108 in -[NSView > _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibl > e > RectForView:topView:] > #18 0x9335c108 in -[NSView > _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibl > e > RectForView:topView:] > #19 0x9335c108 in -[NSView > _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibl > e > RectForView:topView:] > #20 0x9335c108 in -[NSView > _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibl > e > RectForView:topView:] > #21 0x9335c108 in -[NSView > _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibl > e > RectForView:topView:] > #22 0x9335c108 in -[NSView > _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibl > e > RectForView:topView:] > #23 0x9335c108 in -[NSView > _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibl > e > RectForView:topView:] > #24 0x9335c108 in -[NSView > _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibl > e > RectForView:topView:] > #25 0x931a3640 in -[NSFrameView > _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibl > e > RectForView:topView:] > #26 0x93321a14 in -[NSThemeFrame > _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibl > e > RectForView:topView:] > #27 0x9335c314 in -[NSView > _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] > #28 0x9335cef8 in -[NSView displayIfNeeded] > #29 0x9336a188 in -[NSWindow displayIfNeeded] > #30 0x93369e8c in _handleWindowNeedsDisplay > #31 0x90148b1c in __CFRunLoopDoObservers > #32 0x90148e8c in __CFRunLoopRun > #33 0x9018157c in CFRunLoopRunSpecific > #34 0x92ba34cc in RunCurrentEventLoopInMode > #35 0x92bb326c in ReceiveNextEventCommon > #36 0x92bda280 in BlockUntilNextEventMatchingListInMode > #37 0x93082184 in _DPSNextEvent > #38 0x930ccf84 in -[NSApplication > nextEventMatchingMask:untilDate:inMode:dequeue:] > #39 0x930ca500 in -[NSApplication run] > #40 0x930d2598 in NSApplicationMain > #41 0x000046a4 in main (main.m:18) > #42 0x000043b8 in _start (crt.c:267) > #43 0x00004228 in start > > PPC Thread State: > srr0: 0x919404c8 srr1: 0x0200f030 vrsave: 0x00000000 > xer: 0x20000000 lr: 0x10000000 ctr: 0x900741a0 mq: 0x00000000 > r0: 0x00000000 r1: 0xbfffce60 r2: 0x28002242 r3: 0x00000023 > r4: 0x0391c02b r5: 0x00000000 r6: 0x00000010 r7: 0x00000010 > r8: 0x00000008 r9: 0x00000001 r10: 0x00000000 r11: 0x00250025 > r12: 0x900741a0 r13: 0x00000000 r14: 0x036d5890 r15: 0x00000000 > r16: 0x00000800 r17: 0x00000000 r18: 0xbfffd020 r19: 0x036c6550 > r20: 0x00000000 r21: 0x00000001 r22: 0x03b6c048 r23: 0x00000000 > r24: 0x00000014 r25: 0x00000025 r26: 0x00000000 r27: 0xbfffd020 > r28: 0x036ce834 r29: 0x038430d0 r30: 0x00000000 r31: 0x919403b4 From jeff.szuhay at pstnet.com Tue Oct 1 12:28:05 2002 From: jeff.szuhay at pstnet.com (Jeff Szuhay) Date: Thu Nov 3 14:50:12 2005 Subject: Cocoa Programming Book... Message-ID: ... just arrived from Amazon.com. Wow! This is one big reference book. Looks like a _lot_ of useful stuff in it. I'm glad I have it. Jeff Sz. -- Jeff Szuhay Lead Macintosh Engineer voice: 412-271-5040 x 227 Psychology Software Tools From mwatson at apple.com Tue Oct 1 12:30:03 2002 From: mwatson at apple.com (Matt Watson) Date: Thu Nov 3 14:50:12 2005 Subject: gdb problem on 10.2.1 In-Reply-To: Message-ID: Sounds like something specific your shell or your shell startup script or aliases. What happens if you change shells? What if you do: (gdb) set start-with-shell 0 (gdb) r matt. On Tuesday, October 1, 2002, at 10:05 AM, Manuel S?nchez wrote: > After migrating to 10.2.1, installing the July developer tools an all > updates i have found a problem with gdb: > > bash-2.05a$ gdb /Applications/Mail.app/Contents/MacOS/Mail > GNU gdb 5.1-20020408 (Apple version gdb-231) (Tue Aug 13 21:37:39 GMT > 2002) > Copyright 2002 Free Software Foundation, Inc. > GDB is free software, covered by the GNU General Public License, and > you are > welcome to change it and/or distribute copies of it under certain > conditions. > Type "show copying" to see the conditions. > There is absolutely no warranty for GDB. Type "show warranty" for > details. > This GDB was configured as "powerpc-apple-macos10". > Reading symbols for shared libraries .............. done > (gdb) r > Starting program: /Applications/Mail.app/Contents/MacOS/Mail > Cannot exec uid: No such file or directory. > > Program exited with code 0177. > > This happens with all applications, and only if i use a networked > user, with its home directory nfs or afp mounted. With a local user, > gdb works properly. Some idea? > > > Manuel S?nchez > Nexus Servicios de Informaci?n, S.L. > Sant Feliu del Llobregat > Spain > _______________________________________________________________ > Yahoo! Messenger > Nueva versi?n: Webcam, voz, y mucho m?s ?Gratis! Desc?rgalo ya desde > http://messenger.yahoo.es > _______________________________________________ > MacOSX-dev mailing list > MacOSX-dev@omnigroup.com > http://www.omnigroup.com/mailman/listinfo/macosx-dev From spinel at inadd.com Tue Oct 1 13:13:02 2002 From: spinel at inadd.com (St=?ISO-8859-1?B?6Q==?=phane Pinel) Date: Thu Nov 3 14:50:12 2005 Subject: Cocoa Programming Book... In-Reply-To: Message-ID: Le 1/10/02 21:26, ??Jeff Szuhay?? a ?crit?: > ... just arrived from Amazon.com. > > Wow! This is one big reference book. Looks like a _lot_ > of useful stuff in it. I'm glad I have it. > > Jeff Sz. So mine has to cross the Atlantic to get my office ;-) -- St?phane Pinel InAdd Paris spinel@inadd.com iChat : s.pinel@mac.com From estes at onscreen-sci.com Tue Oct 1 14:09:02 2002 From: estes at onscreen-sci.com (Bob Estes) Date: Thu Nov 3 14:50:12 2005 Subject: Displaying text in an OpenGLView? In-Reply-To: <646CC01A-D54E-11D6-8653-0003936A7C02@artificial.com> References: <646CC01A-D54E-11D6-8653-0003936A7C02@artificial.com> Message-ID: > > glRasterPos2f(x, y); > > while((c = *(string++)) != 0) glutBitmapCharacter(font, c); >} > >You may have to futz with the GL matrices as well to get the text >drawn where you want it. > >- jon This works fine for my purposes. Thanks, Jon, and the others who responded. This is a very helpful group! Bob Estes -- From developer at invisiblecomputer.com Tue Oct 1 15:34:03 2002 From: developer at invisiblecomputer.com (Jay Prince) Date: Thu Nov 3 14:50:12 2005 Subject: Cocoa Programming Book... In-Reply-To: Message-ID: On Tuesday, October 1, 2002, at 01:11 pm, St?phane Pinel wrote: > Le 1/10/02 21:26, ??Jeff Szuhay?? a ?crit?: > >> ... just arrived from Amazon.com. >> >> Wow! This is one big reference book. Looks like a _lot_ >> of useful stuff in it. I'm glad I have it. >> >> Jeff Sz. > > So mine has to cross the Atlantic to get my office ;-) > I live within 3 miles of Amazon.com and my current status on Oct. 1st is: Items Shipping Soon: Delivery estimate: September 27-September 28 I'm not going to hold my breath, but its annoying that they don't have their act together on this book. From bmackin at mac.com Tue Oct 1 15:54:13 2002 From: bmackin at mac.com (Ben Mackin) Date: Thu Nov 3 14:50:12 2005 Subject: Printing a PDF from my app In-Reply-To: <016e01c4896d$95961ca0$db0a8fd0@cpq> Message-ID: In my app, I created a PDF using ghostscript from a collection of tiff files. Now I want to print this. Is my only option to use the following: + (NSPrintOperation *)printOperationWithView:(NSView *)aView Would I need to draw the PDF to a NSImageView (which is set to the correct page size), and send a print command for each page (cycling though and drawing each page, and then printing the view). It seems like there should be an easier way to print this PDF (or an easier way to draw it to a view) from my app. All this printing stuff is somewhat new to me, so maybe I have missed something. Might it be easier if I had a PS file instead of a PDF? Thanks, Ben From tjroth at mac.com Tue Oct 1 17:45:26 2002 From: tjroth at mac.com (Todd Roth) Date: Thu Nov 3 14:50:12 2005 Subject: NSPopUpButtonCell behavior in NSTableView Message-ID: I have a table with one column that has NSPopupButtonCell as it's cell. I did this by subclassing an NSTableColumn and overiding the -dataCellForRow: method. This was necessary because each of my rows has a different number of items in the popupbutton. I was able to get the cells to show up correctly in the table. But how do I go about updating the table to reflect the selected items in the various popupbutton cells? I've tried setting the action of the cells to a method that will store the selected item index of the popup cell. However, for some reason only the zero index item is being recognized. None of the other items greater than 0 (index) can be selected. What am I missing here? Below is my action method for each popupbuttoncell. -(IBAction)changeSelectedLabel:(id)sender { NSTableColumn *selCol; int selItemIndex, selRow; NSPopUpButtonCell *aCell; selRow=[sender selectedRow]; selCol=[sender tableColumnWithIdentifier:@"address"]; aCell = [selCol dataCellForRow:selRow]; selItemIndex=[aCell indexOfSelectedItem]; NSLog(@"selIndex: %i",selItemIndex); } The output of this method is : selIndex: 0 (regardless of the item I select) Thanks Todd -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1447 bytes Desc: not available Url : /mailman/archive/macosx-dev/attachments/20021001/76932bf7/attachment.bin From kentozier at attbi.com Tue Oct 1 18:07:01 2002 From: kentozier at attbi.com (Ken Tozier) Date: Thu Nov 3 14:50:12 2005 Subject: AppleEvent question Message-ID: <29F6FF93-D5A3-11D6-8696-003065F300E2@attbi.com> I'm working on a utility class to build object specifiers to be used for direct communication with QuarkXPress, and I ran into a roadblock. The version of Quark is old (3.32) and the AppleEvent dictionary was written in the old AETE format. The problem I'm having is figuring how to use the old style four-character event classes, keys and property constants in the new Cocoa classes "NSScriptObjectSpecifier", "NSIndexSpecifier", "NSNameSpecifier" etc... For example, say I want to build an object specifier for page 1 of document 1: I can make the document spec no problem, but I'm stumped on how to make the page spec NSScriptObjectSpecifier *documentSpecifier, *pageSpecifier; documentSpecifier = [[NSIndexSpecifier allocWithZone:[self zone]] initWithContainerClassDescription:nil containerSpecifier:nil key:@"namedDocuments" index:1]; pageSpecifier = [[NSIndexSpecifier allocWithZone:[self zone]] initWithContainerClassDescription:nil <- where the heck am I supposed to get this? containerSpecifier: documentSpecifier key:@"no idea what to put here" <- and this? index:1]; I know the four-char-code for a Quark page ('page') but I don't know where to use it in the new scheme of things. Anyone have any insights? Thanks, Ken -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1948 bytes Desc: not available Url : /mailman/archive/macosx-dev/attachments/20021001/01ee4fd2/attachment.bin From mbartosh at mac.com Tue Oct 1 22:11:01 2002 From: mbartosh at mac.com (Michael Bartosh) Date: Thu Nov 3 14:50:12 2005 Subject: Quartz Extreme Demo @ London In-Reply-To: <9AB23936-3574-11D7-AF41-0030659046EE@intego.com> References: <9AB23936-3574-11D7-AF41-0030659046EE@intego.com> Message-ID: Does anyone know if the quartz extreme demo at london- where you could turn QE off and on? Thx- -- http://www.4am-media.com Mac OS X Consulting and Training Michael Bartosh mbartosh@4am-media.com 303.517.0272 Denver, CO "The surest way to corrupt a youth is to instruct him to hold in higher regard those who think alike than those who think differently." - -- Nietzsche Think Different. From paul at gracion.com Tue Oct 1 23:07:10 2002 From: paul at gracion.com (Paul Collins) Date: Thu Nov 3 14:50:12 2005 Subject: Application launched from daemon crashes in CFMessagePortCreateRunLoopSource Message-ID: <0AC823D2-D5CD-11D6-8C94-000A27DFF798@gracion.com> I have a daemon that runs at root and launches an NSStatusItem menu application after a user logs in. It works fine, except when the daemon has been installed and launched by my installer. In that instance, the launched application crashes during startup in CFMessagePortCreateRunLoopSource(). Once I restart (and the daemon is started by the bootup process, the launched application is fine. When first launched by the installer, my daemon re-launches itself under AuthServices so it gets a parentpid of 1, just as it has when launched at boot. Perhaps there's something wrong with the way I'm launching it. Any suggestions? Paul Collins Gracion Software http://www.gracion.com Here's my launch code: if ((pid = fork()) < 0) return; if (pid == 0) { // is child setuid(loggedInUid); syslog(LOG_INFO, "DIAG: in child[%ld] uid=%lu, euid=%lu, parentID=%ld",getpid(), getuid(), geteuid(), getppid()); closeall(); // close open fd's. Omitting this has no effect on the problem. // set current directory to DTD.app if (chdir([kDTDialerAppPath UTF8String])) SYSLog(LOG_ERR,@"Can't change directory to Dialer.app (%d)", errno); // exec it if (execl("Contents/MacOS/DigiTunnel-Dialer", "DigiTunnel-Dialer", (char *)0)) { SYSLog(LOG_INFO,@"Exec of DigiTunnel-Dialer failed. errno = %d", errno); exit(1); } SYSLog(LOG_INFO,@"execl() impossibly returned"); exit(0); } Here's the crash trace: Exception: EXC_BAD_ACCESS (0x0001) Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000020 Thread 0 Crashed: #0 0x90164afc in CFMessagePortCreateRunLoopSource #1 0x930ccdbc in -[NSApplication _createWakeupPort] #2 0x930c7e40 in -[NSApplication init] #3 0x930c7600 in +[NSApplication sharedApplication] #4 0x930d2504 in NSApplicationMain #5 0x00003f00 in main (main.m:13) #6 0x00003c84 in _start (crt.c:267) #7 0x00003b04 in start -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2933 bytes Desc: not available Url : /mailman/archive/macosx-dev/attachments/20021001/0faaa1e2/attachment.bin From dreamless at attbi.com Tue Oct 1 23:47:16 2002 From: dreamless at attbi.com (Nick Zitzmann) Date: Thu Nov 3 14:50:12 2005 Subject: Application launched from daemon crashes in CFMessagePortCreateRunLoopSource In-Reply-To: <0AC823D2-D5CD-11D6-8C94-000A27DFF798@gracion.com> Message-ID: On Tuesday, October 1, 2002, at 11:06 PM, Paul Collins wrote: > I have a daemon that runs at root and launches an NSStatusItem menu > application after a user logs in. It works fine, except when the > daemon has been installed and launched by my installer. In that > instance, the launched application crashes during startup in > CFMessagePortCreateRunLoopSource(). Once I restart (and the daemon is > started by the bootup process, the launched application is fine. When > first launched by the installer, my daemon re-launches itself under > AuthServices so it gets a parentpid of 1, just as it has when launched > at boot. Did you remember to retain the NSStatusItem when you created it? Status items tend to cause a crash in the run loop if their retain count is at 1 or below. I don't know why, anyone know? Nick Zitzmann ICQ: 22305512 AIM/iChat: dragonsdontsleep Check out my software page: http://dreamless.home.attbi.com/ From kentozier at attbi.com Wed Oct 2 00:46:01 2002 From: kentozier at attbi.com (Ken Tozier) Date: Thu Nov 3 14:50:12 2005 Subject: Palettes that float above someone else's application Message-ID: I'm writing a utility application for use with QuarkXPress and would like to make a palette appear in the foreground whenever a Quark document is activated. Does anyone know if this is possible? Thanks, Ken Tozier From msrednsi at yahoo.es Wed Oct 2 03:41:01 2002 From: msrednsi at yahoo.es (=?ISO-8859-1?Q?Manuel_S=E1nchez?=) Date: Thu Nov 3 14:50:12 2005 Subject: gdb problem on 10.2.1 In-Reply-To: Message-ID: <54D8F2B4-D5F3-11D6-89F7-000A27843D1C@yahoo.es> Thanks, that's the good direction, using start-with-shell corrects the problem. But i'm socked why a newly created network home (afp) gives this problem, the administrator used the default settings. I will continue investigating. El Martes, 1 octubre, 2002, a las 09:27 PM, Matt Watson escribi?: > Sounds like something specific your shell or your shell startup script > or aliases. What happens if you change shells? What if you do: > > (gdb) set start-with-shell 0 > (gdb) r > > matt. > > On Tuesday, October 1, 2002, at 10:05 AM, Manuel S?nchez wrote: > >> After migrating to 10.2.1, installing the July developer tools an all >> updates i have found a problem with gdb: >> >> bash-2.05a$ gdb /Applications/Mail.app/Contents/MacOS/Mail >> GNU gdb 5.1-20020408 (Apple version gdb-231) (Tue Aug 13 21:37:39 GMT >> 2002) >> Copyright 2002 Free Software Foundation, Inc. >> GDB is free software, covered by the GNU General Public License, and >> you are >> welcome to change it and/or distribute copies of it under certain >> conditions. >> Type "show copying" to see the conditions. >> There is absolutely no warranty for GDB. Type "show warranty" for >> details. >> This GDB was configured as "powerpc-apple-macos10". >> Reading symbols for shared libraries .............. done >> (gdb) r >> Starting program: /Applications/Mail.app/Contents/MacOS/Mail >> Cannot exec uid: No such file or directory. >> >> Program exited with code 0177. >> >> This happens with all applications, and only if i use a networked >> user, with its home directory nfs or afp mounted. With a local user, >> gdb works properly. Some idea? >> >> >> Manuel S?nchez >> Nexus Servicios de Informaci?n, S.L. >> Sant Feliu del Llobregat >> Spain >> _______________________________________________________________ >> Yahoo! Messenger >> Nueva versi?n: Webcam, voz, y mucho m?s ?Gratis! Desc?rgalo ya desde >> http://messenger.yahoo.es >> _______________________________________________ >> MacOSX-dev mailing list >> MacOSX-dev@omnigroup.com >> http://www.omnigroup.com/mailman/listinfo/macosx-dev > > _______________________________________________ > MacOSX-dev mailing list > MacOSX-dev@omnigroup.com > http://www.omnigroup.com/mailman/listinfo/macosx-dev > > Manuel S?nchez Nexus Servicios de Informaci?n, S.L. Sant Feliu del Llobregat Spain _______________________________________________________________ Copa del Mundo de la FIFA 2002 El ?nico lugar de Internet con v?deos de los 64 partidos. ?Ap?ntante ya! en http://fifaworldcup.yahoo.com/fc/es/ From arminb at mac.com Wed Oct 2 04:32:03 2002 From: arminb at mac.com (Armin Briegel) Date: Thu Nov 3 14:50:12 2005 Subject: NSMatrix and colored NSButtonCells Message-ID: <79E3F284-D5FA-11D6-88A5-0003936E5096@mac.com> I guess the question has a simple answer but I cannot find it. I seem to going in circles in the documentation. I have a NSMatrix filled with a bunch of NSButtonCells. I managed to get the buttons not to display any Border or background pattern, just the title. However I would like to able to them have a white/grey/color of choice background instead of being transparent. (though the metal background does look cool) Is there a simple way to color the background of a NSButtonCell? Do I have to make my own subclass? I tried using NSTextFieldCell instead, but then the cells would not send an action on a simple only if the field was edited, which I do not want them to be. What I want to have is a Matrix of text cells, where I can set the background color and text and the text's style. it sounds so simple, I must be missing something, am I? Thx Armin =) -- "In theory, there is no difference between theory and practice. But in practice, there is." - Jan L.A. van de Snepscheut From arminb at mac.com Wed Oct 2 05:16:03 2002 From: arminb at mac.com (Armin Briegel) Date: Thu Nov 3 14:50:12 2005 Subject: NSForms and other cells Message-ID: Is there a way to put different cells than NSTextField into a form? Like maybe a popup menu, or even (gasp) a NSTextView? (ok that is not a cell...) Armin =) -- "In theory, there is no difference between theory and practice. But in practice, there is." - Jan L.A. van de Snepscheut From spinel at inadd.com Wed Oct 2 08:42:01 2002 From: spinel at inadd.com (St=?ISO-8859-1?B?6Q==?=phane Pinel) Date: Thu Nov 3 14:50:12 2005 Subject: Cocoa Programming Book... In-Reply-To: Message-ID: Le 2/10/02 0:33, ??Jay Prince?? a ?crit?: > > On Tuesday, October 1, 2002, at 01:11 pm, St?phane Pinel wrote: > >> Le 1/10/02 21:26, ??Jeff Szuhay?? a ?crit?: >> >>> ... just arrived from Amazon.com. >>> >>> Wow! This is one big reference book. Looks like a _lot_ >>> of useful stuff in it. I'm glad I have it. >>> >>> Jeff Sz. >> >> So mine has to cross the Atlantic to get my office ;-) >> > > I live within 3 miles of Amazon.com and my current status on Oct. 1st > is: > > Items Shipping Soon: Delivery estimate: September 27-September 28 > > I'm not going to hold my breath, but its annoying that they don't have > their act together on this book. I just checked my Amazon account and my delivery estimate is: October 22, November 6 !!!! For a book that was announced by Amazon to be available for September 16, I will not even remember that I was ordered this book !! Very bad surprise, and this is my last order using Amazon... -- St?phane Pinel InAdd Paris spinel@inadd.com iChat : s.pinel@mac.com From marc.palluat at wanadoo.fr Wed Oct 2 08:43:01 2002 From: marc.palluat at wanadoo.fr (Marc Palluat de Besset) Date: Thu Nov 3 14:50:12 2005 Subject: NSTextView not updating the shared NSFontPanel Message-ID: <9724D538-D61D-11D6-96E5-000393C49DF8@wanadoo.fr> Hi, I've got two NSTextViews in a window. They both have [tv setUsesFontPanel:YES]. When I click in either views, the NSFontPanel doesn't update. I have spent a hole day trying to figure out what is wrong in my App without success. If i do the same window in a new project, it works fine. I've come to the conclusion that NSTextView's updateFontPanel doesn't work in my app, even if [tv usesFontPanel] returns YES for both NSTextViews. If only I had the source code for that ONE method !!! Can someone help ? Thanks, Marc Marc Palluat de Besset Arboretum -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 601 bytes Desc: not available Url : /mailman/archive/macosx-dev/attachments/20021002/0acae60d/attachment.bin From siracusa at mindspring.com Wed Oct 2 10:07:41 2002 From: siracusa at mindspring.com (John Siracusa) Date: Thu Nov 3 14:50:12 2005 Subject: Building readline 4.3 on 10.2 Message-ID: Has anyone gotten this to work? Make fails for me with a link error: /usr/bin/libtool -dynamic -arch_only `/usr/bin/arch` -install_name /usr/local/lib/libreadline.4.3.dylib -current_version 4.3 -compatibility_version 4 -v -o libreadline.4.3.dylib readline.so vi_mode.so funmap.so keymaps.so parens.so search.so rltty.so complete.so bind.so isearch.so display.so signals.so util.so kill.so undo.so macro.so input.so callback.so terminal.so text.so nls.so misc.so xmalloc.so history.so histexpand.so histfile.so histsearch.so shell.so mbutil.so tilde.so compat.so -lSystem + ld -arch ppc -dylib -dynamic -all_load -force_cpusubtype_ALL -no_arch_warnings -dylib_compatibility_version 4 -dylib_current_version 4.3 -dylib_install_name /usr/local/lib/libreadline.4.3.dylib -ldylib1.o readline.so vi_mode.so funmap.so keymaps.so parens.so search.so rltty.so complete.so bind.so isearch.so display.so signals.so util.so kill.so undo.so macro.so input.so callback.so terminal.so text.so nls.so misc.so xmalloc.so history.so histexpand.so histfile.so histsearch.so shell.so mbutil.so tilde.so compat.so -lSystem -o libreadline.4.3.dylib ld: Undefined symbols: restFP saveFP _tgoto _tputs _tgetent _tgetflag _tgetnum _tgetstr /usr/bin/libtool: internal link edit command failed make[1]: *** [libreadline.4.3.dylib] Error 1 make: [shared] Error 2 (ignored) I've searched the web and Usenet for a fix, but all I can find are vague hints about the unstable branch of Fink. I don't want to use Fink, but I do want to build and install readline. Any suggestions? -John From oogje at mac.com Wed Oct 2 10:12:55 2002 From: oogje at mac.com (Brian Redman) Date: Thu Nov 3 14:50:12 2005 Subject: Building readline 4.3 on 10.2 In-Reply-To: Message-ID: Try adding "-lncurses" to the link line. ber On Wednesday, October 2, 2002, at 01:06 PM, John Siracusa wrote: > Has anyone gotten this to work? Make fails for me with a link error: > > /usr/bin/libtool -dynamic -arch_only `/usr/bin/arch` -install_name > /usr/local/lib/libreadline.4.3.dylib -current_version 4.3 > -compatibility_version 4 -v -o libreadline.4.3.dylib readline.so > vi_mode.so > funmap.so keymaps.so parens.so search.so rltty.so complete.so bind.so > isearch.so display.so signals.so util.so kill.so undo.so macro.so > input.so > callback.so terminal.so text.so nls.so misc.so xmalloc.so history.so > histexpand.so histfile.so histsearch.so shell.so mbutil.so tilde.so > compat.so -lSystem > + ld -arch ppc -dylib -dynamic -all_load -force_cpusubtype_ALL > -no_arch_warnings -dylib_compatibility_version 4 > -dylib_current_version 4.3 > -dylib_install_name /usr/local/lib/libreadline.4.3.dylib -ldylib1.o > readline.so vi_mode.so funmap.so keymaps.so parens.so search.so > rltty.so > complete.so bind.so isearch.so display.so signals.so util.so kill.so > undo.so > macro.so input.so callback.so terminal.so text.so nls.so misc.so > xmalloc.so > history.so histexpand.so histfile.so histsearch.so shell.so mbutil.so > tilde.so compat.so -lSystem -o libreadline.4.3.dylib > ld: Undefined symbols: > restFP > saveFP > _tgoto > _tputs > _tgetent > _tgetflag > _tgetnum > _tgetstr > /usr/bin/libtool: internal link edit command failed > make[1]: *** [libreadline.4.3.dylib] Error 1 > make: [shared] Error 2 (ignored) > > I've searched the web and Usenet for a fix, but all I can find are > vague > hints about the unstable branch of Fink. I don't want to use Fink, > but I do > want to build and install readline. Any suggestions? > > -John > > _______________________________________________ > MacOSX-dev mailing list > MacOSX-dev@omnigroup.com > http://www.omnigroup.com/mailman/listinfo/macosx-dev From siracusa at mindspring.com Wed Oct 2 10:32:02 2002 From: siracusa at mindspring.com (John Siracusa) Date: Thu Nov 3 14:50:12 2005 Subject: Building readline 4.3 on 10.2 In-Reply-To: Message-ID: On 10/2/02 1:11 PM, Brian Redman wrote: > Try adding "-lncurses" to the link line. I added it to the LDFLAGS environment variable since there was no obvious place for it in the Makefile. That didn't help, so I tried adding it to many different places in the Makefile. But that didn't work either, so maybe I haven't found the right place to add it yet... -John From marc.palluat at wanadoo.fr Wed Oct 2 10:37:03 2002 From: marc.palluat at wanadoo.fr (Marc Palluat de Besset) Date: Thu Nov 3 14:50:12 2005 Subject: NSTextView not updating the shared NSFontPanel Message-ID: <67904406-D62D-11D6-96E5-000393C49DF8@wanadoo.fr> Hi again, Just to add that when I say updateFontPanel doesn't work, I mean that NSFontManager's setSelectedFont:isMultiple: doesn't get called. thanks for any help. Marc Marc Palluat de Besset Arboretum > Hi, > > I've got two NSTextViews in a window. They both have [tv > setUsesFontPanel:YES]. When I click in either views, the NSFontPanel > doesn't update. I have spent a hole day trying to figure out what is > wrong in my App without success. If i do the same window in a new > project, it works fine. > > I've come to the conclusion that NSTextView's updateFontPanel doesn't > work in my app, even if [tv usesFontPanel] returns YES for both > NSTextViews. > > If only I had the source code for that ONE method !!! > > Can someone help ? > > Thanks, > > Marc > > > > Marc Palluat de Besset > Arboretum -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 850 bytes Desc: not available Url : /mailman/archive/macosx-dev/attachments/20021002/392672e0/attachment.bin From rpeskin at rlpcon.com Wed Oct 2 10:55:01 2002 From: rpeskin at rlpcon.com (Richard L. Peskin) Date: Thu Nov 3 14:50:12 2005 Subject: Admin authorization Message-ID: What Cocoa classes are available to support a program that requires administrator password authorization. I see these dialog windows requesting admin password in many apps but I can't identify NS class or classes to implement these (other than the usual classes to create the windows and views). thanks, --dick peskin Richard L. Peskin, RLP Consulting, Londonderry, VT http://www.rlpcon.com http://www.caip.rutgers.edu/~peskin -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 480 bytes Desc: not available Url : /mailman/archive/macosx-dev/attachments/20021002/6af0a409/attachment.bin From siracusa at mindspring.com Wed Oct 2 11:06:01 2002 From: siracusa at mindspring.com (John Siracusa) Date: Thu Nov 3 14:50:12 2005 Subject: Building readline 4.3 on 10.2 In-Reply-To: Message-ID: On 10/2/02 1:46 PM, Brian Redman wrote: > At least some of the variables your error message spits out are defined > in /usr/lib/libncurses.*. I didn't check them all > but they look familiar. Yeah, a few look like curses symbols. > When you added -lncurses to LDFLAGS did it (-lncurses) show up in the > error output? That would indicate at least > LDFLAGS was being used. No, it wasn't, but I did try this: > To test the theory that -lncurses is what you need I would grab a copy > of the link line and paste it into the Terminal and add > -lncurses befoe the "-o" at the end. And all I got were complaints about missing files, so I think I ran it in the wrong directory. I also tried this: http://mail.gnu.org/pipermail/bug-bash/2002-August/004991.html With no luck, but it led me to the file "support/shobj-conf" which has this in it: SHLIB_LIBS='-lSystem' which I changed to: SHLIB_LIBS='-lSystem -lncurses' That gave me this error: /usr/bin/libtool -dynamic -arch_only `/usr/bin/arch` -install_name /usr/local/lib/`echo libreadline.4.3.dylib | sed "s:\\(.*\\.[0-9]\\)\\.[0-9]:\\1:"` -current_version 4.3 -compatibility_version 4 -v -o libreadline.4.3.dylib readline.so vi_mode.so funmap.so keymaps.so parens.so search.so rltty.so complete.so bind.so isearch.so display.so signals.so util.so kill.so undo.so macro.so input.so callback.so terminal.so text.so nls.so misc.so xmalloc.so history.so histexpand.so histfile.so histsearch.so shell.so mbutil.so tilde.so compat.so -lSystem -lncurses + ld -arch ppc -dylib -dynamic -all_load -force_cpusubtype_ALL -no_arch_warnings -dylib_compatibility_version 4 -dylib_current_version 4.3 -dylib_install_name /usr/local/lib/libreadline.4.dylib -ldylib1.o readline.so vi_mode.so funmap.so keymaps.so parens.so search.so rltty.so complete.so bind.so isearch.so display.so signals.so util.so kill.so undo.so macro.so input.so callback.so terminal.so text.so nls.so misc.so xmalloc.so history.so histexpand.so histfile.so histsearch.so shell.so mbutil.so tilde.so compat.so -lSystem -lncurses -o libreadline.4.3.dylib ld: warning multiple definitions of symbol _PC terminal.so definition of _PC in section (__DATA,__common) /usr/lib/libncurses.dylib(lib_tputs.o) definition of _PC ld: warning multiple definitions of symbol _BC terminal.so definition of _BC in section (__DATA,__common) /usr/lib/libncurses.dylib(lib_termcap.o) definition of _BC ld: warning multiple definitions of symbol _UP terminal.so definition of _UP in section (__DATA,__common) /usr/lib/libncurses.dylib(lib_termcap.o) definition of _UP ld: Undefined symbols: restFP saveFP /usr/bin/libtool: internal link edit command failed make[1]: *** [libreadline.4.3.dylib] Error 1 make: [shared] Error 2 (ignored) Note that this is the patched version, plus my extra change. Anyway, notice that the curses symbols are gone, but "restFP" and "saveFP" are still undefined. So I went back to the unpatched version, and added only my change that added -lncurses. I got this very similar error: /usr/bin/libtool -dynamic -arch_only `/usr/bin/arch` -install_name /usr/local/lib/libreadline.4.3.dylib -current_version 4.3 -compatibility_version 4 -v -o libreadline.4.3.dylib readline.so vi_mode.so funmap.so keymaps.so parens.so search.so rltty.so complete.so bind.so isearch.so display.so signals.so util.so kill.so undo.so macro.so input.so callback.so terminal.so text.so nls.so misc.so xmalloc.so history.so histexpand.so histfile.so histsearch.so shell.so mbutil.so tilde.so compat.so -lSystem -lncurses + ld -arch ppc -dylib -dynamic -all_load -force_cpusubtype_ALL -no_arch_warnings -dylib_compatibility_version 4 -dylib_current_version 4.3 -dylib_install_name /usr/local/lib/libreadline.4.3.dylib -ldylib1.o readline.so vi_mode.so funmap.so keymaps.so parens.so search.so rltty.so complete.so bind.so isearch.so display.so signals.so util.so kill.so undo.so macro.so input.so callback.so terminal.so text.so nls.so misc.so xmalloc.so history.so histexpand.so histfile.so histsearch.so shell.so mbutil.so tilde.so compat.so -lSystem -lncurses -o libreadline.4.3.dylib ld: warning multiple definitions of symbol _PC terminal.so definition of _PC in section (__DATA,__common) /usr/lib/libncurses.dylib(lib_tputs.o) definition of _PC ld: warning multiple definitions of symbol _BC terminal.so definition of _BC in section (__DATA,__common) /usr/lib/libncurses.dylib(lib_termcap.o) definition of _BC ld: warning multiple definitions of symbol _UP terminal.so definition of _UP in section (__DATA,__common) /usr/lib/libncurses.dylib(lib_termcap.o) definition of _UP ld: Undefined symbols: restFP saveFP /usr/bin/libtool: internal link edit command failed make[1]: *** [libreadline.4.3.dylib] Error 1 make: [shared] Error 2 (ignored) > Can I grab a copy of readline 4.3 from the sameplace you got it (where > was that again?) and look at the problem? ftp://ftp.gnu.org/gnu/readline/readline-4.3.tar.gz Thanks for the help :) -John From epeyton at epicware.com Wed Oct 2 11:10:07 2002 From: epeyton at epicware.com (Eric Peyton) Date: Thu Nov 3 14:50:12 2005 Subject: Admin authorization In-Reply-To: Message-ID: On Wednesday, October 2, 2002, at 12:53 PM, Richard L. Peskin wrote: > What Cocoa classes are available to support a program that requires > administrator password authorization. None. You will need to either a) roll your own or b) use the C APIs in the Security framework in conjunction with your own UI. There are multiple tutorials online for this. Eric > I see these dialog windows requesting admin password in many apps but > I can't identify NS class or classes to implement these (other than > the usual classes to create the windows and views). > thanks, > --dick peskin > > > > > Richard L. Peskin, RLP Consulting, Londonderry, VT > http://www.rlpcon.com > http://www.caip.rutgers.edu/~peskin -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 780 bytes Desc: not available Url : /mailman/archive/macosx-dev/attachments/20021002/825ca179/attachment.bin From oogje at mac.com Wed Oct 2 11:13:18 2002 From: oogje at mac.com (Brian Redman) Date: Thu Nov 3 14:50:12 2005 Subject: Building readline 4.3 on 10.2 In-Reply-To: Message-ID: <8978BA61-D632-11D6-BD6B-00039367011A@mac.com> Well, do you want to build it cleanly or just build it? I ended up taking the ld line it generated, replacing the 'ld' with 'cc' and adding -lncurses to resolve the readFP/saveFP symbols which seem to be defined everywhere in the system libraries. Run this from the shlib directory. You'll get your warnings but I don't know their consequences. ber cc -ldylib1.o readline.so vi_mode.so funmap.so keymaps.so parens.so search.so rltty.so complete.so bind.so isearch.so display.so signals.so util.so kill.so undo.so macro.so input.so callback.so terminal.so text.so nls.so misc.so xmalloc.so history.so histexpand.so histfile.so histsearch.so shell.so mbutil.so tilde.so compat.so -lncurses -lSystem -o libreadline.4.3.dylib On Wednesday, October 2, 2002, at 02:05 PM, John Siracusa wrote: > On 10/2/02 1:46 PM, Brian Redman wrote: >> At least some of the variables your error message spits out are >> defined >> in /usr/lib/libncurses.*. I didn't check them all >> but they look familiar. > > Yeah, a few look like curses symbols. > >> When you added -lncurses to LDFLAGS did it (-lncurses) show up in the >> error output? That would indicate at least >> LDFLAGS was being used. > > No, it wasn't, but I did try this: > >> To test the theory that -lncurses is what you need I would grab a copy >> of the link line and paste it into the Terminal and add >> -lncurses befoe the "-o" at the end. > > And all I got were complaints about missing files, so I think I ran it > in > the wrong directory. > > I also tried this: > > http://mail.gnu.org/pipermail/bug-bash/2002-August/004991.html > > With no luck, but it led me to the file "support/shobj-conf" which has > this > in it: > > SHLIB_LIBS='-lSystem' > > which I changed to: > > SHLIB_LIBS='-lSystem -lncurses' > > That gave me this error: > > /usr/bin/libtool -dynamic -arch_only `/usr/bin/arch` -install_name > /usr/local/lib/`echo libreadline.4.3.dylib | sed > "s:\\(.*\\.[0-9]\\)\\.[0-9]:\\1:"` -current_version 4.3 > -compatibility_version 4 -v -o libreadline.4.3.dylib readline.so > vi_mode.so > funmap.so keymaps.so parens.so search.so rltty.so complete.so bind.so > isearch.so display.so signals.so util.so kill.so undo.so macro.so > input.so > callback.so terminal.so text.so nls.so misc.so xmalloc.so history.so > histexpand.so histfile.so histsearch.so shell.so mbutil.so tilde.so > compat.so -lSystem -lncurses > + ld -arch ppc -dylib -dynamic -all_load -force_cpusubtype_ALL > -no_arch_warnings -dylib_compatibility_version 4 > -dylib_current_version 4.3 > -dylib_install_name /usr/local/lib/libreadline.4.dylib -ldylib1.o > readline.so vi_mode.so funmap.so keymaps.so parens.so search.so > rltty.so > complete.so bind.so isearch.so display.so signals.so util.so kill.so > undo.so > macro.so input.so callback.so terminal.so text.so nls.so misc.so > xmalloc.so > history.so histexpand.so histfile.so histsearch.so shell.so mbutil.so > tilde.so compat.so -lSystem -lncurses -o libreadline.4.3.dylib > ld: warning multiple definitions of symbol _PC > terminal.so definition of _PC in section (__DATA,__common) > /usr/lib/libncurses.dylib(lib_tputs.o) definition of _PC > ld: warning multiple definitions of symbol _BC > terminal.so definition of _BC in section (__DATA,__common) > /usr/lib/libncurses.dylib(lib_termcap.o) definition of _BC > ld: warning multiple definitions of symbol _UP > terminal.so definition of _UP in section (__DATA,__common) > /usr/lib/libncurses.dylib(lib_termcap.o) definition of _UP > ld: Undefined symbols: > restFP > saveFP > /usr/bin/libtool: internal link edit command failed > make[1]: *** [libreadline.4.3.dylib] Error 1 > make: [shared] Error 2 (ignored) > > Note that this is the patched version, plus my extra change. Anyway, > notice > that the curses symbols are gone, but "restFP" and "saveFP" are still > undefined. > > So I went back to the unpatched version, and added only my change that > added > -lncurses. I got this very similar error: > > /usr/bin/libtool -dynamic -arch_only `/usr/bin/arch` -install_name > /usr/local/lib/libreadline.4.3.dylib -current_version 4.3 > -compatibility_version 4 -v -o libreadline.4.3.dylib readline.so > vi_mode.so > funmap.so keymaps.so parens.so search.so rltty.so complete.so bind.so > isearch.so display.so signals.so util.so kill.so undo.so macro.so > input.so > callback.so terminal.so text.so nls.so misc.so xmalloc.so history.so > histexpand.so histfile.so histsearch.so shell.so mbutil.so tilde.so > compat.so -lSystem -lncurses > + ld -arch ppc -dylib -dynamic -all_load -force_cpusubtype_ALL > -no_arch_warnings -dylib_compatibility_version 4 > -dylib_current_version 4.3 > -dylib_install_name /usr/local/lib/libreadline.4.3.dylib -ldylib1.o > readline.so vi_mode.so funmap.so keymaps.so parens.so search.so > rltty.so > complete.so bind.so isearch.so display.so signals.so util.so kill.so > undo.so > macro.so input.so callback.so terminal.so text.so nls.so misc.so > xmalloc.so > history.so histexpand.so histfile.so histsearch.so shell.so mbutil.so > tilde.so compat.so -lSystem -lncurses -o libreadline.4.3.dylib > ld: warning multiple definitions of symbol _PC > terminal.so definition of _PC in section (__DATA,__common) > /usr/lib/libncurses.dylib(lib_tputs.o) definition of _PC > ld: warning multiple definitions of symbol _BC > terminal.so definition of _BC in section (__DATA,__common) > /usr/lib/libncurses.dylib(lib_termcap.o) definition of _BC > ld: warning multiple definitions of symbol _UP > terminal.so definition of _UP in section (__DATA,__common) > /usr/lib/libncurses.dylib(lib_termcap.o) definition of _UP > ld: Undefined symbols: > restFP > saveFP > /usr/bin/libtool: internal link edit command failed > make[1]: *** [libreadline.4.3.dylib] Error 1 > make: [shared] Error 2 (ignored) > >> Can I grab a copy of readline 4.3 from the sameplace you got it (where >> was that again?) and look at the problem? > > ftp://ftp.gnu.org/gnu/readline/readline-4.3.tar.gz > > Thanks for the help :) > > -John > > _______________________________________________ > MacOSX-dev mailing list > MacOSX-dev@omnigroup.com > http://www.omnigroup.com/mailman/listinfo/macosx-dev From chmod007 at mac.com Wed Oct 2 11:18:04 2002 From: chmod007 at mac.com (David Remahl) Date: Thu Nov 3 14:50:12 2005 Subject: Admin authorization In-Reply-To: Message-ID: > What Cocoa classes are available to support a program that requires > administrator password authorization. I see these dialog windows > requesting admin password in many apps but I can't identify NS class or > classes to implement these (other than the usual classes to create the > windows and views). > thanks, > --dick peskin There are currently no public Cocoa interfaces to the authentication. There is a sample here: /Developer/Examples/Foundation/Authenticator I based the authentication code in MacBoot on that sample. You can get the MacBoot code here: http://ittpoi.com/macboot100-source.tar.gz It is my understanding that the main source of documentation of the authentication API's is the header file... / Sincerely, David Remahl From oogje at mac.com Wed Oct 2 11:27:55 2002 From: oogje at mac.com (Brian Redman) Date: Thu Nov 3 14:50:12 2005 Subject: Building readline 4.3 on 10.2 In-Reply-To: Message-ID: <2C148530-D633-11D6-BD6B-00039367011A@mac.com> Sorry, I'm thrashing. My hack isn't effective for a lot of reasons. Never mind... ber From oogje at mac.com Wed Oct 2 13:00:03 2002 From: oogje at mac.com (Brian Redman) Date: Thu Nov 3 14:50:12 2005 Subject: Building readline 4.3 on 10.2 In-Reply-To: Message-ID: <7CA68130-D641-11D6-BD6B-00039367011A@mac.com> I found this in the unix-porting list. It seems to advance the cause. I should have looked there 2 hours ago. This deals with the restFP/saveFP symbols. google failed me. I'm hurt. ber You need to add -lcc_dynamic to list of libs linked. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 349 bytes Desc: not available Url : /mailman/archive/macosx-dev/attachments/20021002/49a7af87/attachment.bin From ckline at rightcode.net Wed Oct 2 13:02:03 2002 From: ckline at rightcode.net (charles kline) Date: Thu Nov 3 14:50:12 2005 Subject: Getting Started In-Reply-To: <200210021903.g92J31f19112@slowbro.omnigroup.com> Message-ID: Hi all, I am a web developer and have some C/C++ experience (nothing very involved), and I am looking to get serious about learning to really program. I am not too sure which direction to go; Java, C++, Objective C, etc. I would appreciate any advise, tips, where to get started kind of stuff. What looks good for the long run? I am looking to offer more advanced services then just ColdFusion, PHP, etc. Thanks Charles From ckline at rightcode.net Wed Oct 2 13:47:01 2002 From: ckline at rightcode.net (charles kline) Date: Thu Nov 3 14:50:12 2005 Subject: Getting Started In-Reply-To: <129B4C40-D646-11D6-86D7-0003938E758A@steltor.com> Message-ID: Ack! Not trolling!! Definitely not trolling! Here is a bit more and may help to clear this question up a bit. I am currently developing web applications using ColdFusion, PHP, ASP, whatever... I have always felt that it would be a HUGE help to actually be able to do some "real" programming. I have had some C/C++ experience, but nothing substantial and nothing my skills are nowhere near a professional level. I want to stay in the web/communications field, but would like to have more to offer then I do. I would love to get into cocoa - just not sure where to start. Java seems really cool, because I can develop on my OS of choice and tweak to work on others. Guess I am just trying to get a sense of what others are doing and where to go for help, etc. Thanks Charles On 10/2/02 4:32 PM, "Martin-Gilles Lavoie" wrote: > > On Mercredi, octobre 2, 2002, at 04:01 PM, charles kline wrote: > >> Hi all, >> >> I am a web developer and have some C/C++ experience (nothing very >> involved), >> and I am looking to get serious about learning to really program. >> >> I am not too sure which direction to go; Java, C++, Objective C, etc. >> >> I would appreciate any advise, tips, where to get started kind of >> stuff. >> What looks good for the long run? I am looking to offer more advanced >> services then just ColdFusion, PHP, etc. > > DUCK and brace yourself for a holly war!!!!!!! > > (Or are you trolling?) > > Here's my take: If you want to develop quickly but be locked-in a > Mac-only dev project, then go for Objective-C. By far the best > language/API I've used thus far (and that's 20 years talking). > > If you want to develop nearly as fast as you would do an Objective-C > project, but have code that's (more or less) multi-platform, go for > Java. > > If you want unmatched execution speed, equally unmatched steep learning > curve but a more open multi-platform code base (except for anything UI > related), go for C/C++/. > > If you actually want to develop CGIs for your web sites, then, by all > means, go for Perl. Consult vast libraries of freely available perl > code as sample code (aka, sites such as cgi-resources.com). > > Though, your question is miss-leading. Are you looking for native > software development, or WEB-based services? > > ______________________________________________________________________ > Martin-Gilles Lavoie > -- ------------------------------------ Charles Kline, President RightCode, Inc. 900 Briggs Road Suite #303 Mount Laurel, NJ 08054 Email: ckline@rightcode.net Phone: 856.608.7908 Fax: 856.439.0154 URL: http://www.rightcode.net From siracusa at mindspring.com Wed Oct 2 14:22:02 2002 From: siracusa at mindspring.com (John Siracusa) Date: Thu Nov 3 14:50:12 2005 Subject: Building readline 4.3 on 10.2 In-Reply-To: <7CA68130-D641-11D6-BD6B-00039367011A@mac.com> Message-ID: On 10/2/02 3:59 PM, Brian Redman wrote: > I found this in the unix-porting list. It seems to advance the cause. I > should have looked there 2 hours ago. This deals with the restFP/saveFP > symbols. google failed me. I'm hurt. Yeah, I was only searching google too...*sigh* > You need to add -lcc_dynamic to list of libs linked. I think I'll post a summary that in the hopes that google will pick up it up for "future generations" ;) Building GNU readline 4.3 on Mac OS X 10.2 Jaguar while avoiding libtool linking errors: 1. Download and expand readline 4.3: wget ftp://ftp.gnu.org/gnu/readline/readline-4.3.tar.gz tar -xzf readline-4.3.tar.gz cd readline-4.3 2. Edit the file "support/shobj-conf" in the "readline-4.3" dir and change line 151 from this: SHLIB_LIBS='-lSystem' to this: SHLIB_LIBS='-lSystem -lncurses -lcc_dynamic' 3. Build as usual: ./configure make make install Thanks for the help! :) -John From finlay at dobbie.net Wed Oct 2 14:35:32 2002 From: finlay at dobbie.net (Finlay Dobbie) Date: Thu Nov 3 14:50:12 2005 Subject: Building readline 4.3 on 10.2 In-Reply-To: Message-ID: <2A3E139A-D64E-11D6-91FC-000502319F17@dobbie.net> On Wednesday, October 2, 2002, at 10:20 pm, John Siracusa wrote: > 2. Edit the file "support/shobj-conf" in the "readline-4.3" dir and > change line 151 from this: > > SHLIB_LIBS='-lSystem' > > to this: > > SHLIB_LIBS='-lSystem -lncurses -lcc_dynamic' -lSystem is implied (everything links against it unless you jump through hoops) and does not need to be specified. -- Finlay From oogje at mac.com Wed Oct 2 15:01:09 2002 From: oogje at mac.com (Brian Redman) Date: Thu Nov 3 14:50:12 2005 Subject: Building readline 4.3 on 10.2 In-Reply-To: <2A3E139A-D64E-11D6-91FC-000502319F17@dobbie.net> Message-ID: <19BA94E0-D652-11D6-BD6B-00039367011A@mac.com> When I tried it without -lSystem I got illegal reference errors for internal variables. Did it build for you? ber On Wednesday, October 2, 2002, at 05:30 PM, Finlay Dobbie wrote: > > On Wednesday, October 2, 2002, at 10:20 pm, John Siracusa wrote: > >> 2. Edit the file "support/shobj-conf" in the "readline-4.3" dir and >> change line 151 from this: >> >> SHLIB_LIBS='-lSystem' >> >> to this: >> >> SHLIB_LIBS='-lSystem -lncurses -lcc_dynamic' > > -lSystem is implied (everything links against it unless you jump > through hoops) and does not need to be specified. > > -- Finlay > > _______________________________________________ > MacOSX-dev mailing list > MacOSX-dev@omnigroup.com > http://www.omnigroup.com/mailman/listinfo/macosx-dev From monroe at criticalpath.com Wed Oct 2 16:13:01 2002 From: monroe at criticalpath.com (Monroe Williams) Date: Thu Nov 3 14:50:12 2005 Subject: Strange problem with pthreads and CodeWarrior Message-ID: I'm working on a mach-o Carbon application built with CodeWarrior 8.2. It links against the System and IOKit frameworks and does a few things with pthreads. If I build the application under Mac OS 10.1.5, it works fine when run on either 10.1.5 or 10.2.1. If I build under 10.2.1 and run on either OS, it crashes in one of my calls to pthread_cond_signal() with an access exception. I am calling pthread_cond_init() on the condition, and the contents of the condition structure (including the opaque part) look the same just before the crash as they did right after the initialization call. Has anyone out there seen a problem like this? I can try to come up with a minimal reproduction case, but I thought I'd ask the list before spending lots more time on it. Thanks, -- monroe ------------------------------------------------------------------------ Monroe Williams monroe@criticalpath.com From max at seelemann.de Wed Oct 2 17:00:36 2002 From: max at seelemann.de (Max Seelemann) Date: Thu Nov 3 14:50:12 2005 Subject: load fresh? Message-ID: Hi I've got an Problem with NSURL / NSURLHandle... I want to load an file from an url, which works good. But I want him to always load it fresh an to not use the cache. If I say don't use the cache, he uses it... If i directly call to loadInForeground he uses the cache... Even with flushCachedData before - no changes?? What do I do wrong?? Can someone help me?? cheers MAX From ploiku at earthlink.net Wed Oct 2 19:04:00 2002 From: ploiku at earthlink.net (Hsu) Date: Thu Nov 3 14:50:12 2005 Subject: Getting Started In-Reply-To: Message-ID: <48587400-D674-11D6-80AE-00039303C450@earthlink.net> It sounds like you are looking for Web Application server programming? You could look at WebObjects (Java)... http://www.apple.com/webobjects/ Karl On Wednesday, October 2, 2002, at 01:01 PM, charles kline wrote: > Hi all, > > I am a web developer and have some C/C++ experience (nothing very > involved), > and I am looking to get serious about learning to really program. > > I am not too sure which direction to go; Java, C++, Objective C, etc. > > I would appreciate any advise, tips, where to get started kind of > stuff. > What looks good for the long run? I am looking to offer more advanced > services then just ColdFusion, PHP, etc. > > Thanks > Charles > > _______________________________________________ > MacOSX-dev mailing list > MacOSX-dev@omnigroup.com > http://www.omnigroup.com/mailman/listinfo/macosx-dev > > -- i am the man in the machine l'homo ex machina Homepage: http://homepage.mac.com/khsu/index.html From sryu at mac.com Wed Oct 2 19:33:01 2002 From: sryu at mac.com (Seungoh Ryu) Date: Thu Nov 3 14:50:12 2005 Subject: synching RTFD data Message-ID: <5FC8022A-D678-11D6-BD09-003065D5D0F6@mac.com> Hi, Is there an efficient way to compare two "rich text data with graphics" (NSMutableAttributedString) and extract the differences? Suppose I start with a textview with some data (text and graphics). Then I make a series of changes (delete here and there, add more characters or pictures). I would like to extract a minimal amount of instructions so that a remote user (who has a duplicate of my original data) can reproduce the changes I made avoiding having to transfer the whole NSTextStorage data. Thanks for any help, Seungoh From rhood2796 at mac.com Wed Oct 2 23:19:30 2002 From: rhood2796 at mac.com (Richard Hood) Date: Thu Nov 3 14:50:12 2005 Subject: modal dialogs in cocoa Message-ID: I realize that apple discourages the use of traditional modal dialogs in cocoa. however, sheets do not cascade. therefore if you have multiple levels of modal input, sheets wont do. I've redesigned my app as much as I can but I still need one level of modal input/dialog (dialogs actually) to make it work. however, because apple mislikes modal dialogs in cocoa, there is no sample code as to how to implement them. can anyone point me to some source that will illustrate for me how I can implement a modal dialog in IB/PB? failing that, can someone run me through the process of creating the nib and the code (calling, institution, invocation and implementation) to make a modal dialog work in cocoa? I will gladly use sheets where I can but I still need to fall back on more traditional UI where they fail. TIA, -- Richard Hood __________________________________________ rhood@fullspectrumsw.com __ Senior Software Engineer Full Spectrum Software (617)965-0029 x115 From mirko.viviani at rccr.cremona.it Thu Oct 3 01:56:01 2002 From: mirko.viviani at rccr.cremona.it (mirko.viviani@rccr.cremona.it) Date: Thu Nov 3 14:50:12 2005 Subject: Log4OC. Message-ID: <200210030855.g938tRS24593@omnigroup.com> Ciao! The guys at IBN-italy and I are writing the Log4OC framework, an ObjC implementation of the well known Log4j logging api. Actually we have planned the following features: o XML and pluggable configuration. o Hierarchical loggers. o Multiple appenders (console, file, ...) with filters. o Custom levels. o Support for loadable bundles to extend the framework. o Log formatters. o Object renderers to display custom objects. (not only strings) This framework will be available for MacOSX and GNUStep and will be released with a LGPL licence. If no particular problem arises, the copyright could be passed to GNU for permanent inclusion of this framework in the GNUStep project. Any ideas and comments are really appreciated. A snapshot of the library will be shortly be uploaded to ibn.sourceforge.net -- Bye, Mirko From eyredler at netvision.net.il Thu Oct 3 04:06:00 2002 From: eyredler at netvision.net.il (Eyal Redler) Date: Thu Nov 3 14:50:12 2005 Subject: modal dialogs in cocoa In-Reply-To: Message-ID: Hi Richard, Modal dialogs are very easy. Here's how I did it. Hope it'll help you. This is a generic class for a dialog that prompts the user for a string. I made the nib like that: 1. New empty nib 2. Dragged a panel 3. Put an OK and Cancel buttons and a text field 4. Dragged the header of ERModalStringGetterPanel into IB 5. Changed the class of "file owner" to ERModalStringGetterPanel The class code looks like this: @interface ERModalStringGetterPanel : NSObject { IBOutlet id panel; IBOutlet id name; BOOL finishedOK; } - (NSString*)runPanelWithNibName:(NSString*)nibName initialString:(NSString*)initialString; - (IBAction)ok:(id)sender; - (IBAction)cancel:(id)sender; @end @implementation ERModalStringGetterPanel - (NSString*)runPanelWithNibName:(NSString*)nibName initialString:(NSString*)initialString { finishedOK=NO; if (!panel) [NSBundle loadNibNamed:nibName owner:self]; [name setStringValue:initialString]; [name selectText:nil]; [panel makeKeyAndOrderFront:nil]; [NSApp runModalForWindow:panel]; [panel orderOut:nil]; if (finishedOK) return [name stringValue]; else return nil; } - (void)dealloc { [panel release]; [super dealloc]; } - (IBAction)ok:(id)sender { finishedOK=YES; [NSApp stopModal]; } - (IBAction)cancel:(id)sender { finishedOK=NO; [NSApp stopModal]; } @end The driving code looks like this: ERModalStringGetterPanel* myPanel; NSString* intialName; NSString* new Name; intialName=[self foo]; myPanel=[[ERModalStringGetterPanel alloc] init]; styleName=[myPanel runPanelWithNibName:@"myNibName" initialString:intialName]; [myPanel release]; The key point here is [NSApp runModalForWindow:]. Hope it helps, Eyal On Thursday, October 3, 2002, at 09:18 AM, Richard Hood wrote: > I realize that apple discourages the use of traditional modal dialogs > in cocoa. however, sheets do not cascade. therefore if you have > multiple levels of modal input, sheets wont do. I've redesigned my > app as much as I can but I still need one level of modal input/dialog > (dialogs actually) to make it work. > > however, because apple mislikes modal dialogs in cocoa, there is no > sample code as to how to implement them. can anyone point me to some > source that will illustrate for me how I can implement a modal dialog > in IB/PB? failing that, can someone run me through the process of > creating the nib and the code (calling, institution, invocation and > implementation) to make a modal dialog work in cocoa? > > I will gladly use sheets where I can but I still need to fall back on > more traditional UI where they fail. > > TIA, > -- > > Richard Hood Eyal Redler ======================================================== RedleX Software for what's left of us General inquiries: redlex@redlers.com Support: support@redlers.com Beta: beta@redlers.com http://www.redlers.com From ckline at rightcode.net Thu Oct 3 05:16:01 2002 From: ckline at rightcode.net (charles kline) Date: Thu Nov 3 14:50:12 2005 Subject: Getting Started In-Reply-To: <48587400-D674-11D6-80AE-00039303C450@earthlink.net> Message-ID: Thanks for the reply... Everyone. What I have discovered after looking at links that were sent to me was that I could actually learn java and cocoa at the same time since cocoa apps can be written in Java :) This is something I did not know. And it looks like this will also open a path for me to getting into WebObjects... Thank you ALL for your pointers. Now... Back to coding :) - Charles On 10/2/02 10:03 PM, "Hsu" wrote: > It sounds like you are looking for Web Application server programming? > > You could look at WebObjects (Java)... http://www.apple.com/webobjects/ > > Karl > > On Wednesday, October 2, 2002, at 01:01 PM, charles kline wrote: > >> Hi all, >> >> I am a web developer and have some C/C++ experience (nothing very >> involved), >> and I am looking to get serious about learning to really program. >> >> I am not too sure which direction to go; Java, C++, Objective C, etc. >> >> I would appreciate any advise, tips, where to get started kind of >> stuff. >> What looks good for the long run? I am looking to offer more advanced >> services then just ColdFusion, PHP, etc. >> >> Thanks >> Charles >> >> _______________________________________________ >> MacOSX-dev mailing list >> MacOSX-dev@omnigroup.com >> http://www.omnigroup.com/mailman/listinfo/macosx-dev >> >> > -- > > i am the man in the machine > l'homo ex machina > > Homepage: > http://homepage.mac.com/khsu/index.html > -- ------------------------------------ Charles Kline, President RightCode, Inc. 900 Briggs Road Suite #303 Mount Laurel, NJ 08054 Email: ckline@rightcode.net Phone: 856.608.7908 Fax: 856.439.0154 URL: http://www.rightcode.net From kpreid at attglobal.net Thu Oct 3 06:26:03 2002 From: kpreid at attglobal.net (Kevin Reid) Date: Thu Nov 3 14:50:12 2005 Subject: Framework locations Message-ID: <1fjfzbk.18fcvnu168llz4M%kpreid@attglobal.net> I've been using the "@executable_path/../Frameworks" install path to allow my frameworks to be included in my application bundle. It has been sufficient until now. However, I now want to create an Interface Builder palette in order to more conveniently place custom views in my nib files. I haven't been able to make the palette work - the system fails to find my frameworks when I load the palette in IB. Copying the frameworks into the palette bundle didn't work. * Is there any solution other than using a /Library/Frameworks install path, which would lose the benefit of drag-[un]install for end users? * Are there any improvements in the framework-location situation in 10.2? -- Kevin Reid From fablosso at yahoo.com Thu Oct 3 06:47:01 2002 From: fablosso at yahoo.com (Fabio Lossotti) Date: Thu Nov 3 14:50:12 2005 Subject: destroying a NSZone Message-ID: <20021003134606.49964.qmail@web21205.mail.yahoo.com> The 10.2 release notes indicate that NSRecycleZone() does nothing, and that to "destroy a zone completely, without regard for any memory blocks it contains still being in use, you must use the provided function in the operating system API". Does anyone know how a NSZone is destroyed via the operating system API? Here is the full text of the note in the Foundation release notes: The NSZone implementation has been moved onto the zone functionality available from the underlying operating system, and so one can now create new distinct zones and allocate memory from them. NSZoneCreate() used to simply return the default zone always. The NSRecycleZone() still has its documented behavior of not freeing zone memory in use, and right now all of a zone's memory is considered to be in use, so this method does nothing. To destroy a zone completely, without regard for any memory blocks it contains still being in use, you must use the provided function in the operating system API. An executable must be compiled on or after 10.2 for this change to take effect. __________________________________________________ Do you Yahoo!? New DSL Internet Access from SBC & Yahoo! http://sbc.yahoo.com From rcerny at dataline.cz Thu Oct 3 07:23:01 2002 From: rcerny at dataline.cz (Robert Cerny) Date: Thu Nov 3 14:50:12 2005 Subject: including headers Message-ID: <89609B7E-D6DB-11D6-A942-0003935401DA@dataline.cz> Hi folks, I'm sure I'm missing something general here. I went through archives and found a partial solution for my problem but... I downloaded freetype build using fink. It installed nice and it's located at /sw/include/freetype2 Now, I want use libfreetype.dylib in my Cocoa project. Following instructions from an archive, I added the library to Frameworks group and added #import I tried to compile the project. I got of course a bunch of errors. I created using ln -s symbolic link to /usr/include. It helped of course a lot. Unfortunately, one of the headers has #include This line produces an error again.I tried everything, putting symbolic links on every place, but nothing helped. Any ideas? Thanks Robert From epeyton at epicware.com Thu Oct 3 07:29:01 2002 From: epeyton at epicware.com (Eric Peyton) Date: Thu Nov 3 14:50:12 2005 Subject: including headers In-Reply-To: <89609B7E-D6DB-11D6-A942-0003935401DA@dataline.cz> Message-ID: <5A2867C2-D6DC-11D6-8182-003065CBD1E2@epicware.com> How about adding the directory /sw/include/freetype2 to your Header search path? Open your target in project builder, click on the Search Paths entry and add a search path for the Headers and Libraries sections. Eric On Thursday, October 3, 2002, at 09:22 AM, Robert Cerny wrote: > Hi folks, > I'm sure I'm missing something general here. I went through archives > and found a partial solution for my problem but... > I downloaded freetype build using fink. It installed nice and it's > located at /sw/include/freetype2 > Now, I want use libfreetype.dylib in my Cocoa project. Following > instructions from an archive, I added the library to Frameworks group > and added #import > > I tried to compile the project. I got of course a bunch of errors. I > created using ln -s symbolic link to /usr/include. It helped of course > a lot. Unfortunately, one of the headers has > #include > This line produces an error again.I tried everything, putting symbolic > links on every place, but nothing helped. Any ideas? > > Thanks > Robert > > _______________________________________________ > MacOSX-dev mailing list > MacOSX-dev@omnigroup.com > http://www.omnigroup.com/mailman/listinfo/macosx-dev From markm at tyrell.com Thu Oct 3 08:21:01 2002 From: markm at tyrell.com (Mark F. Murphy) Date: Thu Nov 3 14:50:12 2005 Subject: Cocoa Programming Book... In-Reply-To: References: Message-ID: At 5:41 PM +0200 10/2/02, St?phane Pinel wrote: >I just checked my Amazon account and my delivery estimate is: October 22, >November 6 !!!! For a book that was announced by Amazon to be available for >September 16, I will not even remember that I was ordered this book !! >Very bad surprise, and this is my last order using Amazon... My order date was Aug 30th.... and it was shipped on Sep 30th.... via the long, slow Brown truck across the country. mark -- --------------------------------------------------------------------------- Mark F. Murphy, Director Software Development Tyrell Software Corp --------------------------------------------------------------------------- From ryanstevens at mac.com Thu Oct 3 08:28:05 2002 From: ryanstevens at mac.com (Ryan Stevens) Date: Thu Nov 3 14:50:12 2005 Subject: animated gif troubles In-Reply-To: Message-ID: Since I didn't get an answer I've been hunting for one... I figured out that it was easy enough to export the .gif(s) with Preview as .tiff. This keeps all of the .gif's frames in a single file - cool, big plus. Now, to animate, I grab the -representations, run through and create an image per rep., put that into an array and release the original when I'm done. Then, I can animate with a timer and use about 15% of the CPU instead of 60%+. I know I'm most likely not animating at the right speed (defined in the gif) but for me, this is ok. The only thing that's bothering me now is that I can't just load the .gif and use -representations. I tried using -TIFFRepresentation on a gif to get a .tiff with all of the .gif's frames but that's a bust... { NSImage *tmp = [[NSImage alloc] initWithData: gifData ]; NSData *tmpD = [tmp TIFFRepresentation]; NSLog(@"gif reps: %@", [tmp representations]); [tmp release]; // create a new image with the tiff data.. tmp = [[NSImage alloc] initWithData:tmpD]; NSLog(@"tiff reps: %@", [tmp representations]); [tmp release]; } If anyone knows a better way to do this, I'm all ears. I really need to be able to load a gif and display it. If I have to get the frames of the gif and animate it manually, that's ok...I just can't seem to get them. Converting to tiffs before hand is a pain that I'd rather not have to deal with. Thanks! On Monday, September 30, 2002, at 03:41 PM, Ryan Stevens wrote: > I'm trying to display an animated gif. NSImageView doesn't work - > NSImage only supports the still-type gifs (odd). > > NSMovieView almost works but displays it scaled and uses up mass > amounts of the CPU. > > Are there any alt. ways to do this? Yes, I searched the archive, I > found the NSMovieView suggestion there. ;-) -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2051 bytes Desc: not available Url : /mailman/archive/macosx-dev/attachments/20021003/500750c0/attachment.bin From wjtregaskis at students.latrobe.edu.au Thu Oct 3 08:36:02 2002 From: wjtregaskis at students.latrobe.edu.au (Wade Tregaskis) Date: Thu Nov 3 14:50:12 2005 Subject: bug in getline function (C++ istream) In-Reply-To: <37C45C64-CC4A-11D6-98E9-000393122612@physics.uc.edu> Message-ID: <708D694A-D6E5-11D6-80C8-00306583D14E@students.latrobe.edu.au> Has there been any update - i.e. bug fixes - on this old issue? I've just hit it in Jaguar and it's driving me insane. I can't easily use any workarounds, because the code I'm writing is supposed to be platform independent and clean. Is installing a newer version of gcc myself a viable option (e.g. is it going to break anything like ProjectBuilder etc)? Wade Tregaskis, http://www.2100software.com/ From msrednsi at yahoo.es Thu Oct 3 08:37:07 2002 From: msrednsi at yahoo.es (=?ISO-8859-1?Q?Manuel_S=E1nchez?=) Date: Thu Nov 3 14:50:12 2005 Subject: Framework locations In-Reply-To: <1fjfzbk.18fcvnu168llz4M%kpreid@attglobal.net> Message-ID: You can continue using @executable_path/../Frameworks, and you can install in your development machine your frameworks in /Library/Frameworks. That's how the framework search work when you launch apps: First the /Library/Frameworks /Network/Library/Frameworks /System/Lisbrary/Frameworks Conclussion, use @executable_path/../Frameworks, build your app, and install your frameworks in /Library/Frameworks. IB when loading the palette, will load the Library ones. All these goodies are related with the dynamic linker, see: man dyld Hope this helps El Jueves, 3 octubre, 2002, a las 03:25 PM, Kevin Reid escribi?: > I've been using the "@executable_path/../Frameworks" install path to > allow my frameworks to be included in my application bundle. It has > been > sufficient until now. > > However, I now want to create an Interface Builder palette in order to > more conveniently place custom views in my nib files. > > I haven't been able to make the palette work - the system fails to find > my frameworks when I load the palette in IB. Copying the frameworks > into > the palette bundle didn't work. > > * Is there any solution other than using a /Library/Frameworks install > path, which would lose the benefit of drag-[un]install for end users? > > * Are there any improvements in the framework-location situation in > 10.2? > > -- > Kevin Reid > _______________________________________________ > MacOSX-dev mailing list > MacOSX-dev@omnigroup.com > http://www.omnigroup.com/mailman/listinfo/macosx-dev > > Manuel S?nchez Nexus Servicios de Informaci?n, S.L. Sant Feliu del Llobregat Spain _______________________________________________________________ Copa del Mundo de la FIFA 2002 El ?nico lugar de Internet con v?deos de los 64 partidos. ?Ap?ntante ya! en http://fifaworldcup.yahoo.com/fc/es/ From rcerny at dataline.cz Thu Oct 3 08:49:01 2002 From: rcerny at dataline.cz (Robert Cerny) Date: Thu Nov 3 14:50:12 2005 Subject: including headers In-Reply-To: <5A2867C2-D6DC-11D6-8182-003065CBD1E2@epicware.com> Message-ID: <8E25E393-D6E7-11D6-A942-0003935401DA@dataline.cz> Yeah, this part was missing. But it doesn't work either... I removed the symbolic links from /usr/include. Is it right? Do I need to add the headers to my project? Eric, could you be so kind and show me the exact steps to getting it to work? Thanks Robert On Thursday, Oct 3, 2002, at 16:28 Europe/Prague, Eric Peyton wrote: > How about adding the directory /sw/include/freetype2 to your Header > search path? > > Open your target in project builder, click on the Search Paths entry > and add a search path for the Headers and Libraries sections. > > Eric > > On Thursday, October 3, 2002, at 09:22 AM, Robert Cerny wrote: > >> Hi folks, >> I'm sure I'm missing something general here. I went through archives >> and found a partial solution for my problem but... >> I downloaded freetype build using fink. It installed nice and it's >> located at /sw/include/freetype2 >> Now, I want use libfreetype.dylib in my Cocoa project. Following >> instructions from an archive, I added the library to Frameworks >> group and added #import >> >> I tried to compile the project. I got of course a bunch of errors. I >> created using ln -s symbolic link to /usr/include. It helped of >> course a lot. Unfortunately, one of the headers has >> #include >> This line produces an error again.I tried everything, putting >> symbolic links on every place, but nothing helped. Any ideas? >> >> Thanks >> Robert >> >> _______________________________________________ >> MacOSX-dev mailing list >> MacOSX-dev@omnigroup.com >> http://www.omnigroup.com/mailman/listinfo/macosx-dev > From tjw at omnigroup.com Thu Oct 3 09:15:01 2002 From: tjw at omnigroup.com (Timothy J. Wood) Date: Thu Nov 3 14:50:12 2005 Subject: destroying a NSZone In-Reply-To: <20021003134606.49964.qmail@web21205.mail.yahoo.com> Message-ID: <22609992-D6EB-11D6-85EA-0003938E4E3C@omnigroup.com> Look at ... this has all the low level zone APIs. Since 10.1 (I think), malloc_zone_t has been the same as a NSZone * (I don't think these are unified with CFAllocatorRef, but I'm not sure on that one). -tim On Thursday, October 3, 2002, at 06:46 AM, Fabio Lossotti wrote: > The 10.2 release notes indicate that NSRecycleZone() does nothing, and > that to "destroy a zone completely, without regard for any memory > blocks it contains still being in use, you must use the provided > function in the operating system API". > > Does anyone know how a NSZone is destroyed via the operating system > API? From embassociates at qwest.net Thu Oct 3 10:37:01 2002 From: embassociates at qwest.net (Erik M. Buck) Date: Thu Nov 3 14:50:12 2005 Subject: Example subclass of NSTextContainer References: <22609992-D6EB-11D6-85EA-0003938E4E3C@omnigroup.com> Message-ID: <001101c26b03$51dff1a0$0101a8c0@BLACK> Does anyone know of a publicly available example subclass of NSTextContainer for use laying out text around an irregular shape ? From sanguish at digifix.com Thu Oct 3 11:09:01 2002 From: sanguish at digifix.com (Scott Anguish) Date: Thu Nov 3 14:50:12 2005 Subject: Cocoa Programming Book... In-Reply-To: Message-ID: <1D051E1A-D6FB-11D6-B59C-000393120A7C@digifix.com> On Thursday, October 3, 2002, at 08:19 AM, Mark F. Murphy wrote: > At 5:41 PM +0200 10/2/02, St?phane Pinel wrote: >> I just checked my Amazon account and my delivery estimate is: October >> 22, >> November 6 !!!! For a book that was announced by Amazon to be >> available for >> September 16, I will not even remember that I was ordered this book !! >> Very bad surprise, and this is my last order using Amazon... > > My order date was Aug 30th.... and it was shipped on Sep 30th.... via > the long, slow Brown truck across the country. > Amazon just doesn't seem to have their act together on this one. There were 46 backorders through Stepwise (the affiliate deal, where Stepwise gets some money for each thing sold.. every little bit helps). They've still not all shipped. They seem to go out in 5-10 copy per day chunks. I swear there are monks in a back room writing them out longhand. From hayne at sympatico.ca Thu Oct 3 12:20:36 2002 From: hayne at sympatico.ca (Cameron Hayne) Date: Thu Nov 3 14:50:12 2005 Subject: bug in getline function (C++ istream) In-Reply-To: <708D694A-D6E5-11D6-80C8-00306583D14E@students.latrobe.edu.au> Message-ID: <20021003191939.HIJX26615.tomts6-srv.bellnexxia.net@[192.168.1.101]> On 3/10/02 11:33 am, "Wade Tregaskis" wrote: > I can't easily use > any workarounds, because the code I'm writing is supposed to be > platform independent and clean. Maybe you can use something like #ifdef __APPLE__ to insert your work-around. Probably best to also make it conditional on the PB version so that your work-around automatically goes away with the next Developer Tools release (when this 'getline' bug is supposed to be fixed.) -- Cameron Hayne (hayne@sympatico.ca) Hayne of Tintagel From vonleigh at illusionart.com Thu Oct 3 13:46:04 2002 From: vonleigh at illusionart.com (Vonleigh Simmons) Date: Thu Nov 3 14:50:12 2005 Subject: Cocoa Programming Book... Message-ID: <9A04B13E-D711-11D6-99BA-000A2791B6EC@illusionart.com> > Amazon just doesn't seem to have their act together on this one. I'm just wondering if we can get a good review of the book as soon as some of you get it. Most importantly, is it a must have like Aaron Hillegass' book? If so I'll save up my pennies and purchase eventually. Vonleigh Simmons [v?nlei] San Francisco, CA From embassociates at qwest.net Thu Oct 3 15:01:01 2002 From: embassociates at qwest.net (Erik M. Buck) Date: Thu Nov 3 14:50:12 2005 Subject: Cocoa Programming Book... References: <1D051E1A-D6FB-11D6-B59C-000393120A7C@digifix.com> Message-ID: <001101c26b28$3f2701a0$0101a8c0@BLACK> For those interested in information about "Cocoa Programming", The table of contents, example code, and more is available at www.cocoaprogramming.net. Regarding Amazon: I have tried to determine exactly what the problem is with Amazon. They are shipping copies of the book very slowly even though their site claims the book usually ships within 24 hours. My understanding from the publisher is that there are warehouses full of this book and there should not be any supply or distribution problem. The Amazon ranking for the book cycles between 1500 and 6000 indicating that they are taking lots of orders. They just don't seem to be shipping them. Regarding bookstores: Several chain stores including Borders and Barnes & Noble state that the book is a special order item that is usually available within 2-3 days. I would like to see the book on store shelves for obvious reasons. From my point of view, having "Cocoa Programming" right next to Aaron Hillegass's "Cocoa Programming for Mac OS X" would be ideal. I enjoyed the Hillegass book and think it is an excellent introduction to Cocoa. We tried to make sure "Cocoa Programming" fills the voids left by introductory books and takes intermediate Cocoa programmers to the next level with more philosophy, detail, examples, and explanations of why as well as how. From our point of view, we have the luxury of 1272 pages to cover a very broad subject area with lots of detail in some cases. "Cocoa Programming" is not an introductory book, but by necessity, it covers a lot of introductory material. It also covers a lot of advanced material and topics such as application design, the Objective-C runtime, and 4+ chapters on drawing. Regarding the nature of the book: The"tone" of "Cocoa Programming" was dictated by our editors and does not reflect any of the authors' individual styles. For example, I naturally write and speak in a less formal way. On the plus side, the just the facts approach to the book has yielded a very high information density. The book is very long and could have been much longer, but rest assured that we tried to make every page count. Regarding reviews: I am already working on another Cocoa related book for another publisher. The other authors have new projects as well. Any constructive feedback that we can get (positive or negative) will help us with future projects. Positive reviews submitted to Amazon or other forums will help make sure the book is available on store shelves. I expected more marketing from SAMs, but in the absence of that, word of mouth can do a great deal to promote the book. The people who select books to keep in inventory on store shelves base their decisions on marketing material and past sales. I am told sales are good, so half of the equation is already in place. From ElvenDream at aol.com Thu Oct 3 15:30:01 2002 From: ElvenDream at aol.com (ElvenDream@aol.com) Date: Thu Nov 3 14:50:12 2005 Subject: Selector callback Message-ID: How do I create a selector callback? I need one that I can have the user save their unsaved docs with closeAllDocumentsWithDelegate in my Deligate's implementation of applicationShouldTerminate. closeAllDocumentsWithDelegate takes a selector but I can't find docs anywhere on how I instantiate one. -J -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman/archive/macosx-dev/attachments/20021003/ebc11294/attachment.html From cbreak at gmx.net Thu Oct 3 15:51:00 2002 From: cbreak at gmx.net (G.Roethlin) Date: Thu Nov 3 14:50:12 2005 Subject: Selector callback In-Reply-To: Message-ID: <8E18F08C-D722-11D6-B64C-003065C384DA@gmx.net> One way ist to write @selector(amMethod:withArgument) which will be replaced with the selector at compile time (I think) cbreak Am Freitag den, 4. Oktober 2002, um 00:28, schrieb ElvenDream@aol.com: > How do I create a selector callback? I need one that I can have the user > save their unsaved docs with closeAllDocumentsWithDelegate in my Deligate' > s implementation of applicationShouldTerminate.? > closeAllDocumentsWithDelegate takes a selector but I can't find docs > anywhere on how I instantiate one. > > -J > From chuck at benatong.com Thu Oct 3 16:00:01 2002 From: chuck at benatong.com (Charles Bennett) Date: Thu Nov 3 14:50:12 2005 Subject: Cocoa Programming Book... (mini review) References: <9A04B13E-D711-11D6-99BA-000A2791B6EC@illusionart.com> Message-ID: <3D9CCBDA.3000301@benatong.com> Oh Yes, it is absolutely a must have. This book is not about teaching you to program it is about teaching you to take full, and I mean full, advantage of Cocoa. If you have a handle on Cocoa programming this one book will pretty much complete your understanding of it. It covers the additions that Objective-C adds to the C language in about 27 pages. If you already know C, that is all you need to get going. If you don't already know C this book will not teach it to you. Consider that, counting the index, the book is 1245 pages of small print and has none of the usual fluff that eats up half the book, it is a lot of valuable information; all meat and very little fat. It has in-depth sample code for about everything you are going to need or want to do with OS X. Just as important, it not only tells you what you can do, but what you should do and explains why. Most programmers never learn a particular tool or object until they want to use it in a program. This book has example code for about anything you would want to try and clear explanations of what you must know to use it. Having a working example with source is just the ticket when you are learning a new object. I wish I was getting a kick back for saying this, but if you want to program for OS X, drop what you are doing and order this book. If you are already an old hand at programming OS X, I'll bet there is more than a few things in this book that you don't know. Now a word about the Hillegass Cocoa for OS X book. I have both books and in my opinion this one totally eliminates the need for the Hillegass title. Just so you know, I have used the Hillegass Cocoa for OS X book since it was published and learned a lot from it but because of the depth and breadth of A,B,&Y's Cocoa Programming I do not think both books are necessary. Final note: Eric, Scott, and Don have been around Objective-C and the roots of Cocoa since almost the beginning of the NeXTSTEP days. They pretty much think in Objective-C and the example code reflects this. If I had to complain, it's that my old eyes must have the reading glasses attached to use this book. However if the print was any bigger this tome would have been to unwieldy to handle. Both Thumbs up :-) Chuck Vonleigh Simmons wrote: >> Amazon just doesn't seem to have their act together on this one. > > > I'm just wondering if we can get a good review of the book as soon > as some of you get it. Most importantly, is it a must have like Aaron > Hillegass' book? If so I'll save up my pennies and purchase eventually. > > > Vonleigh Simmons [v?nlei] > San Francisco, CA > > > _______________________________________________ > MacOSX-dev mailing list > MacOSX-dev@omnigroup.com > http://www.omnigroup.com/mailman/listinfo/macosx-dev -- UPS Management software for OS X http://www.powerguardian.com From marksteinberg at textiletech.com Thu Oct 3 17:54:02 2002 From: marksteinberg at textiletech.com (Mark Steinberg) Date: Thu Nov 3 14:50:12 2005 Subject: Cocoa Programming Book... In-Reply-To: <1D051E1A-D6FB-11D6-B59C-000393120A7C@digifix.com> Message-ID: I got mine a couple of days ago here in NC. Maybe it helped that I ordered it along with Monsters Inc. ;-) It is a great book. After working my way through the Hillegass book, then working on some real software I was in desperate need of a more heavy weight book and reference. This book seems to cover it all. I'm about 30% of the way through it although I've skimmed the whole thing. IMHO it's well written and very complete. I'm learning some things the correct way that I though I already understood. Other parts are giving me a whole new repertoire to use on my next great app. Of course I have a criticism: I wish it had been two separate books that shipped together. The things just so damn big and heavy. Thanks for the great resource guys! Mark On Thursday, October 3, 2002, at 02:08 PM, Scott Anguish wrote: > > On Thursday, October 3, 2002, at 08:19 AM, Mark F. Murphy wrote: > >> At 5:41 PM +0200 10/2/02, St?phane Pinel wrote: >>> I just checked my Amazon account and my delivery estimate is: >>> October 22, >>> November 6 !!!! For a book that was announced by Amazon to be >>> available for >>> September 16, I will not even remember that I was ordered this book >>> !! >>> Very bad surprise, and this is my last order using Amazon... >> >> My order date was Aug 30th.... and it was shipped on Sep 30th.... via >> the long, slow Brown truck across the country. >> > > Amazon just doesn't seem to have their act together on this one. > There were 46 backorders through Stepwise (the affiliate deal, where > Stepwise gets some money for each thing sold.. every little bit > helps). > > They've still not all shipped. They seem to go out in 5-10 copy per > day chunks. > > I swear there are monks in a back room writing them out longhand. > > > _______________________________________________ > MacOSX-dev mailing list > MacOSX-dev@omnigroup.com > http://www.omnigroup.com/mailman/listinfo/macosx-dev > > -- Mark Steinberg Textile Technologies LLC http://www.textiletech.com From don at misckit.com Thu Oct 3 19:47:01 2002 From: don at misckit.com (Don Yacktman) Date: Thu Nov 3 14:50:12 2005 Subject: Cocoa Programming Book... In-Reply-To: Message-ID: <7851850E-D743-11D6-9AE4-003065432DC4@misckit.com> On Thursday, October 3, 2002, at 06:53 PM, Mark Steinberg wrote: > Of course I have a criticism: > I wish it had been two separate books that shipped together. The > things just so damn big and heavy. Unfortunately Sams wasn't interested in a 2-3 volume set. We did suggest the idea to them. The other thing is that if we had been allowed to split it up, we probably could have written even more material. As it is, there are things that were in the original outline that didn't make it into the book for space reasons. (Believe it or not!) Still, I'm quite pleased with the final product on the whole. > Thanks for the great resource guys! You're welcome! One of my personal goals with this project was to "create the book I wish I had when I was starting out". Hopefully that translates into a really good resource for the Cocoa community. I just hope that using all my past 2+ years' free time on the book instead of the Mac OS X version of the MiscKit was the right choice as far as a way to help the community. I couldn't do both so I tried to pick what I thought would be most helpful. Of course, now I'm working on the kit in my spare time...what little I have...so the kit is no longer in 'pining for the fiords' mode. And now that the book is out, I figure that the community has matured to the point where something like the MiscKit would work better anyway, so I think the timing is probably good in that respect. -- Later, Don Yacktman don@misckit.com From dunham at mac.com Thu Oct 3 19:55:01 2002 From: dunham at mac.com (David Dunham) Date: Thu Nov 3 14:50:13 2005 Subject: [Biz] Mailing list for support In-Reply-To: <55096F64-AE1B-11D6-8FE5-0003938C646E@mac.com> Message-ID: <99DAF7D2-D744-11D6-A729-003065C13422@mac.com> I'd like to set up a mailing list to support some software I'm about to release (much as our host does for their software). I'm asking for recommendations as to how to do this. [I'm leaning towards YahooGroups because (1) I'm on several lists and they seem to work well enough; (2) I don't really want the traffic on my server if I can avoid it. On the down side, I don't really like their registration.] David Dunham A Sharp david@a-sharp.com Voice/Fax: 206 783 7404 http://a-sharp.com "People seem to misinterpret complexity as sophistication" -- Niklaus Wirth From andrew at rwts.com.au Thu Oct 3 20:27:00 2002 From: andrew at rwts.com.au (Andrew Yager) Date: Thu Nov 3 14:50:13 2005 Subject: [Biz] Mailing list for support In-Reply-To: <99DAF7D2-D744-11D6-A729-003065C13422@mac.com> Message-ID: Yahoo Groups would not be one of my favored options because of the advertising placed on e-mail sent, and how poorly it renders normally. If you really don't want to host it yourself... There are a number of list servers out on the web - but I haven't been really looking as I now do our list serving using Majordomo on our web server... It comes down to if you want to pay for it or not. If you don't want to pay, then using yahoo groups is probably a good way to go - but if you are happy to pay then I'd strongly suggest looking for other alternatives... Andrew On 4/10/02 12:54 PM, "David Dunham" wrote: > I'd like to set up a mailing list to support some software I'm about to > release (much as our host does for their software). I'm asking for > recommendations as to how to do this. > > [I'm leaning towards YahooGroups because (1) I'm on several lists and > they seem to work well enough; (2) I don't really want the traffic on > my server if I can avoid it. On the down side, I don't really like > their registration.] > > David Dunham A Sharp david@a-sharp.com > Voice/Fax: 206 783 7404 http://a-sharp.com > "People seem to misinterpret complexity as sophistication" -- Niklaus > Wirth > > _______________________________________________ > MacOSX-dev mailing list > MacOSX-dev@omnigroup.com > http://www.omnigroup.com/mailman/listinfo/macosx-dev > ___________________ Andrew Yager Real World Technology Solutions Real People, Real SolUtions (tm) ph: (02) 9945 2567 fax: (02) 9945 2566 mob: 0405 15 2568 http://www.rwts.com.au/ _________________________ From mikevann at qwest.net Thu Oct 3 22:56:02 2002 From: mikevann at qwest.net (Mike Vannorsdel) Date: Thu Nov 3 14:50:13 2005 Subject: Thread IDs? In-Reply-To: <15F98674-D75B-11D6-89E1-00306544D642@mac.com> Message-ID: I'm in kernel mode. Through testing, it appears using the thread_shuttle struct is quite reliable for what I need. On Thursday, October 3, 2002, at 11:35 PM, Justin C. Walker wrote: > You're still not being clear. Is this kernel mode operation? If you > are concerned with user-mode issues, you can't cause a deadlock this > way (AFAIK). That's why we want to understand what "in a system call" > means. If you're concerned about existing code that implements system > calls, then user-mode thread issues are not likely to cause deadlocks. > If you're introducing new system calls, that's another issue. > > Read Jim's message again. > > The thread_shuttle is pretty stable, as I understand it (and only of > value in the kernel), but without some salient details, it's hard to > tell. From jim.kitchen at shaw.ca Thu Oct 3 23:01:03 2002 From: jim.kitchen at shaw.ca (jim kitchen) Date: Thu Nov 3 14:50:13 2005 Subject: How Do You Store a Dictionary Within a Dictionary and, Properly Use Multiple Controllers? Message-ID: I wonder if someone could point me in the right direction, to determine the correct code for two programming questions that I have regarding the storage of table data and dictionaries. I believe these questions are similar in nature, so please bear with me while I try to explain what I would like to do in my application... Currently I have an application with two "Tab Views" and, this application has a single controller, which controls a tableView and other input data, tied to a Dictionary. The original tableView contains a single column, so when I click on an item in the tableView, the application's fields are populated for that item. For those that are familiar with this MVC design, this application emulates the "Travel Advisor" application as outlined in the "Learning Cocoa" book published by O'Reilly. (This Learning Cocoa application gave me the idea for the application I am working on). All of the data retrieved, controlled and displayed by the first controller, resides within the first Tab. I would now like to create an identical controller, that does everything the first controller does and, place this second controller and, all of it's associated tasks within the second Tab. The application is being designed to handle more than just two Tabs, so there would be one controller for each Tab at the end of the design. The first question I have is as follows: How do I create a master or, primary controller, to control two or more subordinate controllers, that do their own thing and, still manage to store each controller's data in the same storage file, as if they were individual applications on my HD? I really do not want to create a document based application, where several windows can be opened to do, what I believe can be done in one window, with several Tabs, unless someone tells me that a document based application is the only way to do this type of application. Would the correct answer be, to have the master, or primary controller have a dictionary that contained the dictionaries from each subordinate controller? I do not know how to do this, therefore I ask the question and, again I do not know if this is the correct approach to the solution. Again, all I would like to do, is have a controller kick into gear when I activate a Tab on the main window and, react and store the data accordingly, for the data that is associated with that Tab. The second formal question I have, using the "Travel Advisor" application design again as the design base, is how do I store data within a second table and, have this second table present the information on the screen, when a user clicks on an "Country" item in the first table of the application? In a small corner of my application, under the umbrella of the original controller for that particular Tab, I would like to be able to enter data into four text fields, have these four pieces of data stored as a record and displayed in four columns within a second table. There will be multiple entries, therefore the second table design. I would then like to have the second table use it's own Dictionary and be able to use it's own add, delete, next, previous and clear "record" actions; then have this data retrieved and displayed within the second table, when a user clicks on the "Countries" item in the original table of the application. (That is, when the user activates the "handleTVClick" in the original controller). I hope that someone can assist me in this endeavour and, and have the patience toindicate the coding mechanics required to accomplish this task. I can not at this time see the proper coding structure to marry these items together. Again, thank you for your patience and, the time you took to read this request. jim k From mikevann at qwest.net Thu Oct 3 23:03:05 2002 From: mikevann at qwest.net (Mike Vannorsdel) Date: Thu Nov 3 14:50:13 2005 Subject: [SORRY]Thread IDs? In-Reply-To: Message-ID: Sorry, wrong list. My apologies. On Thursday, October 3, 2002, at 11:55 PM, Mike Vannorsdel wrote: > I'm in kernel mode. Through testing, it appears using the > thread_shuttle struct is quite reliable for what I need. > > > On Thursday, October 3, 2002, at 11:35 PM, Justin C. Walker wrote: > >> You're still not being clear. Is this kernel mode operation? If you >> are concerned with user-mode issues, you can't cause a deadlock this >> way (AFAIK). That's why we want to understand what "in a system >> call" means. If you're concerned about existing code that implements >> system calls, then user-mode thread issues are not likely to cause >> deadlocks. If you're introducing new system calls, that's another >> issue. >> >> Read Jim's message again. >> >> The thread_shuttle is pretty stable, as I understand it (and only of >> value in the kernel), but without some salient details, it's hard to >> tell. From stupidfish23 at mac.com Fri Oct 4 00:16:01 2002 From: stupidfish23 at mac.com (=?ISO-8859-1?Q?Benj=E1min_Sal=E1nki?=) Date: Thu Nov 3 14:50:13 2005 Subject: getting the path of an NSDocumentBased App's current window contents Message-ID: <1ED3B5D0-D769-11D6-815F-003065BB04BA@mac.com> Hi! What would be the best way to get the path of the file one window currently displays? I tried calling [self fileName] from within my NSDocument object, but that returned a null pointer. [self displayName] returns Untitled. Thanks, Ben From steve at dekorte.com Fri Oct 4 00:23:01 2002 From: steve at dekorte.com (Steve Dekorte) Date: Thu Nov 3 14:50:13 2005 Subject: Menu bar item sample code Message-ID: <19225763-D76A-11D6-ACB2-000393ACB27C@dekorte.com> Is there any sample code out there for Menu bar items? Steve From brian at classicalguitar.net Fri Oct 4 03:33:01 2002 From: brian at classicalguitar.net (Brian Bergstrand) Date: Thu Nov 3 14:50:13 2005 Subject: Menu bar item sample code In-Reply-To: <19225763-D76A-11D6-ACB2-000393ACB27C@dekorte.com> Message-ID: <39C1D46A-D784-11D6-B5DD-0003930A674E@classicalguitar.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Friday, October 4, 2002, at 02:22 AM, Steve Dekorte wrote: > > Is there any sample code out there for Menu bar items? > > Steve > If you Menu Extras as opposed to NSStatusItems (which are really background apps), then check out the following. HTH. Brian Bergstrand PGP Key ID: 0xB6C7B6A2 I have come to the conclusion that politics are too serious a matter to be left to the politicians. - Charles De Gaulle -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (Darwin) iD8DBQE9nW2yedHYW7bHtqIRApaXAKCRQcB6sr7bFUs+u0ntm9oRgTSu+gCg2wCU rj7yR3n4U0ZEDzi8OG8y4oY= =t+X6 -----END PGP SIGNATURE----- From izidor.jerebic at siol.net Fri Oct 4 03:35:01 2002 From: izidor.jerebic at siol.net (Izidor Jerebic) Date: Thu Nov 3 14:50:13 2005 Subject: saving a subset of file package with NSDocument Message-ID: <075A4B36-D785-11D6-9FDF-003065717ABE@siol.net> Hello! I have an application, which works with a document, which is a directory (package), containing various files. My application modifies only one specific file in directory, but uses one other too (as a template). Other applications may modify that template file, so I cannot read the whole directory and write it out on save, only one particular data file may be written, others should be preserved (e.g. in "Save As" they should just be copied to new directory). It seems that I need to override both - (BOOL)writeToFile:(NSString *)fileName ofType:(NSString *)type and - (BOOL)writeToFile:(NSString *)fullDocumentPath ofType:(NSString *)documentTypeName originalFile:(NSString *)fullOriginalDocumentPath saveOperation:(NSSaveOperationType)saveOperationType But how can I obtain the other files in -writeToFile:ofType: ? Should I read them from my document's path? Always? Is this method ever going to be called if I override the second one (which I will certainly do) ? It is not clear to me, what is the relationship between those two methods and in what contexts the first one is called. Documentation says nothing about this. Can anyone help me clear these ambiguities? izidor From kirby132 at hotmail.com Fri Oct 4 06:16:28 2002 From: kirby132 at hotmail.com (Kevin Bohan) Date: Thu Nov 3 14:50:13 2005 Subject: Creating a CFString with the date is the user's Short Date format? Message-ID: Hi, I am using CoreFoundation in a daemon that can shows user notifications using CFUserNotificationCreate. I want part of the message to include the current date and time. However, I want the date and time to be displayed in the message formatted to match the user's selected date and time format, not just a format I choose in a template string that I have hard-coded into the software. I have looked in CFString.h and CFDate.h and I can format a string, and in CFDate.h I can produce a CFDateRef for the current date, but how do I tie the two together to produce a CFStringRef than contains the date in the user's format? Regards, Kirby _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com From jleno at criticalpath.com Fri Oct 4 06:21:01 2002 From: jleno at criticalpath.com (Jim Leno) Date: Thu Nov 3 14:50:13 2005 Subject: Multipage pdf and NSImage Message-ID: I've got a simple app that is trying to load a pdf file and display it in an NSImageView, which is inside a scrolling view. I'm calling initWithConentsOfFile when I create the NSImage, and this works fine except that it seems to only load the first page of the pdf. How do I get it to load the entire file so that I can then scroll and see all of the contents? Thanks. From izidor.jerebic at siol.net Fri Oct 4 08:07:01 2002 From: izidor.jerebic at siol.net (Izidor Jerebic) Date: Thu Nov 3 14:50:13 2005 Subject: LSOpenFromURLSpec() returned 1000 ??? Message-ID: <17190E56-D7AB-11D6-A488-003065717ABE@siol.net> Hello! Can somebody enlighten me, please? I am trying to have a file package (directory), which besides internal data files also contains files which can be edited by other applications. But when I try to open other files in file package via double-click or in Terminal with 'cd' and 'open', I get errors like: [Cube:~/Documents/First.dPositionBuilder] izidor% open -a dPosition ./Template.dPosition 2002-10-04 16:50:31.086 open[411] LSOpenFromURLSpec() returned 1000 for application dPosition path /Users/izidor/Documents/First.dPositionBuilder/Template.dPosition. 2002-10-04 16:50:31.088 open[411] Couldn't open file: /Users/izidor/Documents/First.dPositionBuilder/Template.dPosition When I drag this file ( xxx/Template.dPosition) to the Open panel of appropriate application, the Open panel closes, and the following appears in the log: 2002-10-04 16:43:01.300 dPosition[401] loadFileWrapperRepresentation:ofType: must be overridden if your document deals with file packages. How can I persuade MacOSX to do what is told and not be too smart for its own good? It really annoys me when computer prevents me from doing something :-( And where the hell is this LS* stuff documented? izidor -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1307 bytes Desc: not available Url : /mailman/archive/macosx-dev/attachments/20021004/7a5797c7/attachment.bin From jmdisher at student.math.uwaterloo.ca Fri Oct 4 08:36:00 2002 From: jmdisher at student.math.uwaterloo.ca (Jeff Disher) Date: Thu Nov 3 14:50:13 2005 Subject: Multipage pdf and NSImage In-Reply-To: Message-ID: I haven't done it myself but you could try setCurrentPage: from NSPDFImageRep: http://developer.apple.com/techpubs/macosx/Cocoa/Reference/ ApplicationKit/ObjC_classic/Classes/NSPDFImageRep.html#//apple_ref/occ/ instm/NSPDFImageRep/setCurrentPage: Hope that helps, Jeff. On Friday, October 4, 2002, at 09:20 AM, Jim Leno wrote: > I've got a simple app that is trying to load a pdf file and display it > in an > NSImageView, which is inside a scrolling view. I'm calling > initWithConentsOfFile when I create the NSImage, and this works fine > except > that it seems to only load the first page of the pdf. How do I get it > to > load the entire file so that I can then scroll and see all of the > contents? > > Thanks. > > _______________________________________________ > MacOSX-dev mailing list > MacOSX-dev@omnigroup.com > http://www.omnigroup.com/mailman/listinfo/macosx-dev > > Jeff Disher President and Lead Developer of Spectral Class Spectral Class: Shedding Light on Innovation http://www.spectralclass.com/ -------------- next part -------------- A non-text attachment was scrubbed... Name: Jeff Disher.vcf Type: text/directory Size: 340 bytes Desc: not available Url : /mailman/archive/macosx-dev/attachments/20021004/989f7e85/JeffDisher.bin -------------- next part -------------- From andrew at zamler-carhart.com Fri Oct 4 09:47:02 2002 From: andrew at zamler-carhart.com (Andrew Zamler-Carhart) Date: Thu Nov 3 14:50:13 2005 Subject: How Do You Store a Dictionary Within a Dictionary and, Properly Use Multiple Controllers? In-Reply-To: Message-ID: Jim, > How do I create a master or, primary controller, to control two or more > subordinate controllers, that do their own thing and, still manage to > store > each controller's data in the same storage file, as if they were > individual > applications on my HD? It's perfectly reasonable to break up one big controller into several smaller controllers. Let's suppose that the contents of your two tabs are identical in function. This will allow the controllers for the two tabs to be two instances of the same class. We'll call your classes MasterController and TabController. Your MasterController should have pointers to the tabControllers like this: IBOutlet TabController *tabOneController; IBOutlet TabController *tabTwoController; It might also be useful to have a pointer to the MasterController from each TabController: IBOutlet MasterController *masterController; Now, read the header files for these two classes into your nib file. You'll want to instantiate one MasterController object and two TabController objects. For clarity, double-click the names of the two TabController objects in the Instances tab and give them meaningful names. Now, you'll need to wire up the controllers to each other. Control-drag back and forth between each TabController and the MasterController. Then, make sure that the interface in each tab is wired up to the appropriate TabController. This usage pattern demonstrates code ideal code reuse -- you don't want to define two classes to be identical! But let's say that your tab controllers are nearly identical but not quite. You can define an abstract superclass TabController that you don't actually instantiate in IB, and then have TabOneController and TabTwoController that subclass TabController and only contain the differences. For example, if tab one has an extra text field and tab two has an extra image view, just add outlets for these objects in the subclasses. (Alternatively, you could use one class that has all the outlets you could need, and then you just wouldn't wire up the outlets you don't need on a given tab.) > I really do not want to create a document based application, where > several > windows can be opened to do, what I believe can be done in one window, > with > several Tabs, unless someone tells me that a document based > application is > the only way to do this type of application. The project I'm working on opens and saves documents, but because I want my program to be a one-window app I didn't make a document based project. Instead, you'll need to create methods for opening, saving, and reverting the document and wire up those menu items to your custom methods. This really isn't very hard; just read the docs for NSOpenPanel and NSSavePanel. > The second formal question I have, using the "Travel Advisor" > application > design again as the design base, is how do I store data within a second > table and, have this second table present the information on the > screen, > when a user clicks on an "Country" item in the first table of the > application? I'm not really sure I understand your question, but if the issue is making the table view show up when a country is clicked on and not show up if a country is not clicked on, you could try using a tabless NSTabView. Put the table on one tab and whatever else on the other tab, and programmatically switch tabs when you want to switch the interface. The user will never know that there is a tab view there. > In a small corner of my application, under the umbrella of the original > controller for that particular Tab, I would like to be able to enter > data > into four text fields, have these four pieces of data stored as a > record and > displayed in four columns within a second table. There will be > multiple > entries, therefore the second table design. I would then like to have > the > second table use it's own Dictionary and be able to use it's own add, > delete, next, previous and clear "record" actions; then have this data > retrieved and displayed within the second table, when a user clicks on > the > "Countries" item in the original table of the application. (That is, > when > the user activates the "handleTVClick" in the original controller). You can do what you're describing. The main table contains an NSArray of Country objects. Each Country can then contain an NSArray of NSDictionaries. It sounds to me like you're designing a relational database. Apple has put a lot of effort into developing the Enterprise Objects Framework component of WebObjects for this purpose. :-) By the way, it's often more useful to post several short questions rather than one big question. That way people who feel that they can help you with one question are more likely to respond. Andrew From andrew at zamler-carhart.com Fri Oct 4 11:27:01 2002 From: andrew at zamler-carhart.com (Andrew Zamler-Carhart) Date: Thu Nov 3 14:50:13 2005 Subject: Component Manager error Message-ID: Dear List, Whenever I run my program, I get the following error: > ## Component Manager: attempting to find symbols in a component alias > of type (regR/carP/x!bt) That's Greek to me. It started appearing just recently, but I haven't made any recent code changes. Interestingly enough, it does not seem to affect the operation of my program. A google search turned up a few instances of other programs having the error, but no solutions. Any leads? Thanks, Andrew From marquedej at mac.com Fri Oct 4 13:32:01 2002 From: marquedej at mac.com (Mark de Jong) Date: Thu Nov 3 14:50:13 2005 Subject: [Q] Assertion failure in -[NSThemeFrame lockFocus] Message-ID: <583AC540-D7D8-11D6-AD88-003065B89C78@mac.com> Every-so-often I get this assertion failure: 2002-10-04 13:20:18.462 myProgram[15196] *** Assertion failure in -[NSThemeFrame lockFocus], AppKit.subproj/NSView.m:2343 This is coming from a window created in its own NSThread. Is it a problem having a window run in its own thread? Sometimes the window operates fine. Other times, it gets this assertion. All it contains is an informative progress bar that is updated as the thread does its work. Thanks, in advance, for any suggestions you might have, -- Mark From ploiku at earthlink.net Fri Oct 4 16:32:01 2002 From: ploiku at earthlink.net (Hsu) Date: Thu Nov 3 14:50:13 2005 Subject: LSOpenFromURLSpec() returned 1000 ??? In-Reply-To: <17190E56-D7AB-11D6-A488-003065717ABE@siol.net> Message-ID: <5A42A402-D7F1-11D6-80AE-00039303C450@earthlink.net> LaunchServices.h Karl On Friday, October 4, 2002, at 08:08 AM, Izidor Jerebic wrote: > Hello! > > Can somebody enlighten me, please? > > I am trying to have a file package (directory), which besides internal > data files also contains files which can be edited by other > applications. > > But when I try to open other files in file package via double-click or > in Terminal with 'cd' and 'open', I get errors like: > > [Cube:~/Documents/First.dPositionBuilder] izidor% open -a dPosition > ./Template.dPosition > 2002-10-04 16:50:31.086 open[411] LSOpenFromURLSpec() returned 1000 > for application dPosition path > /Users/izidor/Documents/First.dPositionBuilder/Template.dPosition. > 2002-10-04 16:50:31.088 open[411] Couldn't open file: > /Users/izidor/Documents/First.dPositionBuilder/Template.dPosition > > When I drag this file ( xxx/Template.dPosition) to the Open panel of > appropriate application, the Open panel closes, and the following > appears in the log: > 2002-10-04 16:43:01.300 dPosition[401] > loadFileWrapperRepresentation:ofType: must be overridden if your > document deals with file packages. > > How can I persuade MacOSX to do what is told and not be too smart for > its own good? It really annoys me when computer prevents me from doing > something :-( > > And where the hell is this LS* stuff documented? > > izidor > -- It's time to talk, the hacker said, of many things Of bits and bytes and multicast, Of HTTP and Strings, On why the adaptors poll so much And more performance wins. Homepage: http://homepage.mac.com/khsu/index.html -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1654 bytes Desc: not available Url : /mailman/archive/macosx-dev/attachments/20021004/2b4fb7cf/attachment.bin From dreamless at attbi.com Fri Oct 4 19:27:00 2002 From: dreamless at attbi.com (Nick Zitzmann) Date: Thu Nov 3 14:50:13 2005 Subject: Menu bar item sample code In-Reply-To: <19225763-D76A-11D6-ACB2-000393ACB27C@dekorte.com> Message-ID: On Friday, October 4, 2002, at 12:22 AM, Steve Dekorte wrote: > Is there any sample code out there for Menu bar items? Well, there are two "menu bar item" types out there, NSStatusItem and NSMenuExtra. Both require OS X 10.1 or later, IIRC. I can't answer the question directly for NSStatusItems, but I'll tell you what you need to do: 1. In your class declaration, declare an NSStatusItem. 2. If your application has no actual user front end, then look at the Info.plist setup and set NSBGOnly to 1. That's a string containing only "1". 3. You must initialize it after the main nib is loaded, so if your status item is a background only application, applicationDidFinishLaunching: will do. Putting it in awakeFromNib: should also work. So do this, where "MyStatusItem" is an NSStatusItem, "MyMenu" is an NSMenu, "MyIcon" is an NSImage, and the latter two have already been initialized: MyStatusItem = [[[NSStatusBar systemStatusBar] statusItemWithLength:NSVariableStatusItemLength] retain]; [MyStatusItem setMenu:MyMenu]; [MyStatusItem setHighlightMode:YES]; // if this is not set, your menu will not highlight when clicked [MyStatusItem setImage:MyIcon]; // you do have an icon, right? Make **sure** it is retained, even if you declared it in the class! For some weird reason, I've found that NSStatusItems with a retain count of 1 or less may get thrown away, which causes the program to crash. That's all. If you want to change the icon, call [MyStatusItem setImage:something] again. To get rid of it, first call [[NSStatusBar systemStatusBar] removeStatusItem:MyStatusItem] and then [MyStatusItem release]. It will also go away when your application terminates. NSMenuExtras are somewhat different, and they're not yet supported by Apple. You can try it, but you may silently invoke the wrath of Apple, and 10.2 users will have a little trouble running your menu extra. I made my menu bar item program an NSStatusItem only until Apple officially opens up the NSMenuExtra API. Still, if you need sample code, take a look at this project: Nick Zitzmann ICQ: 22305512 AIM/iChat: dragonsdontsleep Check out my software page: http://dreamless.home.attbi.com/ From timcoffman at mac.com Fri Oct 4 20:17:01 2002 From: timcoffman at mac.com (Tim Coffman) Date: Thu Nov 3 14:50:13 2005 Subject: Breakpoints stopped working with 10.2 Project Builder? Message-ID: I installed the Dev Tools bundled with Jaguar over my installation from 10.1. I opened my project in Project Builder, updating it for the new version. Now, breakpoints have stopped working. I inserted a Debugger() call, which does cause the debugger to break. Breakpoints by clicking in the right-hand margin of my source code do not cause a break. I cleared all my breakpoints. I cleaned all my targets. What else can I try? - Tim From calhounm at mac.com Fri Oct 4 23:38:01 2002 From: calhounm at mac.com (Matthew Calhoun) Date: Thu Nov 3 14:50:13 2005 Subject: iTune Sample Plug problems Message-ID: <1A277070-D82D-11D6-8040-0003930EBF00@mac.com> Jared McIntyre wrote: > I have a little free time and thought I'd release the old UltimateVU > plugin for iTunes plus a bunch of enhancements that never made it to > the public Macast release. I'm trying to build the iTunes sample > plugin from the SDK and I'm having problems getting iTunes to > recognize the bundle. I'm on OS 10.2.1 with the latest PB. and > iTunes. I've tried building using GCC 2.95, but that wasn't the > issue. Has anyone been able to get this to work lately? I had a copy of the iTunes sample plugin that was built with the old Project Builder sitting around, so I diff -r'ed it against the same thing built with PB 2.0.1. The only difference, aside from the version and location of the plist DTD's, is a PkgInfo file containing the line "hvplhook". It's in the Contents folder of the old version and is not present in the new version. The hvpl part is the bundle's type attribute, and hook is the creator code that associates the plugin with iTunes. According to the new developer documentation, "use of the PkgInfo file is deprecated and is no longer required for bundles. You may still include this file in your bundles, but type and creator information should also be stored in the bundle's Info.plist file." So, Project Builder is now putting the type and creator codes only in Info.plist, but it seems iTunes is still looking for this information in PkgInfo. Just manually adding a PkgInfo file with "hvplhook" in it to the bundle's Contents folder seems to make iTunes (and the Finder) think it's a plugin again. There's probably also a setting in Project Builder that would make it put PkgInfo in the bundle again, but I don't know it. Ultimately, though, I think it's something Apple will have to fix. Take care, Matt From izidor.jerebic at siol.net Sat Oct 5 00:24:01 2002 From: izidor.jerebic at siol.net (Izidor Jerebic) Date: Thu Nov 3 14:50:13 2005 Subject: LSOpenFromURLSpec() returned 1000 ??? In-Reply-To: <5A42A402-D7F1-11D6-80AE-00039303C450@earthlink.net> Message-ID: <786A54F1-D833-11D6-8EC8-003065717ABE@siol.net> Hi! I appreciate your good intentions, but this file does not even contain string 1000, and it says nothing about file packages or its policy about discovering applications for given files... So, is there some more info or are we just stuck with undocumented, haphazard behaviour? It seems this part of OSX also does not understand symlinks, oh well :-( izidor On Saturday, Oct 5, 2002, at 01:31 Europe/Ljubljana, Hsu wrote: > LaunchServices.h > > Karl > > On Friday, October 4, 2002, at 08:08 AM, Izidor Jerebic wrote: > >> Hello! >> >> Can somebody enlighten me, please? >> >> I am trying to have a file package (directory), which besides >> internal data files also contains files which can be edited by other >> applications. >> >> But when I try to open other files in file package via double-click >> or in Terminal with 'cd' and 'open', I get errors like: >> >> [Cube:~/Documents/First.dPositionBuilder] izidor% open -a dPosition >> ./Template.dPosition >> 2002-10-04 16:50:31.086 open[411] LSOpenFromURLSpec() returned 1000 >> for application dPosition path >> /Users/izidor/Documents/First.dPositionBuilder/Template.dPosition. >> 2002-10-04 16:50:31.088 open[411] Couldn't open file: >> /Users/izidor/Documents/First.dPositionBuilder/Template.dPosition >> >> When I drag this file ( xxx/Template.dPosition) to the Open panel of >> appropriate application, the Open panel closes, and the following >> appears in the log: >> 2002-10-04 16:43:01.300 dPosition[401] >> loadFileWrapperRepresentation:ofType: must be overridden if your >> document deals with file packages. >> >> How can I persuade MacOSX to do what is told and not be too smart for >> its own good? It really annoys me when computer prevents me from >> doing something :-( >> >> And where the hell is this LS* stuff documented? >> >> izidor >> > -- > > It's time to talk, the hacker said, of many things > Of bits and bytes and multicast, > Of HTTP and Strings, > On why the adaptors poll so much > And more performance wins. > > Homepage: > http://homepage.mac.com/khsu/index.html > -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2108 bytes Desc: not available Url : /mailman/archive/macosx-dev/attachments/20021005/b3d42913/attachment.bin From izidor.jerebic at siol.net Sat Oct 5 01:13:01 2002 From: izidor.jerebic at siol.net (Izidor Jerebic) Date: Thu Nov 3 14:50:13 2005 Subject: LSOpenFromURLSpec() returned 1000 ??? In-Reply-To: <786A54F1-D833-11D6-8EC8-003065717ABE@siol.net> Message-ID: <606422AB-D83A-11D6-8EC8-003065717ABE@siol.net> Hello! For the benefit of some other poor soul with similar problems: I have discovered that these problems occur ONLY when the application is not in the /Applications folder, but somewhere else (and symlinked subfolder of /Applicatins does NOT count as being in /Applications!). If the app is in /Applications, everything works, except you cannot open the document in file-package with double-click in the Finder (error 1000), but you need to drag the document to the application icon. If application is not in /Applications, but is in the Dock, then documents that do not reside in file-packages can be opened with double-click in Finder, and the ones within file-packages cannot. No documents (within or not within file-packages) can be opened with Terminal and 'open' or by [NSWorkspace openFile:] method... What an uncosistent mess, and fully undocumented at that! Looks like a code-review or rewrite would be in order for this stuff... izidor >> On Friday, October 4, 2002, at 08:08 AM, Izidor Jerebic wrote: >> >>> Hello! >>> >>> Can somebody enlighten me, please? >>> >>> I am trying to have a file package (directory), which besides >>> internal data files also contains files which can be edited by other >>> applications. >>> >>> But when I try to open other files in file package via double-click >>> or in Terminal with 'cd' and 'open', I get errors like: >>> >>> [Cube:~/Documents/First.dPositionBuilder] izidor% open -a dPosition >>> ./Template.dPosition >>> 2002-10-04 16:50:31.086 open[411] LSOpenFromURLSpec() returned 1000 >>> for application dPosition path >>> /Users/izidor/Documents/First.dPositionBuilder/Template.dPosition. >>> 2002-10-04 16:50:31.088 open[411] Couldn't open file: >>> /Users/izidor/Documents/First.dPositionBuilder/Template.dPosition >>> >>> When I drag this file ( xxx/Template.dPosition) to the Open panel of >>> appropriate application, the Open panel closes, and the following >>> appears in the log: >>> 2002-10-04 16:43:01.300 dPosition[401] >>> loadFileWrapperRepresentation:ofType: must be overridden if your >>> document deals with file packages. >>> >>> How can I persuade MacOSX to do what is told and not be too smart >>> for its own good? It really annoys me when computer prevents me from >>> doing something :-( >>> >>> And where the hell is this LS* stuff documented? >>> >>> izidor -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2395 bytes Desc: not available Url : /mailman/archive/macosx-dev/attachments/20021005/13fc0327/attachment.bin From macdonnell at tin.it Sat Oct 5 04:34:02 2002 From: macdonnell at tin.it (John MacDonnell) Date: Thu Nov 3 14:50:13 2005 Subject: Get 128px icons from cocoa Message-ID: <3D696267-D856-11D6-B7ED-003065B8D14A@tin.it> Hello, There's a command of NSWorkSpace which gets 32X32px icon of a file... how get 128x128 px icon? which object to use??? thanks for your help! JMD From ghulands at bigpond.net.au Sat Oct 5 04:49:01 2002 From: ghulands at bigpond.net.au (Greg Hulands) Date: Thu Nov 3 14:50:13 2005 Subject: Get 128px icons from cocoa In-Reply-To: <3D696267-D856-11D6-B7ED-003065B8D14A@tin.it> Message-ID: <6B45EBAB-D858-11D6-BB3D-0003937807BE@bigpond.net.au> Just use NSImages methods to set the size of the image and then it has the right size. [myIcon setSize:NSMakeSize(128,128); [[myIcon TIFFRepresentation] writeToFile:@"/tmp/myIcon" atomically:YES]; Greg On Saturday, October 5, 2002, at 09:33 PM, John MacDonnell wrote: > Hello, > There's a command of NSWorkSpace which gets 32X32px icon of a file... > how get 128x128 px icon? which object to use??? > > thanks for your help! > > JMD > > _______________________________________________ > MacOSX-dev mailing list > MacOSX-dev@omnigroup.com > http://www.omnigroup.com/mailman/listinfo/macosx-dev > From andreas at harmless.de Sat Oct 5 06:08:00 2002 From: andreas at harmless.de (Andreas Mayer) Date: Thu Nov 3 14:50:13 2005 Subject: LSOpenFromURLSpec() returned 1000 ??? In-Reply-To: <606422AB-D83A-11D6-8EC8-003065717ABE@siol.net> Message-ID: <58A05E6C-D863-11D6-ABC1-00050231227A@harmless.de> Am Samstag, 05.10.02 um 10:13 Uhr schrieb Izidor Jerebic: > For the benefit of some other poor soul with similar problems: No problems here at all. > If the app is in /Applications, everything works, except you cannot > open the document in file-package with double-click in the Finder > (error 1000), but you need to drag the document to the application > icon. Double clicking documents in file packages that reside inside /Applications works fine (opened a tiff from inside iCal.app). > [...] No documents (within or not within file-packages) can be opened > with Terminal and 'open' or by [NSWorkspace openFile:] method... 'open' from terminal works fine, too. > What an uncosistent mess, and fully undocumented at that! > Looks like a code-review or rewrite would be in order for this stuff... Maybe I did not understand what your problem was. Or maybe you have some problems with your system ... bye. Andreas. From rpeskin at rlpcon.com Sat Oct 5 06:43:02 2002 From: rpeskin at rlpcon.com (Richard L. Peskin) Date: Thu Nov 3 14:50:13 2005 Subject: Security Policy DB Message-ID: <1A72F3C6-D868-11D6-B14E-000393639B02@rlpcon.com> Where is the Security Policy Database? Is it internal to one of the Security Server modules, or is it a readable file? thanks, --dick peskin Richard L. Peskin, RLP Consulting, Londonderry, VT http://www.rlpcon.com http://www.caip.rutgers.edu/~peskin -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 303 bytes Desc: not available Url : /mailman/archive/macosx-dev/attachments/20021005/39f93609/attachment.bin From jleno at criticalpath.com Sat Oct 5 07:29:01 2002 From: jleno at criticalpath.com (Jim Leno) Date: Thu Nov 3 14:50:13 2005 Subject: Multipage pdf and NSImage In-Reply-To: Message-ID: Not quite sure how I would do that; if I scroll the image to the bottom, then it gets to the bottom of the image and there is no more. I tried getting the image size, and it's only 600 or so pixels high, not what you would expect for a 32 page pdf file. What's interesting is that if I ask the associated image rep object for the page count, it does return 32. So, it looks like I'm close, but missing a step. Do I have to somehow resize the image myself? It seems like NSImage should be doing that on it's own. On 10/4/02 11:35 AM, "Jeff Disher" wrote: > I haven't done it myself but you could try setCurrentPage: from > NSPDFImageRep: > http://developer.apple.com/techpubs/macosx/Cocoa/Reference/ > ApplicationKit/ObjC_classic/Classes/NSPDFImageRep.html#//apple_ref/occ/ > instm/NSPDFImageRep/setCurrentPage: > > Hope that helps, > Jeff. > > > On Friday, October 4, 2002, at 09:20 AM, Jim Leno wrote: > >> I've got a simple app that is trying to load a pdf file and display it >> in an >> NSImageView, which is inside a scrolling view. I'm calling >> initWithConentsOfFile when I create the NSImage, and this works fine >> except >> that it seems to only load the first page of the pdf. How do I get it >> to >> load the entire file so that I can then scroll and see all of the >> contents? >> >> Thanks. >> >> _______________________________________________ >> MacOSX-dev mailing list >> MacOSX-dev@omnigroup.com >> http://www.omnigroup.com/mailman/listinfo/macosx-dev >> >> > Jeff Disher > President and Lead Developer of Spectral Class > Spectral Class: Shedding Light on Innovation > http://www.spectralclass.com/ > > > From marcel at metaobject.com Sat Oct 5 07:53:01 2002 From: marcel at metaobject.com (Marcel Weiher) Date: Thu Nov 3 14:50:13 2005 Subject: Multipage pdf and NSImage In-Reply-To: Message-ID: On Saturday, October 5, 2002, at 04:28 Uhr, Jim Leno wrote: > Not quite sure how I would do that; if I scroll the image to the > bottom, > then it gets to the bottom of the image and there is no more. I tried > getting the image size, and it's only 600 or so pixels high, not what > you > would expect for a 32 page pdf file. > > What's interesting is that if I ask the associated image rep object > for the > page count, it does return 32. So, it looks like I'm close, but > missing a > step. No, you're "adding" a step. You think that NSImage should combine all the pages into *one* image by laying them out sequentially, top to bottom. It does not do this and I do not see any reason to suspect that it should do this. > Do I have to somehow resize the image myself? No. You have to provide your own view that lays out the individual pages of the image in the way that you want. > It seems like NSImage should be doing that on it's own. No, there is no reason for an NSImage to lay out multiple pages of a document in any particular way. Marcel -- Marcel Weiher Metaobject Software Technologies marcel@metaobject.com www.metaobject.com Metaprogramming for the Graphic Arts. HOM, IDEAs, MetaAd etc. From alannon at insomniaque.net Sat Oct 5 07:57:01 2002 From: alannon at insomniaque.net (Avi Cherry) Date: Thu Nov 3 14:50:13 2005 Subject: Multipage pdf and NSImage In-Reply-To: References: Message-ID: At 10:28 AM -0400 10/5/02, Jim Leno wrote: >Not quite sure how I would do that; if I scroll the image to the bottom, >then it gets to the bottom of the image and there is no more. I tried >getting the image size, and it's only 600 or so pixels high, not what you >would expect for a 32 page pdf file. > >What's interesting is that if I ask the associated image rep object for the >page count, it does return 32. So, it looks like I'm close, but missing a >step. Do I have to somehow resize the image myself? It seems like NSImage >should be doing that on it's own. My suspicion is that a single NSImage will only ever display one page at a time. I suggest that you either put a 'next'/'back' button and call setCurrentPage:, or create a separate NSImage for each page and stick them all in the scroll view. From grager at gumitech.com Sat Oct 5 09:03:01 2002 From: grager at gumitech.com (Guillaume Rager) Date: Thu Nov 3 14:50:13 2005 Subject: Authorization question Message-ID: Hi list, is there somebody who can tell me more about this error : errAuthorizationToolExecuteFailure = -60031, /* cannot execute privileged tool */ Thank you Guillaume Rager ---- GUMITECH - La Rochelle (France) http://www.gumitech.com "Chaud COCOA, chaud chocolat !!!" From finlay at dobbie.net Sat Oct 5 10:52:01 2002 From: finlay at dobbie.net (Finlay Dobbie) Date: Thu Nov 3 14:50:13 2005 Subject: Security Policy DB In-Reply-To: <1A72F3C6-D868-11D6-B14E-000393639B02@rlpcon.com> Message-ID: On Saturday, October 5, 2002, at 02:41 pm, Richard L. Peskin wrote: > Where is the Security Policy Database? Is it internal to one of the > Security Server modules, or is it a readable file? You mean /etc/authorization? -- Finlay From dustin+macosx-dev at spy.net Sat Oct 5 16:06:02 2002 From: dustin+macosx-dev at spy.net (Dustin Sallings) Date: Thu Nov 3 14:50:13 2005 Subject: setting icons Message-ID: Hey, can someone give me a pointer to a way to set an icon on a file? I'd like to be able to set proper icons on all of my images. -- SPY My girlfriend asked me which one I like better. pub 1024/3CAE01D5 1994/11/03 Dustin Sallings | Key fingerprint = 87 02 57 08 02 D0 DA D6 C8 0F 3E 65 51 98 D8 BE L_______________________ I hope the answer won't upset her. ____________ From chmod007 at mac.com Sat Oct 5 16:13:01 2002 From: chmod007 at mac.com (David Remahl) Date: Thu Nov 3 14:50:13 2005 Subject: setting icons In-Reply-To: Message-ID: > > Hey, can someone give me a pointer to a way to set an icon on a > file? I'd like to be able to set proper icons on all of my images. http://homepage.mac.com/troy_stephens/ software/objects/IconFamily/ / Rgds, David From info at bignerdranch.com Sat Oct 5 16:42:01 2002 From: info at bignerdranch.com (Aaron Hillegass) Date: Thu Nov 3 14:50:13 2005 Subject: Security Policy DB Message-ID: > Where is the Security Policy Database? Is it internal to one of the > Security Server modules, or is it a readable file? At the moment, the security policies are being kept in /etc/authorization as a XML file. I would not be surprised if this changes. The file is prefixed with this warning: