Multiple Document types

2008-09-09 Thread Chris Idou
I have an app which can open and create multiple document types. With the standard framework, the New menu item seems to just create a document of one of those types. Am I supposed to write my own dialog box to ask the user what type of document they want to create, or is there something in the

NSInvocation

2008-09-09 Thread Chris Idou
I have a need to call performSelector:withObject etc, except I need to pass 3 arguments. The doco to performSelector:withObject:withObject says to "See NSInvocation", which I have done, but I don't understand how to use it. Can anyone give me some code which implements performSelector:withObjec

Re: BOOL array

2008-09-09 Thread Joel Norvell
I'm resending this to correct an egregious attribution error in my previous post. My comment remains the same. > > On Sep 9, 2008, at 03:24, Alex Reynolds wrote: > > I am currently putting 320 to 480 character long NSString * > > instances into an NSMutableArray. The characters are 0 or 1. >

Re: BOOL array

2008-09-09 Thread Joel Norvell
> On Sep 9, 2008, at 18:43, Quincey Morris wrote: > > On Sep 9, 2008, at 03:24, Alex Reynolds wrote: > > I am currently putting 320 to 480 character long NSString * > > instances into an NSMutableArray. The characters are 0 or 1. > > > > I guess I could use an int array, but I'm looking to spee

Re: While we're on the subject of DMG's for software distribution...

2008-09-09 Thread Jon Buys
> I must agree with this paragraph whole-heartedly - my single favorite thing > about OS X is the way so many applications can be installed by dragging a > simple icon somewhere, and can be uninstalled by dragging that same icon to > the Trash. No need to worry about an installer dumping crap where

Re: While we're on the subject of DMG's for software distribution...

2008-09-09 Thread Scott Anguish
It is definitely a mixed message... It needs to be at the very least consistent. I've raised it with someone and will attempt to pursue it. As bbum said, the issues with Installer packages are the need for authentication, and the inability to specify where it should be installed if it is a

Re: Fade In and Fade Out Transitions Missing in IB

2008-09-09 Thread Brad Gibbs
hmmm that's a bummer looked like a nice feature. On Sep 9, 2008, at 9:39 PM, Seth Willits wrote: On Sep 9, 2008, at 6:50 PM, Brad Gibbs wrote: I'm sure this is user error, but the Order In and Order Out options shown and described in the IB User Guide as being available in the V

Re: Fade In and Fade Out Transitions Missing in IB

2008-09-09 Thread Seth Willits
On Sep 9, 2008, at 6:50 PM, Brad Gibbs wrote: I'm sure this is user error, but the Order In and Order Out options shown and described in the IB User Guide as being available in the View Effects tab under Transitions don't seem to be available in my version of IB. I'm using XCode and IB 3.1

Re: Problems with Key Observing Registration Performance

2008-09-09 Thread Seth Willits
On Sep 9, 2008, at 6:48 PM, Markus Spoettl wrote: What I don't understand is why adding the auto-release pool has such a dramatic impact on registering observers on the objects. Anyone know why? It would simply be that the methods triggered by KVC/KVO (the observations) are creating a hug

Re: How to determine if the system is started up from firewire disk

2008-09-09 Thread Chris Suter
On Wed, Sep 10, 2008 at 10:10 AM, Ryota Tsukiashi <[EMAIL PROTECTED]>wrote: > I am writing a cocoa application for our firweire device. I need to > know if the system is started up from firewire disk. For PowerPC with > Mac OSX 10.4/10.5, I have used information from "nvram boot-device". > For Int

Re: How to determine if the system is started up from firewire disk

2008-09-09 Thread Andrew Merenbach
On Sep 9, 2008, at 5:10 PM, Ryota Tsukiashi wrote: Hi, I am writing a cocoa application for our firweire device. I need to know if the system is started up from firewire disk. For PowerPC with Mac OSX 10.4/10.5, I have used information from "nvram boot-device". For IntelMac with 10.4/10.5, I ha

Re: Finding out in code how much memory my application uses

2008-09-09 Thread Michael Ash
On Mon, Sep 8, 2008 at 9:04 PM, Aaron VonderHaar <[EMAIL PROTECTED]> wrote: > Hi, I am trying to write some automated scenario tests that verify > that my application meets it's the memory usage constraint > requirements. > > What API is available to find out how much memory an > application/proce

Fade In and Fade Out Transitions Missing in IB

2008-09-09 Thread Brad Gibbs
I'm sure this is user error, but the Order In and Order Out options shown and described in the IB User Guide as being available in the View Effects tab under Transitions don't seem to be available in my version of IB. I'm using XCode and IB 3.1, and my project is targeted for 10.5, but I c

