Re: proper way to release a static NSMutableDictionary?

2008-12-16 Thread Jean-Daniel Dupas
Le 16 déc. 08 à 05:56, Andy Lee a écrit : On Dec 15, 2008, at 6:27 PM, John Michael Zorko wrote: I'm not concerned about the contents per se -- i'm concerned about releasing something I declared as static, just to create it again later. Creating and re-creating objects is in itself

Re: Swap subviews of NSSplitView?

2008-12-16 Thread rajesh
On Dec 16, 2008, at 8:11 AM, Matt wrote: I have an NSSplitView, divided vertically, with two table views. In a certain instance I need to have a custom view class appear in place of the right-hand NSTableView, retaining its auto-resizing and spilt-view-resizing functionality. I need to be able

How to find nearest food courts in iPhone

2008-12-16 Thread SridharRao M
Hi All, How we can find out nearest food courts to the current iphone palce through program. I think with the CoreLocation Framework we can find out current place of the iPhone. Thanks in advance, Regards, SRIDHAR. ___ Cocoa-dev mailing list

Re: What is the default time for a CALayer transform?

2008-12-16 Thread Dimitri Bouniol
The Core Animation Programing Guide — http://developer.apple.com/documentation/Cocoa/Conceptual/CoreAnimation_guide/Articles/AnimProps.html #//apple_ref/doc/uid/TP40005942-SW2 — indicates 0.25 seconds are used for an implicit animation. As for using CABasicAnimation so you could use the

Re: How to make a CALayer dont get blur when rotating.

2008-12-16 Thread Gustavo Pizano
I was thinking about that, I put a 90.0f but that didn't help let me see the M_PI_2 works. nop once it gets to vertical position the image its not focused. :S Gus. On 16.12.2008, at 14:48, Dimitri Bouniol wrote: It's because you are multiplying/dividing a double (M_PI) by and

Re: How to make a CALayer dont get blur when rotating.

