Re: addSubview bottleneck

2009-01-24 Thread Andreas Mayer
Am 24.01.2009 um 23:29 Uhr schrieb Twisted Theory: I am constructing an application that draws rooted trees (graphs with a distinguished 'first' node) by creating an NSView subclass for each node and adding them as subviews of the graph view. There is a big problem when the number of nodes

Re: Creating a managed object without adding it to the context?

2009-01-24 Thread Andreas Mayer
Am 25.01.2009 um 00:51 Uhr schrieb Ulai Beekam: My problem is that when I add directly to the managed object context, the item is not getting selected automatically in the array controller (by the way, I see the selection visually by means of the table view bound to the array controller) e

Re: Creating a managed object without adding it to the context?

2009-01-24 Thread Andreas Mayer
Am 24.01.2009 um 23:51 Uhr schrieb Jerry Krinock: On 2009 Jan 24, at 14:13, Ulai Beekam wrote: How do I programmatically create a managed object (with respect to some entity in a particular context of course) but WITHOUT adding it to the context? I do not believe this is possible. A man

Re: Forcing allocation of a subclass

2009-01-24 Thread Antonio Nunes
On 24 Jan 2009, at 23:19, Jean-Daniel Dupas wrote: Calling the original implementation in a method you have exchanged is done using [self replacedMethodName] and in a method added at runtime, you have to call [super originalMethodName] [...] if you don't want to bother with the type string

Re: Using the security framework

2009-01-24 Thread Joe Turner
But you can also code sign nowadays On Jan 24, 2009, at 11:54 PM, Chris Hanson wrote: On Jan 24, 2009, at 6:29 PM, Michael Ash wrote: On Sat, Jan 24, 2009 at 6:08 PM, Chris Hanson wrote: Among other things, to be truly secure you must use a secure installation mechanism. Do not write your

Re: Using the security framework

2009-01-24 Thread Chris Hanson
On Jan 24, 2009, at 6:29 PM, Michael Ash wrote: On Sat, Jan 24, 2009 at 6:08 PM, Chris Hanson wrote: Among other things, to be truly secure you must use a secure installation mechanism. Do not write your own install tool — it can't be made secure without itself being installed via a secur

Re: Coverflow like background drawing?

2009-01-24 Thread Scott Anguish
CovertFlow source code is in the Developer/SampleCode directory. You should be able to see it there. On 24-Jan-09, at 7:10 PM, Alex Kac wrote: UIKit/AppKit are not thread-safe meaning we should never do drawing on a background thread. Yet, if we have say 5 views and for performance reason

Re: building a file path

2009-01-24 Thread Dave DeLong
You should use the path methods on NSString: NSString * filePath = [[path stringByAppendingPathComponent:@"myfolder"] stringByAppendingPathComponent:@"myfile.xml"]; Cheers, Dave On 23 Jan, 2009, at 11:00 PM, mathew wrote: should I just manually build a file path string by adding "/myfold

addSubview bottleneck

2009-01-24 Thread Twisted Theory
Hi, I am constructing an application that draws rooted trees (graphs with a distinguished 'first' node) by creating an NSView subclass for each node and adding them as subviews of the graph view. There is a big problem when the number of nodes in the tree is large: adding the subviews takes a ver

building a file path

2009-01-24 Thread mathew
hello, i'm writing some code that saves a file on the iphone, there's no user intervention / file dialog involved. so once i've found the documents directory NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); if ([paths count] < 1

Fwd: ibplugin - framework - application

2009-01-24 Thread Richard Humiston
I may have found a solution. I built a separate framework containing the same objects and incorporated it into my app. The app functions without the plugin or plugin framework being installed in library/ frameworks. The framework and plugin need to be installed in order to open the nib f

Re: NSRunloop performSelector needs CFRunLoopWakeUp ?