Re: Problems with Key Observing Registration Performance

2008-09-09 Thread Markus Spoettl
On Sep 9, 2008, at 5:28 PM, Markus Spoettl wrote: These numbers come from a test case with 140 objects, when I double the object number, the test never finishes (at least not within 10 minutes). OK, I did some more testing and timing and there is a solution - which I don't understand: T

Re: NSRunLoop run semantics

2008-09-09 Thread Chris Kane
On Sep 9, 2008, at 17:59, Roman Kishchenko wrote: Chris, Bill, thanks for your replies. My question was more about seeming contradiction between method description ("if no input sources or timers are attached to the run loop, this method exits immediately") and behavior I observed (nothin

Re: While we're on the subject of DMG's for software distribution...

2008-09-09 Thread Michael Ash
On Tue, Sep 9, 2008 at 5:15 PM, Jerry Krinock <[EMAIL PROTECTED]> wrote: > > On 2008 Sep, 09, at 11:18, Charles Srstka wrote: > >> On Sep 9, 2008, at 5:53 AM, Bill Cheeseman wrote: >> >>> Apple currently recommends that ALL applications be delivered in the form >>> of >>> an installer. See the "Pac

Re: NSRunLoop run semantics

2008-09-09 Thread Roman Kishchenko
Chris, Bill, thanks for your replies. My question was more about seeming contradiction between method description ("if no input sources or timers are attached to the run loop, this method exits immediately") and behavior I observed (nothing is attached to the loop by my application, yet, it does

Re: BOOL array

2008-09-09 Thread Todd Blanchard
You might consider using a NSMutableIndexSet since your problem basically boils down to storing membership in a set for each of a ranch of numbers. NSIndexSet is what things like NSTable use to track selected rows. I would think it would be hard to beat that without going to a raw C bitma

Problems with Key Observing Registration Performance

2008-09-09 Thread Markus Spoettl
Hi List, I'm having a strange problem with key observing performance, namely registering observers. I have an array of objects which is bound to a collection view and its views register themselves as observers of the array objects' properties (1 object, 1 view). The objects' properties

How to determine if the system is started up from firewire disk

2008-09-09 Thread Ryota Tsukiashi
Hi, I am writing a cocoa application for our firweire device. I need to know if the system is started up from firewire disk. For PowerPC with Mac OSX 10.4/10.5, I have used information from "nvram boot-device". For IntelMac with 10.4/10.5, I have used "nvram efi-boot-device". I am not sure if it i

Core Data and Garbage Collection

2008-09-09 Thread Michael Link
I'm running an application with the Core Data thread assertions on and am running into some issues on the garbage collection thread. On the GC thread (#2 usually in GDB), finalizeOneObject() is running the finalize method of an NSTextValueBinder object. This object is bound to the attribute

Re: singleton managed object / obtaining mo context SOLVED

2008-09-09 Thread Daniel Child
As a followup to my own question, it seems that the context is not created until awakeFromNib. If I wait until awakeFromNib, I can access it via: [[NSApp delegate] managedObjectContext]; OR [[[NSApplication sharedApplication] delegate] managedObjectContext]; and those return the same value.

Re: While we're on the subject of DMG's for software distribution...

2008-09-09 Thread Bill Cheeseman
on 2008-09-09 4:16 PM, David Melgar at [EMAIL PROTECTED] wrote (quoting an earlier poster, I think): >> Here's what Apple says in the Software Delivery Guide (which I'd >> assume to be more authoritative about which option you should use >> than the PackageMaker manual),... The poster didn't say

Re: While we're on the subject of DMG's for software distribution...

2008-09-09 Thread Bill Bumgarner
On Sep 9, 2008, at 2:15 PM, Jerry Krinock wrote: Charles, it may appear to have a more authoritative perspective, but it was last revised a year earlier, in July 2006. Therefore, I put my faith the document that Bill Cheeseman referred to instead. Manual Installs are Out. Installers are I

Re: While we're on the subject of DMG's for software distribution...

2008-09-09 Thread Jerry Krinock
On 2008 Sep, 09, at 11:18, Charles Srstka wrote: On Sep 9, 2008, at 5:53 AM, Bill Cheeseman wrote: Apple currently recommends that ALL applications be delivered in the form of an installer. See the "PackageMaker User Guide," last revised in July 2007: Here's what Apple says in the Softwa

Invoking -setNeedsDisplay: Whacks frame of NSTextView

2008-09-09 Thread Jerry Krinock
Just when I think I've seen everything Code: NSLog(@"myTextView is a %@", [myTextView class]) ; NSLog(@"Before, its frame is: %@", NSStringFromRect([myTextView frame])) ; [myTextView setNeedsDisplay:YES] ; NSLog(@" After, its frame is: %@", NSStringFromRect([myTextView fr

Re: NSTableView works in 10.5 but not in 10.4

2008-09-09 Thread Ellen Chou
Thanks, reloadData resolve the problem with 10.4.8. - Ellen On Mon, Sep 8, 2008 at 3:20 PM, Corbin Dunn <[EMAIL PROTECTED]> wrote: > > On Sep 8, 2008, at 2:36 PM, Ellen Chou wrote: > > Hi Stephane, >> >> Indeed, reloadData is not called at all. But why can it work fine in >> 10.5.2? >> >> When

No action msg after NSPathControl "Choose"

2008-09-09 Thread David Hoerl
The NSPathControl.h file says that when in Popup mode, the control will send a action message. However, I cannot get it to work. I've tried using no types, and a type of "public.folder". Is this a known problem? I was able to create a hack work-around: use the NSPathControl delegate method "-

Re: While we're on the subject of DMG's for software distribution...

2008-09-09 Thread David Melgar
I agree. Being able to install applications in unprivelaged locations is one of the best qualities of mac os x. Sent from my iPhone On Sep 9, 2008, at 2:18 PM, Charles Srstka <[EMAIL PROTECTED]> wrote: On Sep 9, 2008, at 5:53 AM, Bill Cheeseman wrote: on 2008-09-08 11:31 PM, Chris Markl

simple window close question

2008-09-09 Thread Bob Sabiston
Hi, I've got a cocoa-in-carbon window, and I want to let my carbon app know when the cocoa window closes. I'm kind of new to cocoa--how do I do this? Here's what I've tried so far. I made File's Owner the delegate of my window by dragging a line between them in Interface Builder. In m

singleton managed object / obtaining mo context

2008-09-09 Thread Daniel Child
Hi All, I am trying to implement a singleton class which is a subclass of NSManagedObject, but it is not behaving as expected. The librarian singleton is supposed to keep a list of the data sources, which are added periodically. I'm trying to cache the Librarian as an instance variable o

Re: BOOL array

2008-09-09 Thread Andy Lee
On Sep 9, 2008, at 12:43 PM, Quincey Morris wrote: On Sep 9, 2008, at 03:24, Alex Reynolds wrote: I am currently putting 320 to 480 character long NSString * instances into an NSMutableArray. The characters are 0 or 1. I guess I could use an int array, but I'm looking to speed up my app an

Re: While we're on the subject of DMG's for software distribution...

2008-09-09 Thread Charles Srstka
On Sep 9, 2008, at 5:53 AM, Bill Cheeseman wrote: on 2008-09-08 11:31 PM, Chris Markle at [EMAIL PROTECTED] wrote: I'd prefer to ship this as a DMG... But if I understand DMG-based delivery correctly, the idea is that Mac users are used to this and "know" to copy the application bundle to the

Re: BOOL array

2008-09-09 Thread Andrew Merenbach
On Sep 9, 2008, at 3:24 AM, Alex Reynolds wrote: I am currently putting 320 to 480 character long NSString * instances into an NSMutableArray. The characters are 0 or 1. I guess I could use an int array, but I'm looking to speed up my app and reduce storage. Is it possible to create a BOOL

Cocoaheads Lake Forest will not have a formal meeting this month. Informal meeting

2008-09-09 Thread Scott Ellsworth
Hello, all, CocoaHeads Lake Forest will not have a formal meeting this month. Our next meeting on the second Wednesday in October from 7 to 9 PM. (Our venue is still down, but is expected to be repaired in the next week. As the NSCoder group met just a week ago, I do not want to wear out our La

Re: BOOL array

2008-09-09 Thread Quincey Morris
On Sep 9, 2008, at 03:24, Alex Reynolds wrote: I am currently putting 320 to 480 character long NSString * instances into an NSMutableArray. The characters are 0 or 1. I guess I could use an int array, but I'm looking to speed up my app and reduce storage. Is it possible to create a BOOL ar

Re: BOOL array

2008-09-09 Thread Jean-Daniel Dupas
Le 9 sept. 08 à 12:24, Alex Reynolds a écrit : I am currently putting 320 to 480 character long NSString * instances into an NSMutableArray. The characters are 0 or 1. I guess I could use an int array, but I'm looking to speed up my app and reduce storage. Is it possible to create a BOOL ar

Re: Custom Array/Set keypath

2008-09-09 Thread Mike Abdullah
Create a custom NSValueTransformer subclass that takes the data and calculates its standard deviation On 9 Sep 2008, at 16:22, Jamie Phelps wrote: I would like to bind the value of an NSTextField to the standard deviation of a keypath. My class Foo has an instance variable "amount." I fou

Re: BOOL array

2008-09-09 Thread Jason Coco
On Sep 9, 2008, at 06:24 , Alex Reynolds wrote: I am currently putting 320 to 480 character long NSString * instances into an NSMutableArray. The characters are 0 or 1. I guess I could use an int array, but I'm looking to speed up my app and reduce storage. Is it possible to create a BOOL

Re: Using control:didFailToFormatString:errorDescription:

2008-09-09 Thread Matt Neuburg
On Tue, 9 Sep 2008 12:10:10 +1000, Rohan Lloyd <[EMAIL PROTECTED]> said: > >On 9 Sep 2008, at 12:48 AM, Matt Neuburg wrote: > >> On Mon, 8 Sep 2008 11:23:30 +1000, Rohan Lloyd > [EMAIL PROTECTED]> said: >>> I don't like the vague "Format Error" and want to display my own >>> message, so I've writte

Saving some managed objects separately

2008-09-09 Thread Arthur C .
In my application I have a status log which is kept in Core Data. This gives a nice interface and persistence for the log. However, I would like to be able to save the log to disk independent from other parts of my Core Data model. This is needed to prevent the log from getting lost in the even

BOOL array

2008-09-09 Thread Alex Reynolds
I am currently putting 320 to 480 character long NSString * instances into an NSMutableArray. The characters are 0 or 1. I guess I could use an int array, but I'm looking to speed up my app and reduce storage. Is it possible to create a BOOL array that can be put into an NSMutableArray? T

Custom Array/Set keypath

2008-09-09 Thread Jamie Phelps
I would like to bind the value of an NSTextField to the standard deviation of a keypath. My class Foo has an instance variable "amount." I found the NSExpression function stddev: and thought I would create a category but that didn't work out like I had hoped. Any thoughts appreciated. Tha

Do I Need Multiple NSArrayControllers For This?

2008-09-09 Thread Jamie Phelps
I have a Core Data entity that has a date and relationship. I want to create a label like. "25 Foos (12 New)" A Foo is active if it its relationship is null and it is new if its date is within the startDate and endDate specified by the user. My intuition is that this does require two NSArr

Re: While we're on the subject of DMG's for software distribution...

2008-09-09 Thread Thomas Engelmeier
Am 09.09.2008 um 12:53 schrieb Bill Cheeseman: on 2008-09-08 11:31 PM, Chris Markle at [EMAIL PROTECTED] wrote: I'd prefer to ship this as a DMG... But if I understand DMG-based delivery correctly, the idea is that Mac users are used to this and "know" to copy the application bundle to the Ap

Re: While we're on the subject of DMG's for software distribution...

2008-09-09 Thread Bill Cheeseman
on 2008-09-08 11:31 PM, Chris Markle at [EMAIL PROTECTED] wrote: > I'd prefer to ship this as a DMG... But if I understand DMG-based > delivery correctly, the idea is that Mac users are used to this and > "know" to copy the application bundle to the Applications folder. Apple currently recommends

RTFFromRange vs. NSTextTableBlock

2008-09-09 Thread Mark Allerton
Hi all, I ran into some strangeness with NSAttributedString -RTFFromRange when using text table attributes. I'm actually implementing a custom NSTextStorage and ran into this when copying to the clipboard, but have been able to boil this down to a simple example using NSMutableAttributedS

Re: NSSpellChecker (foundation) broken for custom NSSpellServer servers

2008-09-09 Thread Adam Strzelecki
If you want a response from Apple, file a bug report at bugreport.apple.com. Otherwise, there's no guarantee anyone from Apple will even see your message. Okay, thanks. For a first time I thought that bugreport.apple.com requires paid ADC subscription, which I has not. But it worked with my

Re: Best 'native' formats for NSImage and NSSound?

2008-09-09 Thread Phil
On Tue, Sep 2, 2008 at 5:18 AM, Matt <[EMAIL PROTECTED]> wrote: > In running Shark on my app recently I noticed that by far, my app spent most > of its time in: CGSConvertBGR888toRGBA. > This has come up on the quartz-dev mailing list:

Re: Best 'native' formats for NSImage and NSSound?

2008-09-09 Thread Negm-Awad Amin
Hi, do you load the image with -imageNamed: and add the suffix? IIRC, this forces NSImage to reload the image file. Did you try to refer to the image without suffx? In this case NSImage looks for a appropiate image in iits image heap and takes this one instead of the file. If it does not