2008-12-16 Thread Gustavo Pizano
NSLog(@ %f,%f, nLayer.frame.origin.x, nLayer.frame.origin.y); generated the following output before rotating the layer. 2008-12-16 15:31:32.513 NavalBattle[392:10b] 100.00,200.00 On 16.12.2008, at 15:19, Dimitri Bouniol wrote: Perhaps it has something to do with HPS (half-pixel

Re: More - Safari Download Security Alerts

2008-12-16 Thread Matt Gough
On 16 Dec 2008, at 15:25, Dave wrote: In response to this I was advised to use PackageMaker in order to create an Installer, which would in turn suppress the Security dialogs. So I built an installer but I can't get it to install the folder containing file, so far I have only managed to

Core Animation NSTrackingArea

2008-12-16 Thread Yvan BARTHÉLEMY
Hi, For my project, I want to add mouse support in Core Animation views. For this, when I create a Core Animation button, I associate to the view a NSTrackingArea with the frame of my button. This way I can get mouse Up, Down, Entered and Exited events and implement the behavior of my

Re: What is the default time for a CALayer transform?

2008-12-16 Thread Klaus Backert
On 16.12.2008, at 15:27, Gustavo Pizano wrote: Hello Dimitri. CAAnimation* rotateAnimation = [CABasicAnimation animationWithKeyPath:@transform]; rotateAnimation.fromValue = [NSValue valueWithCATransform3D:nLayer.transform]; rotateAnimation.toValue = [NSValue

Write to file.

2008-12-16 Thread Macarov Anatoli
I have admin rights. But I can't use NSUserDefaults because upon starting  system in login window I'm not in user account, and there the function doesn't work.. After authorization and login in user account the function will work because detects what user account you work from.

Re: How to make NSURLConnection send delegate messages during runModalForWindow

2008-12-16 Thread Michael Babin
On Dec 16, 2008, at 8:30 AM, an0...@gmail.com wrote: I want to handle the connection events during runModalForWindow, so I use [connection scheduleInRunLoop:[NSRunLoop currentRunLoop] forMode: [[NSRunLoop currentRunLoop] currentMode]]; in the modal window's windowDidBecomeKey delegate

Re: batch processing

2008-12-16 Thread Mike Abdullah
NSFileManager has methods for iterating the contents of a directory. On 16 Dec 2008, at 11:43, 양승준 wrote: Hi, I would like to write a code to batch process files in a directory. I mean I would like to open, process, and store files one- by-one. My plan is to read names of files into a

Re: What is the default time for a CALayer transform?

2008-12-16 Thread Gustavo Pizano
Yes it was CABasicAnimation. Dimitri made just a typing mistake. Gustavo On 16.12.2008, at 16:34, Klaus Backert wrote: On 16.12.2008, at 15:27, Gustavo Pizano wrote: Hello Dimitri. CAAnimation* rotateAnimation = [CABasicAnimation animationWithKeyPath:@transform];

Re: What is the default time for a CALayer transform?

2008-12-16 Thread Gustavo Pizano
Dimitri Hi using CAAnimation this is what I was doing: -(void)mouseDown:(NSEvent *)event { [event retain]; [mouseDownEvent release]; mouseDownEvent = event; NSPoint p2 = [event locationInWindow]; NSPoint p3 = [self convertPoint:p2 fromView:nil];

Re: More - Safari Download Security Alerts

2008-12-16 Thread Dave
Hi, On 16 Dec 2008, at 13:14, matt.go...@agfa.com wrote: On 16 Dec 2008, at 13:54, Dave wrote: I don't install files into that folder, my application writes files to that location (by default, the user can change it) once installed. From the above document: It is important to remember

Re: More - Safari Download Security Alerts

2008-12-16 Thread Dave
Hi, On 16 Dec 2008, at 11:41, Kyle Sluder wrote: On Mon, Dec 15, 2008 at 1:26 PM, Dave d...@looktowindward.com wrote: It doesn't write any user specific data within /Applications, any files it does create and in the current users home folder, in a folder for the Application. Your files

Re: More - Safari Download Security Alerts

2008-12-16 Thread Dave
On 16 Dec 2008, at 11:37, Kyle Sluder wrote: On Mon, Dec 15, 2008 at 1:23 PM, Dave d...@looktowindward.com wrote: But that isn't the requirement, we just want it installed in / Applications and accessible to all users, that's it! By which do you mean it's not a requirement that we have

batch processing

2008-12-16 Thread 양승준
Hi, I would like to write a code to batch process files in a directory. I mean I would like to open, process, and store files one-by-one. My plan is to read names of files into a nsmutablearray, and process them one-by-one. Is there a more or less standard way to do a batch processing? Thank

Re: Where is the Computer Image ?

2008-12-16 Thread Gerriet M. Denkmann
On 16 Dec 2008, at 08:43, Brandon Walkin wrote: The image is in /System/Library/CoreServices/CoreTypes.bundle/ Contents/Resources This works fine: NSImage *anImage = [ NSImage imageNamed: NSImageNameComputer ]; but how to get an image of a black MacBook? (My computer is white.) Is

Re: More - Safari Download Security Alerts

2008-12-16 Thread matt . gough
On 16 Dec 2008, at 13:54, Dave wrote: I don't install files into that folder, my application writes files to that location (by default, the user can change it) once installed. From the above document: It is important to remember that the user domain (/Users) is intended for files created

Re: How to find nearest food courts in iPhone

2008-12-16 Thread Buddy Kurz
Thanks for posting that link - great article - should be required reading here. On Dec 16, 2008, at 4:31 AM, Glenn Sequeira wrote: On Tue, Dec 16, 2008 at 2:21 PM, SridharRao M macsrid...@gmail.com wrote: How we can find out nearest food courts to the current iphone palce through

Re: Where is the Computer Image ?

2008-12-16 Thread Benjamin Dobson
On 16 Dec 2008, at 16:45:44, Gerriet M. Denkmann wrote: On 16 Dec 2008, at 08:43, Brandon Walkin wrote: The image is in /System/Library/CoreServices/CoreTypes.bundle/ Contents/Resources This works fine: NSImage *anImage = [ NSImage imageNamed: NSImageNameComputer ]; but how to get an

Re: More - Safari Download Security Alerts

2008-12-16 Thread Kyle Sluder
On Tue, Dec 16, 2008 at 8:02 AM, Dave d...@looktowindward.com wrote: It wouldn't really make sense to be able to run it from anywhere other than /Applications on the system drive. I'm sorry but I find this hard to believe. What is your application doing that it's installation location is

Re: More - Safari Download Security Alerts

2008-12-16 Thread Geoff Beier
On Tue, Dec 16, 2008 at 9:25 AM, Dave d...@looktowindward.com wrote: This has worked wonderfully since MacOS X 10.3.x. There 10.5.x was released and the above still works BUT, we get 4 or 5 security dialogs. We just want to suppress all but the first. You were given this advice last week:

What is the default time for a CALayer transform?

2008-12-16 Thread Gustavo Pizano
Hello Im rotating a layer, with the following method : [nLayer setValue:value forKeyPath:@transform.rotation.z]; but then I want right after the animation ends, to check the new position of the CALayer to align it into the closest grid cell which will belong. I found out I can use the

Re: More - Safari Download Security Alerts

2008-12-16 Thread Dave
On 16 Dec 2008, at 17:17, Geoff Beier wrote: On Tue, Dec 16, 2008 at 9:25 AM, Dave d...@looktowindward.com wrote: This has worked wonderfully since MacOS X 10.3.x. There 10.5.x was released and the above still works BUT, we get 4 or 5 security dialogs. We just want to suppress all but

Pressable Button

2008-12-16 Thread Gerriet M. Denkmann
I am trying to build a pressable button: an on-off button (subclass of NSButton), which, if pressed for more than 0.3 seconds, displays a context menu. My idea was: Start a non-repeating timer in mouseDown: and schedule it with NSEventTrackingRunLoopMode. In mouseUp: invalidate the

Re: NSOutlineView assertion failure on collapse

2008-12-16 Thread Corbin Dunn
Hi Roland, Can you reliable reproduce this problem? If so, can you please log a bug, including your test application (or a link to download it). Or, ideally, if you have source code that can be compiled that makes things even easier to debug. -corbin On Dec 15, 2008, at 11:08 AM, Roland

Re: How to make a CALayer dont get blur when rotating.

2008-12-16 Thread Dimitri Bouniol
It's because you are multiplying/dividing a double (M_PI) by and int, so you get an int. A 90° angle in radians is defined as π/2, so try the constant M_PI_2. Hope that works :3 PS. You can also make an int into a float by appending a . to the number, as such: 90. * M_PI / 180. ; but using

Re: More - Safari Download Security Alerts

2008-12-16 Thread Geoff Beier
Sorry. I was pointing to a different part of the advice: you want to bypass the warning for your real app after the user has accepted the warning in for your installer, look at the keys and constants in LaunchServices/LSQuarantine.h for what you can pass to LSSetItemAttribute() in

Sublclassing NSThread

2008-12-16 Thread Brad O'Hearne
Hello, I am trying to create an NSThread subclass which completely wraps the desired behavior of the thread execution. Now typically when creating a new thread instance, it seems one will use the initWithTarget:selector:object initializer to properly direct the thread's execution. But

How to make NSURLConnection send delegate messages during runModalForWindow

2008-12-16 Thread an00na
I want to handle the connection events during runModalForWindow, so I use [connection scheduleInRunLoop:[NSRunLoop currentRunLoop] forMode:[[NSRunLoop currentRunLoop] currentMode]]; in the modal window's windowDidBecomeKey delegate method. But still my connection's delegate methods are not

Re: Write to file.

2008-12-16 Thread Jean-Daniel Dupas
Le 16 déc. 08 à 13:47, Macarov Anatoli a écrit : I have admin rights. But I can't use NSUserDefaults because upon starting system in login window I'm not in user account, and there the function doesn't work.. After authorization and login in user account the function will work because

Re: More - Safari Download Security Alerts

2008-12-16 Thread Dave
Hi, On 16 Dec 2008, at 13:17, Kyle Sluder wrote: On Tue, Dec 16, 2008 at 8:02 AM, Dave d...@looktowindward.com wrote: It wouldn't really make sense to be able to run it from anywhere other than /Applications on the system drive. I'm sorry but I find this hard to believe. What is your

Re: More - Safari Download Security Alerts

2008-12-16 Thread Dave
On 16 Dec 2008, at 17:46, Geoff Beier wrote: Sorry. I was pointing to a different part of the advice: you want to bypass the warning for your real app after the user has accepted the warning in for your installer, look at the keys and constants in LaunchServices/LSQuarantine.h for what

Re: What is the default time for a CALayer transform?

2008-12-16 Thread Dimitri Bouniol
-(void)mouseDown:(NSEvent *)event { [event retain]; [mouseDownEvent release]; mouseDownEvent = event; NSPoint p2 = [event locationInWindow]; NSPoint p3 = [self convertPoint:p2 fromView:nil]; CGPoint p = NSPointToCGPoint(p3); CALayer *

Re: More - Safari Download Security Alerts

2008-12-16 Thread Dave
Hi All, This thread seems have to have wondered about a bit. This is an attempt to simplify what I am trying to achieve. Before 10.5.x we had the following: 1. A .dmg file containing an Installer AppleScript Application (called Double Click to Install Launch.app) and a Folder. The

Re: Pressable Button

2008-12-16 Thread Stéphane Sudre
On Dec 16, 2008, at 4:02 PM, Gerriet M. Denkmann wrote: I am trying to build a pressable button: an on-off button (subclass of NSButton), which, if pressed for more than 0.3 seconds, displays a context menu. My idea was: Start a non-repeating timer in mouseDown: and schedule it with

Re: Sublclassing NSThread

2008-12-16 Thread j o a r
On Dec 16, 2008, at 9:29 AM, Brad O'Hearne wrote: Is this the recommended approach, or is there another way to go about this? Have you considered using NSOperation / NSOperationQueue? From what you're saying I think that would be the preferred building block for this type of thing

Re: How to make a CALayer dont get blur when rotating.

2008-12-16 Thread Dimitri Bouniol
Perhaps it has something to do with HPS (half-pixel syndrome). Maybe as you rotate the layer, the x-coord (which was a y-coord) now lies on 0.5 pixels. Try checking the layer.frame.origin point to see if it is expressed in whole numbers. On Dec 16, 2008, at 5:59 AM, Gustavo Pizano wrote:

Re: How to make a CALayer dont get blur when rotating.

2008-12-16 Thread Gustavo Pizano
mm no. let me try it.m... nop it didn't work. still the image after the transition its blurred. Gus On 16.12.2008, at 12:22, Martin Carlberg wrote: Have you tried to add the following line? [nLayer setValue:[NSNumber numberWithFloat:.] forKeyPath:@transform.scale]; - Martin

Solved - sorta (Was: NSURLConnection NSInputStream issue)

2008-12-16 Thread David LeBer
On 15-Dec-08, at 4:45 PM, David LeBer wrote: Hello all, I have a requirement where I need to send a chunked file (about 2MB at a time) to a server. Each chunk is embedded as a base64 encoded string in the body of an HTML POST request. I'm working on a proof of concept dev spike and I've

Re: How to find nearest food courts in iPhone

2008-12-16 Thread Andrew Farmer
On 16 Dec 08, at 03:21, SridharRao M wrote: How we can find out nearest food courts to the current iphone palce through program. I think with the CoreLocation Framework we can find out current place of the iPhone. +[NSFoodCourt nearestFoodCourts], of course. :P But seriously: this is an

Re: Sublclassing NSThread

2008-12-16 Thread Ken Thomases
On Dec 16, 2008, at 11:29 AM, Brad O'Hearne wrote: I am trying to create an NSThread subclass which completely wraps the desired behavior of the thread execution. I don't understand what you're trying to say here. Why is overriding the -main method not sufficient? That's what's suggested

Re: More - Safari Download Security Alerts

2008-12-16 Thread Geoff Beier
I see. I didn't catch the dialog on the disk image itself. While diving into package maker is the right thing to do, you should be able to fix your installer so that your workflow looks like: 1. Download the .dmg file. 2. Mount the image. (security dialog? i don't think i get these) 3. Launch the

Re: More - Safari Download Security Alerts

2008-12-16 Thread Kyle Sluder
On Mon, Dec 15, 2008 at 1:26 PM, Dave d...@looktowindward.com wrote: It doesn't write any user specific data within /Applications, any files it does create and in the current users home folder, in a folder for the Application. Your files belong in ~/Library/Application Support/YourSubfolder,

Re: More - Safari Download Security Alerts

2008-12-16 Thread Graham Lee
On 15/12/2008 17:41, Dave d...@looktowindward.com wrote: Hi, I looked at the Man page below, I can't see anything that says udifrez. Is this meant for me? I'm not sure what I am supposed to do with it. Hi Dave, on my system (10.5.6): udifrez [options] image Attaches

Re: How to find nearest food courts in iPhone

2008-12-16 Thread Glenn Sequeira
On Tue, Dec 16, 2008 at 2:21 PM, SridharRao M macsrid...@gmail.com wrote: How we can find out nearest food courts to the current iphone palce through program. I think with the CoreLocation Framework we can find out current place of the iPhone. A solution to a similar problem was posted on

[moderator] Re: How to find nearest food courts in iPhone

2008-12-16 Thread Scott Anguish
On 16-Dec-08, at 6:21 AM, SridharRao M wrote: Hi All, How we can find out nearest food courts to the current iphone palce through program. I think with the CoreLocation Framework we can find out current place of the This is an application area question, not a Cocoa or Cocoa Touch

Re: Pressable Button

2008-12-16 Thread Peter Ammon
On Dec 16, 2008, at 7:02 AM, Gerriet M. Denkmann wrote: I am trying to build a pressable button: an on-off button (subclass of NSButton), which, if pressed for more than 0.3 seconds, displays a context menu. Consider using a single-segment NSSegmentedControl. It has this behavior

Re: More - Safari Download Security Alerts

2008-12-16 Thread Kyle Sluder
On Mon, Dec 15, 2008 at 1:23 PM, Dave d...@looktowindward.com wrote: But that isn't the requirement, we just want it installed in /Applications and accessible to all users, that's it! By which do you mean it's not a requirement that we have thought of? See the HIG:

Re: What is the default time for a CALayer transform?

2008-12-16 Thread Gustavo Pizano
Hello Dimitri. CAAnimation* rotateAnimation = [CABasicAnimation animationWithKeyPath:@transform]; rotateAnimation.fromValue = [NSValue valueWithCATransform3D:nLayer.transform]; rotateAnimation.toValue = [NSValue valueWithCATransform3D:transform]; its gives me an error, Error request

Re: How to make a CALayer dont get blur when rotating.

2008-12-16 Thread Martin Carlberg
Have you tried to add the following line? [nLayer setValue:[NSNumber numberWithFloat:.] forKeyPath:@transform.scale]; - Martin Carlberg 13 dec 2008 kl. 19.49 skrev Gustavo Pizano: Hello well finally I manage to rotate the CALayer each time I click on it. what I did was the

Re: - [NSBitmapImageRep tiffRepresentation] malloc error

2008-12-16 Thread Thomas Clement
On Dec 15, 2008, at 10:50 PM, David Duncan wrote: On Dec 15, 2008, at 12:47 PM, Thomas Clement wrote: Alright but how am I suppose to draw a part of the image without loading the whole image from disk first? Creating a NSBitmapImageRep requires creating a NSData with the whole image. I

Re: Text track in QTMovie

2008-12-16 Thread Joe Turner
Sorry for taking so long. Okay, what I am looking for is the contents of the text track. Like, for a movie, it would be the chapter names and times. The issue is that I am making this for someone who is using AppleScript, and is just using a call method on my method to do this. So, the

Consistent scroll-to-visible of text view?

2008-12-16 Thread Randall Meadows
I have a table that contains representations of various types of data. As a row is selected another view changes to show details of that data. For instance, some display images and some display text in an NSTextView. As I change from one row to the next, I populate the detail display

Re: - [NSBitmapImageRep tiffRepresentation] malloc error

2008-12-16 Thread David Duncan
On Dec 16, 2008, at 10:39 AM, Thomas Clement wrote: That's right, I was not doing it correctly, this is now working. Also I noticed I can call CGImageCreateWithImageInRect to create a new CGImage which is a smaller area of the original image and then call CGImageGetDataProvider and

Re: More - Safari Download Security Alerts

2008-12-16 Thread Dave
Hi, I looked at xattr but can't find a man page and couldn't seem to find much about it anywhere. I did a xattr -l CleanUp.App, and it produced a dump of the data and resource forks. I can't see any attribute names. Is there any docs on xattr? Or better still, what is the command I would

Re: Sublclassing NSThread

2008-12-16 Thread Shawn Erickson
On Tue, Dec 16, 2008 at 10:49 AM, Jean-Daniel Dupas devli...@shadowlab.org wrote: No. In Cocoa you never subclass NSThread. Instead of overriding start, you implement you own start wherever you want (and with the name you want) and you pass it as parameter (SEL + target). Pre-Leopard that we

Re: Text track in QTMovie

2008-12-16 Thread douglas welton
Hi Joe, My suggestions: 1) write a small application that test your routine before you give it someone else to use. given the code you already have doing this should take all of 5 minutes. Once you do this, you can use the debugger and find your boo-boos. I suspect they will be quite

Re: Sublclassing NSThread

2008-12-16 Thread Shawn Erickson
On Tue, Dec 16, 2008 at 9:29 AM, Brad O'Hearne br...@bighillsoftware.com wrote: Hello, I am trying to create an NSThread subclass which completely wraps the desired behavior of the thread execution. I am sorry but what you described isn't making sense to me so I really don't know how to

Re: More - Safari Download Security Alerts

2008-12-16 Thread Jean-Daniel Dupas
Le 16 déc. 08 à 20:02, Dave a écrit : Hi, I looked at xattr but can't find a man page and couldn't seem to find much about it anywhere. I did a xattr -l CleanUp.App, and it produced a dump of the data and resource forks. I can't see any attribute names. Is there any docs on xattr? Or

NSTextField and NSTextCell problem

2008-12-16 Thread Arun
Hi, I have a NSTextField and inside which i have a NSTextFieldCell. I have sub classed the NSTextField cell and overriden drawInteriorWithFrame to allign the text cell frame center. Once i put some text field in the NSTextFieldCell, the background on the top of text field changes the colour. Any

Re: CoreData: Unacceptable type of value for to-one relationship

2008-12-16 Thread Pavel Kapinos
On 15-Oct-08, at 10:02 PM, Pavel Kapinos wrote: I am using an abstract entity as a destination for to-one relationship but assign an instance of its concrete subentity and it worked just fine in Tiger and even in early 10.5, but I am getting now this nasty Unacceptable type of value for

Re: More - Safari Download Security Alerts

2008-12-16 Thread Tommy Nordgren
On Dec 15, 2008, at 6:41 PM, Dave wrote: Hi, I looked at the Man page below, I can't see anything that says udifrez. Is this meant for me? I'm not sure what I am supposed to do with it. All the Best Dave I also looked at the hdiutil manpage: For the verb udifrez it states:

NSAttributedString - XHTML 1.1

2008-12-16 Thread Keith Blount
Hi, I'm building an .epub eBook exporter from my app and thus need to generate XHTML 1.1 files from my text. I am using NSAttributedString's -dataFromRange:documentAttribributes:error: to generate the XHTML, and by playing with the different combinations of documentAttributes that are used in

Re: NSAttributedString - XHTML 1.1

2008-12-16 Thread Douglas Davidson
On Dec 16, 2008, at 12:56 PM, Keith Blount wrote: I'm building an .epub eBook exporter from my app and thus need to generate XHTML 1.1 files from my text. I am using NSAttributedString's -dataFromRange:documentAttribributes:error: to generate the XHTML, and by playing with the different

Re: - [NSBitmapImageRep tiffRepresentation] malloc error

2008-12-16 Thread Thomas Clement
On Dec 16, 2008, at 8:00 PM, David Duncan wrote: On Dec 16, 2008, at 10:39 AM, Thomas Clement wrote: That's right, I was not doing it correctly, this is now working. Also I noticed I can call CGImageCreateWithImageInRect to create a new CGImage which is a smaller area of the original image

Re: Sublclassing NSThread

2008-12-16 Thread Bradley S. O'Hearne
All, Thanks to everyone for the replies. In my code, I made an error -- overrode the start method rather than the main method. After I overrode the start method, everything worked great. Without trying to get too specific on the actual issue, the more general thrust of my original

Re: Main Thread autorelease pool, memory usage question?

2008-12-16 Thread Chad Podoski
Thank you very much Mike and Ken, spot on. Amazing this issue hasn't gotten more attention, seems like a pretty big issue. On Dec 15, 2008, at 5:46 PM, Ken Ferry wrote: No, you're on target. The thing to understand is that the implementation of the main event loop is basically this: while

Re: NSAttributedString - XHTML 1.1

2008-12-16 Thread Keith Blount
Many thanks for your reply, much appreciated. NSAttributedString's HTML generation has not been configured or tested for the generation of XHMTL 1.1. It does not currently make use of the lang attribute or map element, or the name attribute on a elements, and it is unlikely to do so in the

Re: NSOutlineView assertion failure on collapse

2008-12-16 Thread Roland Rabien
In building a small app that reproduces the problem I found the cause of the assertion. It's caused by me being stupid. The following code reproduces the assertion: - (void)outlineViewItemWillCollapse:(NSNotification *)notification { id itm = [[notification userInfo] objectForKey:@NSObject];

Re: NSOutlineView assertion failure on collapse

2008-12-16 Thread Corbin Dunn
On Dec 16, 2008, at 3:54 PM, Roland Rabien wrote: In building a small app that reproduces the problem I found the cause of the assertion. It's caused by me being stupid. The following code reproduces the assertion: - (void)outlineViewItemWillCollapse:(NSNotification *)notification {

UNIX signals

2008-12-16 Thread Chris Idou
Is there any Cocoa and/or Carbon interface to UNIX signals? Start your day with Yahoo!7 and win a Sony Bravia TV. Enter now http://au.docs.yahoo.com/homepageset/?p1=otherp2=aup3=tagline ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Re: Swap subviews of NSSplitView?

2008-12-16 Thread Kevin Gessner
On Dec 16, 2008, at 2:11 AM, Matt wrote: I have an NSSplitView, divided vertically, with two table views. In a certain instance I need to have a custom view class appear in place of the right-hand NSTableView, retaining its auto-resizing and spilt-view-resizing functionality. I need to be able

Re: More - Safari Download Security Alerts

2008-12-16 Thread Mark Allan
On 16 Dec 2008, at 17:55, Dave wrote: All I have done is to create an Installer with PackageMaker, but I can't get it to installer a folder with the files in it. Have you tried using the version of PackageMaker which comes with Xcode 2.5? I'm probably in the minority here, but I find it

Re: UNIX signals

2008-12-16 Thread Andrew Farmer
On 16 Dec 08, at 17:02, Chris Idou wrote: Is there any Cocoa and/or Carbon interface to UNIX signals? Not that I'm aware of. In general, any signal you're likely to receive in a Cocoa application should either be ignored (CHLD, WINCH, etc) or cause your application to terminate immediately

Re: How to make NSURLConnection send delegate messages during runModalForWindow

2008-12-16 Thread an0
Actually, I tried NSModalPanelRunLoopMode first, but it didn't work; and I was not sure whether NSModalPanelRunLoopMode is exactly the mode of model panel's run loop. Then I thought since the modal panel's delegate method windowDidBecomeKey is called during runModalForWindow, the currentRunLoop

Re: Sublclassing NSThread

2008-12-16 Thread Chris Hanson
On Dec 16, 2008, at 2:19 PM, Bradley S. O'Hearne wrote: The reason this is useful is that rather than have this code scattered within an application which needs it, I can instead make a generic utility class out of it (which I've now done) and can reuse it anywhere. In my case, I was

Re: UNIX signals

2008-12-16 Thread Chris Idou
Ok. BTW, what happens exactly when you try and shut down a Mac? On a UNIX system all the processes are sent SIGINT or something, at which point they should enter a controlled shutdown procedure. --- On Tue, 16/12/08, Andrew Farmer andf...@gmail.com wrote: From: Andrew Farmer

Re: UNIX signals

2008-12-16 Thread Andrew Farmer
On 16 Dec 08, at 18:40, Chris Idou wrote: Ok. BTW, what happens exactly when you try and shut down a Mac? On a UNIX system all the processes are sent SIGINT or something, at which point they should enter a controlled shutdown procedure. The OS X desktop uses Apple Events to send shutdown

Re: UNIX signals

2008-12-16 Thread Michael Ash
On Tue, Dec 16, 2008 at 8:02 PM, Chris Idou idou...@yahoo.com wrote: Is there any Cocoa and/or Carbon interface to UNIX signals? Nope. It's pretty easy to set up a signal handler that can call back to a Cocoa/CoreFoundation runloop though, by having it write to a pipe or mach port which the

NSPredicateEditor and aggregate operations

2008-12-16 Thread Tom
Hi everyone, I'm trying to implement a find window using an NSPredicateEditor, but can't get it to do aggregate operations like ANY tags == 'some tag' . As far as I can see, Interface Builder doesn't cater for aggregate operations like ANY. I assume I have to subclass

Re: UNIX signals

2008-12-16 Thread Jonathan Prescott
For everything else other than Cocoa and Carbon applications that receive AppleEvents, when the computer is shutdown, everything else is sent a SIGKILL by launchd, just like any other Unix system (launchd takes the place of the init daemon seen on other Unix systems). Semantics for BSD

Re: Sublclassing NSThread

2008-12-16 Thread Michael Ash
On Tue, Dec 16, 2008 at 5:19 PM, Bradley S. O'Hearne br...@bighillsoftware.com wrote: All, Thanks to everyone for the replies. In my code, I made an error -- overrode the start method rather than the main method. After I overrode the start method, everything worked great. Without trying to

Re: Consistent scroll-to-visible of text view?

2008-12-16 Thread Ashley Clark
On Dec 16, 2008, at 12:46 PM, Randall Meadows wrote: I have a table that contains representations of various types of data. As a row is selected another view changes to show details of that data. For instance, some display images and some display text in an NSTextView. As I change from

Re: nib loading / displaying question.

2008-12-16 Thread aaron smith
Hey bill, yeah I came to that same comclusiong. It's probably not worth leaving that in memory. Thanks -A On Sun, Dec 14, 2008 at 9:43 AM, Bill Bumgarner b...@mac.com wrote: On Dec 13, 2008, at 11:56 PM, aaron smith wrote: Ah, yeah that was it. And I had the release when closed box checked in

Re: NSPredicateEditor and aggregate operations

2008-12-16 Thread Tom
I've got around it by implementing a kind of man in the middle subclass of NSPredicateEditorRowTemplate. I set the class of the row template to my subclass in IB and it automatically adds the ANY modifier to whatever is already configured. It removes the ANY modifier from the predicate

RE: nib loading / displaying question.

2008-12-16 Thread Jeff Laing
How many times will the user display the about panel in an average session of working with your app? Most likely, the answer is once. At the risk of being provocative, I'd say the answer is closer to zero. As such, it's a premature optimisation to worry about it, and we all know Apple's

Re: nib loading / displaying question.

2008-12-16 Thread aaron smith
good point! On Tue, Dec 16, 2008 at 8:49 PM, Jeff Laing jeff.la...@spatialinfo.com wrote: How many times will the user display the about panel in an average session of working with your app? Most likely, the answer is once. At the risk of being provocative, I'd say the answer is closer

Re: Pressable Button

2008-12-16 Thread Gerriet M. Denkmann
On 17 Dec 2008, at 00:56, Stéphane Sudre wrote: On Dec 16, 2008, at 4:02 PM, Gerriet M. Denkmann wrote: I am trying to build a pressable button: an on-off button (subclass of NSButton), which, if pressed for more than 0.3 seconds, displays a context menu. My idea was: Start a

Re: Sublclassing NSThread

2008-12-16 Thread Nick Zitzmann
On Dec 16, 2008, at 8:27 PM, Michael Ash wrote: And before you go off using NSOperationQueue, you should be aware that it's broken on Leopard, as described in this thread: http://www.cocoabuilder.com/archive/message/cocoa/2008/10/30/221452 And if anyone wants a second opinion, we've been

Re: How to make a CALayer dont get blur when rotating.

2008-12-16 Thread Martin Carlberg
There are some bugs in CALayer that will give you blurred images. But you have to tell us more about your layer hierarchy and what kind of transformations you have on the different layers? Have you tried to rotate your layer in a simple test application? Have you tried to use another image?

Thread ID in crash log

2008-12-16 Thread radj
Hello List, I've been googling and searching for this but to no joy. How do you get a thread ID of the current thread that will be similar with the one that shows up on a crash log? This is pretty helpful for debugging multi-threaded applications. Thanks, Radj