Re: NSString drawAtPoint and vertical font alignment

2009-09-06 Thread Stephen Blinkhorn
On 6 Sep 2009, at 21:30, Quincey Morris wrote: On Sep 6, 2009, at 18:41, Stephen Blinkhorn wrote: OK, do you mean the origin of [self bounds] isn't always (0, 0)? That could explain a few things.. The origin of the bounds coordinate system is always (0, 0) by definition, but what I mean

Re: Turn on zombies in user environment?

2009-09-06 Thread Kyle Sluder
On Sep 6, 2009, at 10:21 PM, Dave Keck wrote: Or, if the user is more technically apt, #3 can be 'gdb ', 'run', and when it crashes, 'bt' to get a backtrace. You'll need to make sure you have the unstripped release binary (not a debug version) of the same app version for this backtrace to b

document-based application

2009-09-06 Thread Oftenwrong Soong
Hi All, In my doc-based app, I need to initially display a startup window instead of a new empty document. Its function would be somewhat akin to that of the Template Chooser that comes up when you launch Pages. I've scoured the texts about the document architecture but cannot find pointers on

Re: Turn on zombies in user environment?

2009-09-06 Thread Dave Keck
To enable zombies and run your app: 1. Open terminal 2. export NSZombieEnabled=YES 3. /path/to/program.app/Contents/MacOS/program ... and stdout will of course go to the terminal window. Or, if the user is more technically apt, #3 can be 'gdb ', 'run', and when it crashes, 'bt' to get a backtrac

Re: Change the text color in an NSTableView based on the data in the row

2009-09-06 Thread Graham Cox
On 07/09/2009, at 9:40 AM, Bryan Zarnett wrote: I would like to set the text color of the cell in an NSTableView based on a particular set of data in the table of in the associated array controller. I currently have the basic code for the coloring changing working right now in "willDisplay

Is a serial NSOperationQueue FIFO?

2009-09-06 Thread Eric Hermanson
When working with a serial NSOperationQueue (i.e. setMaxConcurrentOperationCount==1), are the operations added to the queue guaranteed to run in FIFO order if all operations have the same priority and no operation dependencies are involved? My guess is that the NSOperationQueue will run th

Change the text color in an NSTableView based on the data in the row

2009-09-06 Thread Bryan Zarnett
I would like to set the text color of the cell in an NSTableView based on a particular set of data in the table of in the associated array controller. I currently have the basic code for the coloring changing working right now in "willDisplayCell". What I am not sure about is how to (1) ret

Re: crash question NSString

2009-09-06 Thread Joshua Pennington
Place a breakpoint on objc_exception_throw and eliminate the guesswork. Cheers, Joshua On Sep 5, 2009, at 9:55 AM, "Rick C." wrote: hello, i'm just looking for a confirmation here. if i'm getting this crash: *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reas

Turn on zombies in user environment?

2009-09-06 Thread Graham Cox
Is it possible to enable zombie mode for a shipped app? I have a user reporting a crash which is clearly messaging a released object, but I can't see what. It's not reproducible locally, and appears to be affecting this one user only. Can I get him somehow to turn on zombie mode and get a m

Re: NSString drawAtPoint and vertical font alignment

2009-09-06 Thread Quincey Morris
On Sep 6, 2009, at 18:41, Stephen Blinkhorn wrote: OK, do you mean the origin of [self bounds] isn't always (0, 0)? That could explain a few things.. The origin of the bounds coordinate system is always (0, 0) by definition, but what I meant to say was that the bottom left corner of the

Re: Binding table columns that change at runtime

2009-09-06 Thread BareFeet
Thanks Brent for your input: You will probably want to use KVO to observe changes to the array holding the list of column names to show. I'm not sure how to do that. It's probably enough in my case to intercept setContent calls to the NSArrayController, changing the table columns during t

Re: Symbolic Links in Snow Leopard