2009-01-24 Thread Michael Ash
On Sat, Jan 24, 2009 at 11:07 PM, Adam R. Maxwell wrote: > > On Jan 24, 2009, at 10:18 PM, Michael Ash wrote: > >> On Sat, Jan 24, 2009 at 3:42 PM, David Hoerl wrote: >> > [...] > >>> The current app is single threaded. >>> >>> Can anyone shed any light on why the CFRunLoopWakeUp() call is necess

Re: NSRunloop performSelector needs CFRunLoopWakeUp ?

2009-01-24 Thread Adam R. Maxwell
On Jan 24, 2009, at 10:18 PM, Michael Ash wrote: On Sat, Jan 24, 2009 at 3:42 PM, David Hoerl wrote: [...] The current app is single threaded. Can anyone shed any light on why the CFRunLoopWakeUp() call is necessary? Is there some other issue I'm missing? Look at the big master list

Re: Creating a managed object without adding it to the context?

2009-01-24 Thread Jerry Krinock
On 2009 Jan 24, at 15:51, Ulai Beekam wrote: My problem is that when I add directly to the managed object context, the item is not getting selected automatically in the array controller (by the way, I see the selection visually by means of the table view bound to the array controller) even

Re: Nib memory management under Garbage Collection

2009-01-24 Thread Rob Keniger
On 16/01/2009, at 2:26 PM, mmalc Crawford wrote: "Since the collector follows strong references from root objects, and treats as garbage all objects that cannot be reached from a root object, you must ensure that there are strong references to all top- level objects in a nib file (including

Re: NSRunloop performSelector needs CFRunLoopWakeUp ?

2009-01-24 Thread Michael Ash
On Sat, Jan 24, 2009 at 3:42 PM, David Hoerl wrote: > I have a few hundred tasks to handle, and am using NSRunLoop's > performSelector to get the scheduled: > > -(void)nextTask:(SEL)sel > { > [[NSRunLoop mainRunLoop] performSelector:sel target:self argument:nil > order:0 >modes:[NS

Re: Using the security framework

2009-01-24 Thread Michael Ash
On Sat, Jan 24, 2009 at 6:08 PM, Chris Hanson wrote: > Among other things, to be truly secure you must use a secure installation > mechanism. Do not write your own install tool — it can't be made secure > without itself being installed via a secure installation mechanism. > Instead, use Installe

Re: NSCaledarDate's deprecation

2009-01-24 Thread Michael Ash
On Sat, Jan 24, 2009 at 4:14 PM, Nick Zitzmann wrote: > > On Jan 24, 2009, at 9:40 AM, Paul Bruneau wrote: > >> Why spend so much time and effort to remove some code that is going to >> keep running fine for years? > > > Because you don't know that. Stuff can change at any time and break your > ap

Re: Not Resolving Aliases

2009-01-24 Thread Michael Ash
On Sat, Jan 24, 2009 at 9:54 AM, Gerriet M. Denkmann wrote: > > When I do: > > [ sharedWorkspace openFile: @"/path/to/symlink" withApplication: @"SomeApp" > ] > > then "SomeApp" does NOT get "/path/to/symlink" but the content of the > symlink. > Same for Aliases. > > Is there a way to open a path

Re: Opening Symbolic Links

2009-01-24 Thread Rob Keniger
On 24/01/2009, at 11:46 PM, Gerriet M. Denkmann wrote: I have a text file, called Text. I did in Terminal: ln -s Text SymlinkToText When I try to open SymlinkToText in TextEdit "SymlinkToText" is shown in the Open Panel, but when I select it, the "Open"-button is disabled. Is this a bug

Re: Opening Invisible Files

2009-01-24 Thread Rob Keniger
On 24/01/2009, at 11:40 PM, Gerriet M. Denkmann wrote: I want my NSOpenPanel to show all files - same as the Finder does, if one adds AppleShowAllFiles = YES to: ~/Library/Preferences/ com.apple.finder.plist. Is there a way to accomplish this? Kind regards, Gerriet. Yes, just set AppleS

Re: Targetting Tiger

2009-01-24 Thread Clark Cox
On Sat, Jan 24, 2009 at 8:48 AM, Matt Long wrote: > Not sure what you mean by "capable of running tiger". If you have a machine > capable of running Leopard, it should be able to run tiger. Not true. In general, any Mac requires the latest OS available at the time it was released. So machines rel

Re: Coverflow like background drawing?

2009-01-24 Thread Jean-Daniel Dupas
Le 25 janv. 09 à 01:10, Alex Kac a écrit : UIKit/AppKit are not thread-safe meaning we should never do drawing on a background thread. Yet, if we have say 5 views and for performance reasons we want the main view to draw first and then the other 4 to draw in the background like how CoverFl

Coverflow like background drawing?

2009-01-24 Thread Alex Kac
UIKit/AppKit are not thread-safe meaning we should never do drawing on a background thread. Yet, if we have say 5 views and for performance reasons we want the main view to draw first and then the other 4 to draw in the background like how CoverFlow will draw its icons/images seemingly in t

Re: Log4Cocoa

2009-01-24 Thread Robert Kukuchka
I'm in the process of kicking it's tires, and I'm liking it so far. Logging frameworks are one of those things that I'm surprised we don't see more Open Source solutions. Probably because logging frameworks aren't necessarily glorious, but they're incredibly utilitarian and in my opinion ne

Re: iPhone Vibrate

2009-01-24 Thread Ricky Sharp
On Jan 24, 2009, at 5:31 PM, David Blanton wrote: I want to be sensitive to battery usage in the iPhone. When calling AudioServicesPlayAlertSound ( kSystemSoundID_Vibrate ); How much battery does this use? I may be calling this 'alot' in my application. Reposting messages will

RE: Creating a managed object without adding it to the context?

2009-01-24 Thread Ulai Beekam
> You indicated in your first sentence that you know which managed > object context the new object is destined for. I don't see the > problem. Just insert it when you create it. My problem is that when I add directly to the managed object context, the item is not getting selected automatic

iPhone Vibrate

2009-01-24 Thread David Blanton
I want to be sensitive to battery usage in the iPhone. When calling AudioServicesPlayAlertSound ( kSystemSoundID_Vibrate ); How much battery does this use? I may be calling this 'alot' in my application. David Blanton ___ Cocoa-

iPhone Compositing