2009-09-06 Thread Jens Alfke
On Sep 6, 2009, at 4:51 PM, Greg Guerin wrote: The OP said stringByResolvingSymlinksInPath does the same thing, which seems incorrect to me, if the pathname is initially valid and contains symlinks. However, if the pathname is invalid (doesn't exist, as determined by some function like st

Re: How to stop NSImage from resizing while calling 'drawInRect' ?

2009-09-06 Thread DairyKnight
Thanks. Sounds like a really weird bug, though. I also figured out a way to solve this, by calling [NSBitmapImageRep drawAtPoint:] instead of the [NSImage drawAtPoint:] one, which has the correct behaviour. So it might be a good idea to maintain compatibility of your code between leopard and SL.

Re: Symbolic Links in Snow Leopard

2009-09-06 Thread Gerriet M. Denkmann
On 7 Sep 2009, at 06:53, Greg Guerin wrote: Gerriet M. Denkmann wrote: This is the directory used (/Volumes/à’•à¸¡à’√à¸˙/ Users/gerriet/ Downloads): -rw-r--r--@ 1 gerriet staff 36 6 Sep 19:30 abc -rw-r--r--@ 1 gerriet staff 47908 6 Sep 19:37 abc alias lrwxr-xr-x 1 gerriet staff 3 4 Sep 21:3

bookmarkDataWithContentsOfURL crashes

2009-09-06 Thread Gerriet M. Denkmann
This code: NSString *patx = @"/Volumes/เม่น/Users/gerriet/Downloads/abc alias"; <--- this really is an alias, created in Finder. NSURL *u2a = [ NSURL fileURLWithPath: patx ]; NSLog(@"%s will call bookmarkDataWithContentsOfURL",__FUNCTION__); // the next line will create "malloc: *** error for

Re: Distributed Objects in Foundation Tool [SOLVED]

2009-09-06 Thread Luke Evans
OK, it turns out that my first lemma didn't hold. My connection object was not a good one (having an incorrect remote port). This (thankfully) had nothing to do with run loops or other flora and fauna. On 2009-09-06, at 5:28 PM, Luke Evans wrote: Mmm... I can see a run loop running on the

Re: NSString drawAtPoint and vertical font alignment

2009-09-06 Thread Stephen Blinkhorn
On 6 Sep 2009, at 18:37, Quincey Morris wrote: There are several things wrong with this: -- You're not accounting for the bounds origin, so it only works if the origin happens to be (0, 0). OK, do you mean the origin of [self bounds] isn't always (0, 0)? That could explain a few things.

Re: Does Mac OS X support interior pointers?

2009-09-06 Thread Quincey Morris
On Sep 6, 2009, at 17:36, John Engelhart wrote: So, since the Mac OS X documentation uses the term "interior pointer" in a totally non-standard way, and I can't find anything wrt/ to what I'm looking for, my question is: Does the Mac OS X garbage collector support interior pointers (as de

Re: Easy Question re NSWindowController

2009-09-06 Thread Graham Cox
On 05/09/2009, at 10:42 PM, Brad Gibbs wrote: If I create the NSWindowController programmatically with a custom initializer: NSWindowController *myWindowController = [[NSWindowController alloc] initWithWindowNibName:@"MyWindow" moc:self.managedObjectContext]; everything works fine. I

Re: NSString drawAtPoint and vertical font alignment

2009-09-06 Thread Quincey Morris
On Sep 6, 2009, at 17:11, Stephen Blinkhorn wrote: I would have thought that the code below will center text horizontally and vertically within a NSRect. Sometimes it does but it depends on the font I am using. So the below may work for Verdana but if I change to Helvetica then the vertic

Re: Distributed Objects in Foundation Tool [adjunct]

2009-09-06 Thread Luke Evans
Mmm... I can see a run loop running on the stack of the main thread of my frozen app when it is trying to obtain the proxy. So, I'm guessing that I don't have to do anything special to get the right run loop apparatus on the thread - it looks like the call to - [NSConnection rootProxy] knows h

Re: Symbolic Links in Snow Leopard

2009-09-06 Thread Joar Wingfors
On 6 sep 2009, at 14.26, Jens Alfke wrote: NSLog(@"path = %@", [@"/etc" stringByStandardizingPath]); results in path = /etc when the result ought to be "/private/etc". This is the documented behavior: "Remove an initial component of “/private” from the path if the result

NSString drawAtPoint and vertical font alignment

2009-09-06 Thread Stephen Blinkhorn
Hi all, I would have thought that the code below will center text horizontally and vertically within a NSRect. Sometimes it does but it depends on the font I am using. So the below may work for Verdana but if I change to Helvetica then the vertical centering is off. Is there a better wa

Re: Symbolic Links in Snow Leopard

2009-09-06 Thread Greg Guerin
Jens Alfke wrote: NSLog(@"path = %@", [@"/etc" stringByStandardizingPath]); results in path = /etc when the result ought to be "/private/etc". The same thing happens with a custom symlink I created, like "/ Code", which links to "/Volumes/snoog/Code": NSLog(@"path = %

Re: How do I update a constraint on my CALayer?

2009-09-06 Thread Austin Grigg
Thanks, that did the trick. Austin On Sep 6, 2009, at 5:29 PM, Kevin Cathey wrote: You cannot update a single constraint, but you can replace the entire constraints array: @property(copy) NSArray *constraints; Kevin ___ Cocoa-dev mailing list

Re: Code Signing

2009-09-06 Thread Chris Suter
Hi Peter, On Sun, Sep 6, 2009 at 9:00 PM, Peter Hudson wrote: > I notice that when I sign code ( the whole app )  I  land up with 2 > additional items in my /Contents directory in the app bundle. > These items are a folder called _CodeSignature  and an alias called > CodeResources. > > If I delete

Distributed Objects in Foundation Tool

2009-09-06 Thread Luke Evans
Somebody may be able to provide clue here and save me a deal of time... I'm intending using DO between a Foundation Tool and what is currently a normal Cocoa app. I have used DO before between 2 normal Cocoa apps (i.e. where NSApplication starts the run loop etc.) - that just worked first

Re: Code Signing

2009-09-06 Thread Hal Mueller
On Sep 6, 2009, at 14:37, Charles Srstka wrote: Why are you wanting to go around deleting files from the insides of app bundles? Maybe to see what happens if the bad guys try the same trick. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.co

Re: Symbolic Links in Snow Leopard

2009-09-06 Thread Jeff Johnson
On Sep 6, 2009, at 4:26 PM, Jens Alfke wrote: On Sep 6, 2009, at 1:26 PM, Greg Guerin wrote: Try using a pathname that contains only Latin alphabet characters (for reference, the original chars of the volume-name are Thai: \u0e40\u0e21\u0e48\u0e19). If necessary, create and mount a disk-

Re: completion handlers?

2009-09-06 Thread Jens Alfke
On Sep 6, 2009, at 12:56 PM, Todd Heberlein wrote: It seems that the way I previously used an NSSavePanel has been deprecated. :( By the way, it's only deprecated if you want to write 10.6-only apps. If you want to remain 10.5-compatible, you can't use any of the cool block-based APIs, s

Re: Code Signing

2009-09-06 Thread Charles Srstka
On Sep 6, 2009, at 6:00 AM, Peter Hudson wrote: I notice that when I sign code ( the whole app ) I land up with 2 additional items in my /Contents directory in the app bundle. These items are a folder called _CodeSignature and an alias called CodeResources. If I delete these two items, t

Re: completion handlers?

2009-09-06 Thread Jens Alfke
On Sep 6, 2009, at 2:02 PM, Todd Heberlein wrote: OK, now a scoping rule question, in the sample code below, does "self" refer to my object (i.e., the "self" when the block is declared) or the NSSavePanel (i.e., the "self" when the code is executed)? Your object. Even though the save pan

Re: Symbolic Links in Snow Leopard

2009-09-06 Thread Jens Alfke
On Sep 6, 2009, at 1:26 PM, Greg Guerin wrote: Try using a pathname that contains only Latin alphabet characters (for reference, the original chars of the volume-name are Thai: \u0e40\u0e21\u0e48\u0e19). If necessary, create and mount a disk- image in order to get only Latin chars. I don

Re: NSMenuItem font size of the keyboard shortcut text

2009-09-06 Thread Eric Schlegel
On Sep 6, 2009, at 2:18 PM, aaron smith wrote: that stinks. because I've noticed an alignment problem in snow leopard. If the menu font size is smaller, and the key shortcut size is bigger. They don't line up middle aligned. The smaller text is a couple pixels off. Which looks bad. In leopard t

Re: NSMenuItem font size of the keyboard shortcut text

2009-09-06 Thread aaron smith
that stinks. because I've noticed an alignment problem in snow leopard. If the menu font size is smaller, and the key shortcut size is bigger. They don't line up middle aligned. The smaller text is a couple pixels off. Which looks bad. In leopard the alignment was ok. On Sun, Sep 6, 2009 at 7:59

Re: Mutation in Enumeration -- Breakpoint?

2009-09-06 Thread Seth Willits
On Sep 6, 2009, at 2:04 PM, Seth Willits wrote: I'm updating some rally old code, and I'm getting a bunch of: Collection was mutated while being enumerated. I'm wondering if there's a handy method I can break on to drop right into the location of these errors? Ok, nevermind… Xcode jus

Mutation in Enumeration -- Breakpoint?

2009-09-06 Thread Seth Willits
I'm updating some rally old code, and I'm getting a bunch of: Collection was mutated while being enumerated. I'm wondering if there's a handy method I can break on to drop right into the location of these errors? -- Seth Willits ___ Coc

Re: completion handlers?

2009-09-06 Thread Todd Heberlein
Thanks for the information. OK, now a scoping rule question, in the sample code below, does "self" refer to my object (i.e., the "self" when the block is declared) or the NSSavePanel (i.e., the "self" when the code is executed)? Todd [savePanel beginSheetModalForWindow:window completionHan

Re: NSAppleScript error

2009-09-06 Thread Marco Cassinerio
On Sep 6, 2009, at 22:25, has wrote: Marco Cassinerio wrote: I tried a lot of AS and the error is related to the AS request. For example, this to get the current playing track in iTunes: tell application "iTunes" set curr_path to get location of current track return POSIX pat

Re: Symbolic Links in Snow Leopard

2009-09-06 Thread Greg Guerin
Gerriet M. Denkmann wrote: This is the directory used (/Volumes/เม่น/Users/gerriet/ Downloads): -rw-r--r--@ 1 gerriet staff 36 6 Sep 19:30 abc -rw-r--r--@ 1 gerriet staff 47908 6 Sep 19:37 abc alias lrwxr-xr-x 1 gerriet staff 3 4 Sep 21:31 abcSymlink -> abc lrwxr-xr-x 1 gerriet staff 49 6 Sep

Re: NSAppleScript error

2009-09-06 Thread has
Marco Cassinerio wrote: I tried a lot of AS and the error is related to the AS request. For example, this to get the current playing track in iTunes: tell application "iTunes" set curr_path to get location of current track return POSIX path of curr_path end tell The error:

Re: completion handlers?

2009-09-06 Thread Steven Degutis
As mentioned before, the new feature is called Blocks, and is available only for Snow Leopard for the moment (probably being ported to the iPhone too). I've written an introductory guide on what they are and how they work, specifically intended for people who have experience with Objective-C and/or

Re: NSString width

2009-09-06 Thread Dave Keck
> -[NSString boundingRectWithSize:...] might do this, especially with the > NSStringDrawingUsesDeviceMetrics flag ("Uses image glyph bounds instead of > typographic bounds"). Indeed. When I tried that method in the past, I got it working half-way with italicized text (the width was correct, but th

Re: completion handlers?

2009-09-06 Thread Kyle Sluder
On Sep 6, 2009, at 12:56 PM, Todd Heberlein wrote: The new approach seems to use an approach (a function definition embedded in the message) that I am not familiar with (I hear ghosts of lambda notation whispering into my ear). I assume this is an Objective C 2.0 feature, but I am not ev

completion handlers?

2009-09-06 Thread Todd Heberlein
It seems that the way I previously used an NSSavePanel has been deprecated. :( The new approach seems to use an approach (a function definition embedded in the message) that I am not familiar with (I hear ghosts of lambda notation whispering into my ear). I assume this is an Objective C 2

Re: NSDivideRect and 64-bit

2009-09-06 Thread Kyle Sluder
On Sep 6, 2009, at 12:37 PM, "James W. Walker" wrote: True. If you look in NSGeometry.h, you find that the constants are still there, but they are #defines instead of enumerated constants in 64 bits. Definitely file a bug about that. They have special tools to deal with all the enums-t

Re: website like ebay.com's flash content crashing webKit like app?

2009-09-06 Thread jon
thanks for the replys, that helped alot, (now i've got to figure out why the sample code that comes with xcode "MiniBrowser" does not load flash at all (if garbage collection is turned on, no other changes)... it must be something related... i've already tried unchecking for that

Re: website like ebay.com's flash content crashing webKit like app?

2009-09-06 Thread Jens Alfke
On Sep 6, 2009, at 12:30 PM, jon wrote: so there is something in flash that is checked that shouldn't be checked?or just sort of normal and i always have to uncheck that when ever using the webkit? If you're debugging an app that uses WebKit, and it loads a page that uses the Flash

Re: NSDivideRect and 64-bit

2009-09-06 Thread James W. Walker
On Sep 6, 2009, at 12:28 PM, Mitchell Livingston wrote: Under NSRectEdge in the documentation. For example: "NSMinXEdge Specifies the left edge of the input rectangle. The input rectangle is divided vertically, and the leftmost rectangle with the width of amount is placed in slice. Avail

Re: NSDivideRect and 64-bit

2009-09-06 Thread Jens Alfke
On Sep 6, 2009, at 12:28 PM, Mitchell Livingston wrote: Under NSRectEdge in the documentation. For example: "NSMinXEdge Specifies the left edge of the input rectangle. The input rectangle is divided vertically, and the leftmost rectangle with the width of amount is placed in slice. Available

Re: NSAppleScript error

2009-09-06 Thread Marco Cassinerio
You need to share you applescript and this error with us. :) --Kyle Sluder I tried a lot of AS and the error is related to the AS request. For example, this to get the current playing track in iTunes: tell application "iTunes" set curr_path to get location of current track re

Re: website like ebay.com's flash content crashing webKit like app?

2009-09-06 Thread jon
I just unchecked it, now it runs through without the crash. so there is something in flash that is checked that shouldn't be checked?or just sort of normal and i always have to uncheck that when ever using the webkit? Jon. On Sep 6, 2009, at 1:22 PM, Jens Alfke wrote: Flash is cal

Re: NSDivideRect and 64-bit

2009-09-06 Thread Mitchell Livingston
Under NSRectEdge in the documentation. For example: "NSMinXEdge Specifies the left edge of the input rectangle. The input rectangle is divided vertically, and the leftmost rectangle with the width of amount is placed in slice. Available in Mac OS X v10.0 and later. Not available to 64-bit app

Re: website like ebay.com's flash content crashing webKit like app?

2009-09-06 Thread Jens Alfke
On Sep 6, 2009, at 12:18 PM, jon wrote: #0 0x940cb402 in __pthread_kill () #1 0x940cb24f in pthread_kill () #2 0x93d59190 in Debugger () #3 0x17ad6e05 in dyld_stub_syslog () #4 0x17ad70bf in NP_Initialize () #5 0x95d365ef in -[WebNetscapePluginPackage _tryLoad] () Flash is calling Debug

Re: website like ebay.com's flash content crashing webKit like app?

2009-09-06 Thread jon
On Sep 6, 2009, at 1:11 PM, Jens Alfke wrote: Run your app with 'breakpoints enabled', to make sure the gdb debugger loads. Then when it crashes you'll be in the debugger and can look at the stack and such. (Type "bt" into the gdb command area to get a textual bactkrace you can easily copy

Re: NSDivideRect and 64-bit

2009-09-06 Thread Jens Alfke
On Sep 6, 2009, at 12:01 PM, Mitchell Livingston wrote: I want to use NSDivideRect in my app, but the documentation for NSRectEdge (one of the parameter types) says "Not available to 64- bit applications.". Can I not use this function anymore? Is there an appropriate replacement for the fun

Re: help book and appleicon meta tag

2009-09-06 Thread Matt Neuburg
On Sun, 6 Sep 2009 09:10:26 -0700 (PDT), "Rick C." said: >hello again, > >i have revised my help book and the problem i'm having is with the AppleIcon meta tag and getting my icon to show in the help book. i never had a problem with the previous version of my help book and now all the paths are i

Re: Symbolic Links in Snow Leopard

2009-09-06 Thread Jens Alfke
On Sep 6, 2009, at 6:15 AM, Gerriet M. Denkmann wrote: The problem is: neither stringByStandardizingPath (which is documented to remove symlinks) nor stringByResolvingSymlinksInPath does anything. I also ran into this problem with -stringByStandardizingPath, right after upgrading to 10.6

Re: NSString width

2009-09-06 Thread Jens Alfke
On Sep 6, 2009, at 2:03 AM, Dave Keck wrote: I've noticed this too. If you need the absolute precise pixel-size of some text, then the only way I know of (that works with all different styles of text) is manually drawing the text into some temporary context, and analyzing its pixels. -[NSStri

NSDivideRect and 64-bit

2009-09-06 Thread Mitchell Livingston
Hey, I want to use NSDivideRect in my app, but the documentation for NSRectEdge (one of the parameter types) says "Not available to 64-bit applications.". Can I not use this function anymore? Is there an appropriate replacement for the function? Thanks, Mitch _

Re: NSArrayController design/usage question

2009-09-06 Thread Quincey Morris
On Sep 6, 2009, at 08:41, Gregory Holden wrote: NSArrayController seems great if you want to point it at repeating objects, but I can't find any clear way to add that one-off column that isn't part of the actual model objects (i.e. The "Now Playing" speaker in itunes, or a column with row n

Translating selection area in imageView

2009-09-06 Thread Development
I am using the croppingImageView example to allow me to place a picture of the desktop in to a window (about 400X300). I then want to be able to select an area of that picture and translate it to pick up that part of the desktop however what I get is completely unpredictable. It almost look

Re: Get error message about registered observers when Object receives dealloc message

2009-09-06 Thread Quincey Morris
On Sep 6, 2009, at 05:46, Roland King wrote: The note however says that in order to reduce the amount of finalizer methods written just to do KVO registration removal, the runtime now does it for you automatically in 10.6. So if you're observing something and are collected, the observations

Re: website like ebay.com's flash content crashing webKit like app?

2009-09-06 Thread Kyle Sluder
On Sep 6, 2009, at 11:11 AM, jon wrote: Are you saying that a version of this type of app is not crashing the Application when you do this type of thing? are you on snow leopard? this simple app makes it through without exiting? (using ebay.com?) I have not tried it yet. It does not

Re: website like ebay.com's flash content crashing webKit like app?

2009-09-06 Thread jon
after installing flash again from Adobe, to make sure it was the latest..(didn't help). I realized that maybe the app needs to know about a "flash" type of framework or something like that? is that type of thing needed? possible? Jon. On Sep 6, 2009, at 11:59 AM, Kyle Sluder wrote: Ha

Re: website like ebay.com's flash content crashing webKit like app?

2009-09-06 Thread jon
Are you saying that a version of this type of app is not crashing the Application when you do this type of thing? are you on snow leopard? this simple app makes it through without exiting? (using ebay.com?) nothing too interesting about the console log, here it is: more like an ab

Re: website like ebay.com's flash content crashing webKit like app?

2009-09-06 Thread Kyle Sluder
On Sep 6, 2009, at 10:38 AM, jon wrote: I believe that the flash content of ebay is crashing the app?can someone confirm? is this a known bug? something wrong with flash? my system? Have you enabled developer crash logs and checked the backtrace? Have you updated to the latest v

Re: NSAppleScript error

2009-09-06 Thread Kyle Sluder
You need to share you applescript and this error with us. :) --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.

website like ebay.com's flash content crashing webKit like app?

2009-09-06 Thread jon
can someone else confirm this on 10.5, and then 10.6 system.. if you create a simple cocoa Application (not document based, although that will exhibit same problem) then in Interface builder put in a webView, and then a textfield into the Window of the simple application project, use te

Re: NSArrayController design/usage question

2009-09-06 Thread Steven Degutis
Greg, Generally these would be called "derived properties" from my experience, and it's possible to add them on the classes that your Entities use, using KVO methods. For instance, if you have 2 genuine properties on your "Person" entity called firstName and lastName then you can create a fullName

help book and appleicon meta tag

2009-09-06 Thread Rick C.
hello again, i have revised my help book and the problem i'm having is with the AppleIcon meta tag and getting my icon to show in the help book. i never had a problem with the previous version of my help book and now all the paths are identical i've made sure of it, yet no icon. my guess is w

Re: change in launch services binding behavior?

2009-09-06 Thread Ross Carter
On Sep 6, 2009, at 1:50 AM, Mark Munz wrote: On Sat, Sep 5, 2009 at 5:46 PM, Matt Neuburg wrote: Yeah, that's just FUD. It supports creator codes, but not in the same *way* that Leopard did. And since this is a major undocumented change, which has broken the way apps like BBEdit and Nisus

NSArrayController design/usage question

2009-09-06 Thread Gregory Holden
NSArrayController seems great if you want to point it at repeating objects, but I can't find any clear way to add that one-off column that isn't part of the actual model objects (i.e. The "Now Playing" speaker in itunes, or a column with row numbers - independent of sorting). I've tried

Re: Should we release a CGImage created from NSBitmapImageRep ?

2009-09-06 Thread Clark Cox
On Sun, Sep 6, 2009 at 4:13 AM, DairyKnight wrote: > I'm working on a program which does lots of switching between CGImage, > CIIMage and NSImage. One thing I found out is > that it seems if you get a CGImage from NSBitmapImageRep: > > CGImage *cgImg = [NSBitmapImageRep CGImage]; Nothing about the

Re: How to stop NSImage from resizing while calling 'drawInRect' ?

2009-09-06 Thread Dave Keck
I'm not clear on which method is giving you issues, -drawInRect: or -drawAtPoint:? If it's -drawAtPoint: then it sounds like you may be hitting a bug in the frameworks on Leopard: http://developer.apple.com/mac/library/releasenotes/Cocoa/AppKit.html, search for "NSImage: Breaking change to drawAtPo

Re: NSMenuItem font size of the keyboard shortcut text

2009-09-06 Thread Steven Degutis
It seems to me that it should stay the same size for a good reason (consistency, etc) and that only universal access should be able to change it (if anything). I've seen some apps use custom shortcuts but generally it's always looked the same as the rest of them. In conclusion, I wouldn't bother tr

How to stop NSImage from resizing while calling 'drawInRect' ?

2009-09-06 Thread DairyKnight
Hi all, I'm trying to clip an NSImage, not so sure if this is the right thing to do, but my solution is to create a smaller NSImage, and draw the original at point(0,0) with the user-defined clipping rectangle. It sounds straight forward, but every time I get a messed up image. Then I tried: [myN

Symbolic Links in Snow Leopard

2009-09-06 Thread Gerriet M. Denkmann
I am trying to replace the deprecated fileSystemAttributesAtPath: 1. Although Kyle Sluder stated: The header file describes the correct behavior. The current behavior is the only one that makes sense. I am a bit troubled by the documentation stating that "This behavior may change in a future

Re: Get error message about registered observers when Object receives dealloc message

2009-09-06 Thread Roland King
On 06-Sep-2009, at 2:22 PM, Quincey Morris wrote: I haven't tried to evaluate the GC side of this under 10.6, but I can't imagine that the basic rule has (or could be changed) under GC: that cleanup relating to the relationships between objects needs to be done prior to entry to 'final

Re: Composite Array Controller

2009-09-06 Thread Brent Gulanowski
On Sat, Sep 5, 2009 at 8:30 PM, Richard Somers wrote: > I have a simple Core Data model with two entities, A and B. Each entity has > several attributes but no relationships. > > I need a single array controller which contains all A and B objects in the > model. > > In Interface Builder this works

Re: Code Signing

2009-09-06 Thread Dave Keck
These files are certainly meant to be there. (If you happen to look in the bundles of any number of the standard Mac apps, these two resources are present.) Signing your code should happen at the very last stage of development; deleting something from your bundle after it's been signed is wrong. Y

Re: Should we release a CGImage created from NSBitmapImageRep ?

2009-09-06 Thread Dave Keck
>From the docs on -CGImage "Returns an autoreleased CGImage object (an opaque type) from the receiver’s current bitmap data." ... if you expect it to stick around, you need to retain it. Otherwise, you needn't do anything: you shouldn't CGImageRelease() it, because you don't own it. _

Should we release a CGImage created from NSBitmapImageRep ?

2009-09-06 Thread DairyKnight
I'm working on a program which does lots of switching between CGImage, CIIMage and NSImage. One thing I found out is that it seems if you get a CGImage from NSBitmapImageRep: CGImage *cgImg = [NSBitmapImageRep CGImage]; And later you release it, by: CGImageRelease(cgImg); It would cause a BAD_A

NSAppleScript error

2009-09-06 Thread Marco Cassinerio
I'm writing a System Service under 10.6 that launchs an apple script with NSAppleScript. When the apple script target app is not running, the script works, but when the app is already running, the executeAndReturnError: will return nil and an error in the dictionary. Launching the same apple

Code Signing

2009-09-06 Thread Peter Hudson
I notice that when I sign code ( the whole app ) I land up with 2 additional items in my /Contents directory in the app bundle. These items are a folder called _CodeSignature and an alias called CodeResources. If I delete these two items, the code still identifies itself as signed ( when

Re: Making an Outline View delete a rows children when the parent is deleted.

2009-09-06 Thread Kyle Sluder
On Sep 6, 2009, at 12:02 AM, Joshua Garnham wrote: Ok, I understand what you mean. So how would I implement it in the Controller? That's a question only you can answer. Break down the problem. You also never answered the question of whether this is a behavior of your model objects or jus

Re: NSString width

2009-09-06 Thread Dave Keck
> Also, keep in mind that character shapes may stick out of either edge by a > few pixels, especially with italics or script fonts. It's usually safest to > pad your bounding box by some fraction of the point-size. I've noticed this too. If you need the absolute precise pixel-size of some text, th

Re: What about revamping OpenUp.app for Snow Leopard?

2009-09-06 Thread Giulio Cesare Solaroli
On Fri, Sep 4, 2009 at 7:14 AM, Scott Anguish wrote: > While I'm honored by the loyalty, you really do get most of the > functionality from Finder now. Feature wise, you are probably right. But the fact that OpenUp kept all the expanded files into a separate folder and was able to clean everything

Re: Making an Outline View delete a rows children when the parent is deleted.

2009-09-06 Thread Joshua Garnham
I would like the Data to be deleted permanently. Cheers, Josh. From: Jack Carbaugh To: Joshua Garnham Cc: cocoa-dev@lists.apple.com Sent: Saturday, 5 September, 2009 22:37:00 Subject: Re: Making an Outline View delete a rows children when the parent is delet