2009-01-24 Thread David Blanton
CoreImage is not available on iPhone so the CALayer property compositingFilter is undefined. The docs say that by default a layer is composited using source- over. Is this true for iPhone as well? David Blanton ___ Cocoa-dev mailing list (Coc

Re: Creating a managed object without adding it to the context?

2009-01-24 Thread Ben Trumbull
On 2009 Jan 24, at 14:13, Ulai Beekam wrote: How do I programmatically create a managed object (with respect to some entity in a particular context of course) but WITHOUT adding it to the context? I do not believe this is possible. A managed object without a context would not be "managed".

Re: Using the security framework

2009-01-24 Thread Chris Hanson
On Jan 24, 2009, at 1:41 PM, Joe Turner wrote: So, you are saying that I must create an install tool, that installs my utility that will run as root? I am saying that, in order to maintain your users' system security, you must follow the guidance in the Authorization Services Programming

Re: Knowing when a NSArrayController is ready

2009-01-24 Thread jonat...@mugginsoft.com
On 24 Jan 2009, at 18:41, Matt Neuburg wrote: On or about 1/24/09 10:17 AM, thus spake "jonat...@mugginsoft.com" : I am also having horrible performance problems. A data set of 1500 items with a total on disk size of 1.8MB is taking more than 30 secs to load. Maybe NSArrayController -fetchWit

Re: Targetting Tiger

2009-01-24 Thread Steve Christensen
On Jan 24, 2009, at 11:34 AM, Marcus wrote: 24 jan 2009 kl. 16.56 skrev Steve Christensen: And I'd suggest getting your hands on a 10.4 system of your own, particularly if current or future customers have that as a requirement. My customer does so I'm doing all my development with Xcode 2

Re: Creating a managed object without adding it to the context?

2009-01-24 Thread Jerry Krinock
On 2009 Jan 24, at 14:13, Ulai Beekam wrote: How do I programmatically create a managed object (with respect to some entity in a particular context of course) but WITHOUT adding it to the context? I do not believe this is possible. A managed object without a context would not be "managed

Re: Forcing allocation of a subclass

2009-01-24 Thread Jean-Daniel Dupas
Le 24 janv. 09 à 22:13, Antonio Nunes a écrit : Sorry, sent this before I had finished making the necessary changes, I don't think I need to exchange any implementations if I add the method with the correct selector (allocWithZone:) === On 24 Jan 2009, at 19:20, Bill Bumgarner wrote: If

Creating a managed object without adding it to the context?

2009-01-24 Thread Ulai Beekam
Hi, How do I programmatically create a managed object (with respect to some entity in a particular context of course) but WITHOUT adding it to the context? The reason I want this is to be able to take that new managed object and add it via an NSArrayController (one that is connected to said

Re: Switching NSDocument based application to tabbed views interface

2009-01-24 Thread Fritz Anderson
On 22 Jan 2009, at 1:00 PM, Klaus Backert wrote: It's the difference between "Search for: All of the words" and "Search for: Any of the words". You can choose this in the "Advanced search". The default is _Any_, because of which more than 40.000 results are found in this case. Well, that'

Re: Using the security framework

2009-01-24 Thread Joe Turner
So, you are saying that I must create an install tool, that installs my utility that will run as root? On Jan 24, 2009, at 2:23 PM, Chris Hanson wrote: The proper way to construct everything you've described is discussed in the Authorization Services Programming Guide. Authorization

Re: Targetting Tiger

2009-01-24 Thread Thomas Davie
On 24 Jan 2009, at 22:17, Steve Christensen wrote: On Jan 24, 2009, at 9:22 AM, Thomas Davie wrote: On 24 Jan 2009, at 17:48, Matt Long wrote: Not sure what you mean by "capable of running tiger". If you have a machine capable of running Leopard, it should be able to run tiger. Fraid not

Re: Targetting Tiger

2009-01-24 Thread Steve Christensen
On Jan 24, 2009, at 9:22 AM, Thomas Davie wrote: On 24 Jan 2009, at 17:48, Matt Long wrote: Not sure what you mean by "capable of running tiger". If you have a machine capable of running Leopard, it should be able to run tiger. Fraid not, the two machines I have available to develop on are to

Re: NSRunloop performSelector needs CFRunLoopWakeUp ?

2009-01-24 Thread Stephen J. Butler
On Sat, Jan 24, 2009 at 2:42 PM, David Hoerl wrote: > I have a few hundred tasks to handle, and am using NSRunLoop's > performSelector to get the scheduled: > > -(void)nextTask:(SEL)sel > { > [[NSRunLoop mainRunLoop] performSelector:sel target:self argument:nil > order:0 >modes:[NS

Re: NSCaledarDate's deprecation

2009-01-24 Thread Nick Zitzmann
On Jan 24, 2009, at 9:40 AM, Paul Bruneau wrote: Why spend so much time and effort to remove some code that is going to keep running fine for years? Because you don't know that. Stuff can change at any time and break your application in unexpected ways in the future, though you do get a

Re: Forcing allocation of a subclass

2009-01-24 Thread Antonio Nunes
Sorry, sent this before I had finished making the necessary changes, I don't think I need to exchange any implementations if I add the method with the correct selector (allocWithZone:) === On 24 Jan 2009, at 19:20, Bill Bumgarner wrote: If so, the method_exchangeImplementations() pattern wi

Re: Forcing allocation of a subclass

2009-01-24 Thread Antonio Nunes
On 24 Jan 2009, at 19:20, Bill Bumgarner wrote: If so, the method_exchangeImplementations() pattern will work. If not, you'll need to add the method to the class via class_addMethod(). Let's see if I understand this correctly: you mean I need to add alloc, or as suggested, allocWithZone: z

NSRunloop performSelector needs CFRunLoopWakeUp ?

2009-01-24 Thread David Hoerl
I have a few hundred tasks to handle, and am using NSRunLoop's performSelector to get the scheduled: -(void)nextTask:(SEL)sel { [[NSRunLoop mainRunLoop] performSelector:sel target:self argument:nil order:0 modes:[NSArray arrayWithObject:NSDefaultRunLoopMode]]; CFRunLoopRef crf =

Re: Targetting Tiger

2009-01-24 Thread Chris Hanson
On Jan 24, 2009, at 8:48 AM, Matt Long wrote: Not sure what you mean by "capable of running tiger". If you have a machine capable of running Leopard, it should be able to run tiger. Macs typically doesn't support operating system releases earlier than the one with which it shipped, because

Re: Using the security framework

2009-01-24 Thread Chris Hanson
The proper way to construct everything you've described is discussed in the Authorization Services Programming Guide. Authorization Services Programming Guide http://developer.apple.com/documentation/Security/Conceptual/authorization_concepts/index.html The current, most up-to

Re: Targetting Tiger

2009-01-24 Thread John Joyce
Your best bet is to purchase a used Mac that can run Tiger and use it for test builds. There is a huge installed userbase of Tiger still, remember it has been the longest single incarnation of OS X. (as a result of this long life of Tiger, there are lots of affordable used macs that can do

Re: Targetting Tiger

2009-01-24 Thread Marcus
24 jan 2009 kl. 16.56 skrev Steve Christensen: And I'd suggest getting your hands on a 10.4 system of your own, particularly if current or future customers have that as a requirement. My customer does so I'm doing all my development with Xcode 2.5 on a 10.4.11 system. I make sure everythin

Re: Using the security framework

2009-01-24 Thread Joe Turner
I think I figured out how SD does it: When you unlock SD!, it calls AEWP() on SDAgent. Then, SDAgent calls setuid(0) to make itself root. With it as root, when it calls SDCopy, or SDDiskTool, it calls it with AEWP, and since it's root, it doesn't need the user's password to do this! This

Re: Knowing when a NSArrayController is ready

2009-01-24 Thread Matt Neuburg
On or about 1/24/09 10:17 AM, thus spake "jonat...@mugginsoft.com" : > I am also having horrible performance problems. > A data set of 1500 items with a total on disk size of 1.8MB is taking > more than 30 secs to load. > Maybe NSArrayController -fetchWithRequest will improve things. I would ask

Re: Forcing allocation of a subclass

2009-01-24 Thread Jean-Daniel Dupas
Le 24 janv. 09 à 19:20, Bill Bumgarner a écrit : Thanks. I found that a few hours ago and was able to create the exchange. However, writing a correct replacement method is another thing altogether. The following doesn't work: Early in application startup: Method originalMethod = class_ge

Re: Knowing when a NSArrayController is ready

2009-01-24 Thread David LeBer
On 24-Jan-09, at 1:11 PM, Dave Fernandes wrote: It looks like you can set to prepare content AND call fetchWithRequest: http://developer.apple.com/DOCUMENTATION/Cocoa/Conceptual/CoreData/Articles/cdBindings.html "If the "automatically prepares content" flag (see, for example, setAutomatic

Re: Forcing allocation of a subclass

2009-01-24 Thread Jean-Daniel Dupas
Le 24 janv. 09 à 19:20, Jean-Daniel Dupas a écrit : Le 24 janv. 09 à 18:51, Antonio Nunes a écrit : On 24 Jan 2009, at 18:09, Bill Bumgarner wrote: Or, more specifically, why do you want to make some bit of framework code which currently allocates an instance of A allocate an instance o

Re: Knowing when a NSArrayController is ready

2009-01-24 Thread jonat...@mugginsoft.com
On 24 Jan 2009, at 17:59, Matt Neuburg wrote: On Sat, 24 Jan 2009 09:07:59 +, "jonat...@mugginsoft.com" said: On 24 Jan 2009, at 02:43, David LeBer wrote: This may be a stupid question, but I've had reason to wonder a number of times. If I have an NSArrayController in a nib, bound to

Re: Long load time of managed object context

2009-01-24 Thread Matt Neuburg
> Date: Fri, 16 Jan 2009 13:03:24 +0100 > From: Matteo Manferdini > Subject: Long load time of managed object context > > I'm testing performance in my application, to see how it behaves with > a big load of data inside of it. My application is core data based and > uses array controllers in ent

Re: Forcing allocation of a subclass

2009-01-24 Thread Jean-Daniel Dupas
Le 24 janv. 09 à 18:51, Antonio Nunes a écrit : On 24 Jan 2009, at 18:09, Bill Bumgarner wrote: Or, more specifically, why do you want to make some bit of framework code which currently allocates an instance of A allocate an instance of SubA instead? Because of, what I assume to be, a bu

Re: Forcing allocation of a subclass

2009-01-24 Thread Bill Bumgarner
On Jan 24, 2009, at 9:51 AM, Antonio Nunes wrote: On 24 Jan 2009, at 18:09, Bill Bumgarner wrote: Or, more specifically, why do you want to make some bit of framework code which currently allocates an instance of A allocate an instance of SubA instead? Because of, what I assume to be, a bug

Re: Knowing when a NSArrayController is ready

2009-01-24 Thread Dave Fernandes
It looks like you can set to prepare content AND call fetchWithRequest: http://developer.apple.com/DOCUMENTATION/Cocoa/Conceptual/CoreData/ Articles/cdBindings.html "If the "automatically prepares content" flag (see, for example, setAutomaticallyPreparesContent:) is set for a controller, the

Re: Knowing when a NSArrayController is ready

2009-01-24 Thread Matt Neuburg
On Sat, 24 Jan 2009 09:07:59 +, "jonat...@mugginsoft.com" said: > >On 24 Jan 2009, at 02:43, David LeBer wrote: > >> This may be a stupid question, but I've had reason to wonder a >> number of times. >> >> If I have an NSArrayController in a nib, bound to a MOC, configured >> with an Entity na

Re: Forcing allocation of a subclass

2009-01-24 Thread Antonio Nunes
On 24 Jan 2009, at 18:09, Bill Bumgarner wrote: Or, more specifically, why do you want to make some bit of framework code which currently allocates an instance of A allocate an instance of SubA instead? Because of, what I assume to be, a bug in PDFClerkThumbnailView which when one drags m

Re: Targetting Tiger

2009-01-24 Thread Thomas Davie
On 24 Jan 2009, at 17:48, Matt Long wrote: Not sure what you mean by "capable of running tiger". If you have a machine capable of running Leopard, it should be able to run tiger. Fraid not, the two machines I have available to develop on are too new to run tiger – there's no drivers for them

Re: Log4Cocoa

2009-01-24 Thread Rob Ross
I have never used the Log4Cocoa implementation, but I use the Java version (log4j) every day. It's got a great API so if Log4Cocoa uses most of the same API I would definitely say use it. It's simple, lightweight, and you can learn enough to cover 80% of your needs in a just a few hours. I

Re: Forcing allocation of a subclass

2009-01-24 Thread Bill Bumgarner
On Jan 24, 2009, at 1:19 AM, Antonio Nunes wrote: I need to be able to force the requested allocation of a cocoa class to always return an instance of my subclass. I have looked into ways of doing that. First things first Why? Or, more specifically, why do you want to make some bit of

Re: Log4Cocoa

2009-01-24 Thread Timothy Reaves
On Jan 23, 2009, at 3:33 PM, Joel Norvell wrote: This doesn't answer the original question, but I believe it is pertinent to this thread. It is also possible to log from within Xcode, something I hadn't realized until I saw the video of an excellent talk Joar Wingfors gave at a Silicon V

Re: Targetting Tiger

2009-01-24 Thread Matt Long
Not sure what you mean by "capable of running tiger". If you have a machine capable of running Leopard, it should be able to run tiger. Someone correct me if I'm wrong as I haven't actually done this, but can' t you simply get an external drive you connect through USB and install tiger onto

Re: NSCaledarDate's deprecation

2009-01-24 Thread Paul Bruneau
Please excuse this possibly dumb question but here it is: Why spend so much time and effort to remove some code that is going to keep running fine for years? The class isn't even deprecated yet. It's in this weird "going to be deprecated" limbo. How many years does it take between when some

Re: Targetting Tiger

2009-01-24 Thread David Blanton
I agree with Steve as this is exactly how I develop to be sure 10.4 and 10.5 work. On Jan 24, 2009, at 8:56 AM, Steve Christensen wrote: And I'd suggest getting your hands on a 10.4 system of your own, particularly if current or future customers have that as a requirement. My customer does

Re: Targetting Tiger

2009-01-24 Thread Steve Christensen
Your build settings below look reasonable, but given where the crash is happening it looks like the problem is with your main nib file. Is it possible that it contains a new Leopard-only view class, for example? Does IB show any incompatibilities with your xib or nib with a 10.4 target? A

iPhone Compositing Filters

2009-01-24 Thread David Blanton
CoreImage is not available on iPhone so the CALayer property compositingFilter is undefined. The docs say that by default a layer is composited using source- over. Is this true for iPhone as well? David Blanton ___ Cocoa-dev mailing list (Co

Not Resolving Aliases

2009-01-24 Thread Gerriet M. Denkmann
When I do: [ sharedWorkspace openFile: @"/path/to/symlink" withApplication: @"SomeApp" ] then "SomeApp" does NOT get "/path/to/symlink" but the content of the symlink. Same for Aliases. Is there a way to open a path without resolving aliases? Kind regards, Gerriet. __

Re: NSNumberFormatter setFormat: in 10.3.9

2009-01-24 Thread Jonathan Fewtrell
On 23 Jan 2009, at 18:30, Jonathan Fewtrell wrote: My app, developed on 10.5 but targeted at 10.3.9 and above, contains the following code: NSNumberFormatter *formatter = [[NSNumberFormatter alloc] init]; [formatter setFormat:@"#0;#0;#0"]; It compiles without warnings. When running on 10.3

Re: Using the security framework

2009-01-24 Thread Joe Turner
Cool, thanks! Then I now have another question: Why not just run chmod on my utility when it's 'unlocked', and change the userID to 0. Then when it's locked, change it back to 501? Or, is this exactly what AEWP() will do? Thanks! Cheers, Joe Turner On Jan 24, 2009, at 6:47 AM, Michael As

Opening Symbolic Links

2009-01-24 Thread Gerriet M. Denkmann
I have a text file, called Text. I did in Terminal: ln -s Text SymlinkToText When I try to open SymlinkToText in TextEdit "SymlinkToText" is shown in the Open Panel, but when I select it, the "Open"-button is disabled. Is this a bug or a feature (in 10.5.6) ? I believe this did work in Tiger

Opening Invisible Files

2009-01-24 Thread Gerriet M. Denkmann
I want my NSOpenPanel to show all files - same as the Finder does, if one adds AppleShowAllFiles = YES to: ~/Library/Preferences/ com.apple.finder.plist. Is there a way to accomplish this? Kind regards, Gerriet. ___ Cocoa-dev mailing list (Cocoa

Re: Turn autosaving on forever - is it OK?

2009-01-24 Thread Michael Ash
On Fri, Jan 23, 2009 at 9:41 PM, Vitaly Ovchinnikov wrote: > Michael, cocoa's embedded autosaving saves to separate file and leave > the main document dirty. It helps only in case of power lost or > software hang. But as it runs in background, some conflicts are > possible. That's what I wanted to

Re: Using the security framework

2009-01-24 Thread Michael Ash
On Fri, Jan 23, 2009 at 10:59 PM, Joe Turner wrote: > Okay, so, it seems everyone was right :) I went to cocoabuilder to find some > of the responses to this, that I never got. > > Anyways, it seems I can just call AEWP() once, and it should stay suid. > > So, my last question to everyone is, how

Re: Forcing allocation of a subclass

2009-01-24 Thread Mike Abdullah
I would recommend against the category approach. As your search of the archives no doubt explained, there's no guarantee that PDFDocument may at some point internally use its own category that would override yours. I don't know exactly how you'd do what you want (+poseAsClass: is deprecated

Forcing allocation of a subclass

2009-01-24 Thread Antonio Nunes
Hi, I need to be able to force the requested allocation of a cocoa class to always return an instance of my subclass. I have looked into ways of doing that. I have a solution that seems to work, by using a category on the class to replace the regular invocation, but from the archives I un

Re: NSNumberFormatter setFormat: in 10.3.9

2009-01-24 Thread Jonathan Fewtrell
On 24 Jan 2009, at 09:27, Kyle Sluder wrote: On Sat, Jan 24, 2009 at 3:49 AM, Jonathan Fewtrell wrote: Yes, I saw that. Maybe I misunderstood it. I thought that if the app was running under 10.3.9 the formatter would always be created as 10.0 format since the 10.4 format stuff didn't exist

Targetting Tiger

2009-01-24 Thread Thomas Davie
Hi, I'm in a sticky situation. I personally have no machine capable of running tiger, but my customer needs me to provide a tiger version of my app. I attempted to create a build that targeted tiger, but they are reporting that it is failing. What's going wrong: The application crashes

Re: NSNumberFormatter setFormat: in 10.3.9

2009-01-24 Thread Kyle Sluder
On Sat, Jan 24, 2009 at 3:49 AM, Jonathan Fewtrell wrote: > Yes, I saw that. Maybe I misunderstood it. I thought that if the app was > running under 10.3.9 the formatter would always be created as 10.0 format > since the 10.4 format stuff didn't exist in the 10.3 frameworks. Isn't that > right? Y

Re: Poof! Recently-saved Core Data document suddenly gets dirty

2009-01-24 Thread Quincey Morris
On Jan 23, 2009, at 22:44, Jerry Krinock wrote: I realize I could probably paper over this problem by disabling undo registration during the import The stack trace clearly shows that an undo action is being recorded, which means that some property has been changed. ("Changed" in the sense

Re: Knowing when a NSArrayController is ready

2009-01-24 Thread jonat...@mugginsoft.com
On 24 Jan 2009, at 02:43, David LeBer wrote: This may be a stupid question, but I've had reason to wonder a number of times. If I have an NSArrayController in a nib, bound to a MOC, configured with an Entity name and set to prepare content: Is there a way to be notified when it has finis

Re: NSNumberFormatter setFormat: in 10.3.9

2009-01-24 Thread Jonathan Fewtrell
Yes, I saw that. Maybe I misunderstood it. I thought that if the app was running under 10.3.9 the formatter would always be created as 10.0 format since the 10.4 format stuff didn't exist in the 10.3 frameworks. Isn't that right? Jon I believe that in 10.5, the default formatter behavior

Re: Long load time of managed object context

2009-01-24 Thread Diederik Hoogenboom
Hi Matteo, How do you load your model? Do you pass [NSBundle allBundles] to NSManagedObjectModel's mergedModelFromBundles: ? Maybe your application bundle contains more than one model (e.g. from linked frameworks) which can confuse CoreData (i.e. slow down or generate errors). - Dieder