Re: How to draw text to bitmap (array) with pre 10.5 libs

2009-12-01 Thread John Horigan
>> >> Indeed, the initWithBitmapDataPlanes method treats the supplied buffer as >> immutable and creates its own internal copy. > > This is not correct. From the docs [1]: > > "If planes is not NULL and the array contains at least one data pointer, the > returned object will only reference th

NSString out of scope

2009-12-01 Thread Pierre Berloquin
Hi How come an NSString or NSMutableString I declare in the view controler .h interface NSMutableString *language; is "out of scope" even before I do anything with it in the .m implementation language = [[NSMutableString alloc] init]; Thanks Pierre

Re: What to subclass in NSArrayController to enable immediate editing of added rows?

2009-12-01 Thread Mike Abdullah
On 1 Dec 2009, at 03:57, David Hirsch wrote: > I have read about this online, but I can't find a solution that (a) works and > (b) seems wise. > I'm trying to have my table immediately enable editing of added items. The > NSTableView is bound to an NSArrayController. I've subclassed > NSArra

Hightlight on mouseover a NSTextFieldCell inside a TableView

2009-12-01 Thread Gustavo Pizano
Hello, I have been searching how to achieve this. I have a NSTableView and the NSTableCells are a subclass I made. Now I want to change the backgorund color of the table row when mouse over. In my SubClass of NSTextFieldCell I tried overriding these methods - (BOOL)startTrackingAt:(NSPoint)start

Re: copyWithZone - if anyone could explain this to me ?

2009-12-01 Thread Graham Cox
On 01/12/2009, at 6:06 PM, Clark Cox wrote: > True, but history is a powerful force. This is also why the > documentation on NSCopyObject states: > > "This function is dangerous and very difficult to use correctly. It's > use as part of copyWithZone: by any class that can be subclassed, is > hig

Re: NSString out of scope

2009-12-01 Thread Graham Cox
On 01/12/2009, at 7:39 PM, Pierre Berloquin wrote: > How come an NSString or NSMutableString I declare in the view controler .h > interface > > NSMutableString *language; > > > is "out of scope" even before I do anything with it in the .m implementation > > > language = [[NSMutableString all

Re: Hightlight on mouseover a NSTextFieldCell inside a TableView

2009-12-01 Thread Graham Cox
On 01/12/2009, at 9:06 PM, Gustavo Pizano wrote: > Hello, I have been searching how to achieve this. OK, usual blather about mouseovers being untypical UI on the Mac that is not encouraged by the HIG. > I have a NSTableView and the NSTableCells are a subclass I made. > Now I want to change th

Re: Does NSData rearrange the order of bits?

2009-12-01 Thread Jeremy Pereira
On 30 Nov 2009, at 20:32, Brad Gibbs wrote: > Another list member mailed me an explanation offline, causing me to look for > and find the real problem preventing my code from running. Any chance of posting the off list response back to the list? It would improve the usefulness of the list arc

Re: Hightlight on mouseover a NSTextFieldCell inside a TableView

2009-12-01 Thread Gustavo Pizano
Graham... tanks for the reply I will take a lookt at the method, and see... maybe you are right, this may be against all.. ... Thanks for the help once again you were of great aid. Gustavo On Dec 1, 2009, at 11:41 AM, Graham Cox wrote: > > On 01/12/2009, at 9:06 PM, Gustavo Pizano wrote: >

Re: NSString out of scope

2009-12-01 Thread Pierre Berloquin
Graham: Here is the whole sad truth about it : My .h begins with // The_Paris_PuzzlesViewController.h #import #import #import "Affiche.h" #import "VagPiece.h" @protocol UIActionSheetDelegate; @interface The_Paris_PuzzlesViewController : UIViewController { NSMutableArray *lesImagesV

Re: NSString out of scope

2009-12-01 Thread Roland King
On 01-Dec-2009, at 7:07 PM, Pierre Berloquin wrote: > > I have no problem with lesImagesVues but langueChoisie is out of scope. > This remains so even if I initialize in viewDidLoad, even if I make it a > @property, and through out the code, etc. > What does 'out of scope' mean? What is the ac

Re: iterating and removing objects from a collection

2009-12-01 Thread Jeremy Pereira
On 30 Nov 2009, at 21:21, Ken Thomases wrote: > On Nov 30, 2009, at 2:45 PM, Dennis Munsie wrote: > >> I run into this all the time where I need to iterate through an >> NSMutableArray (or set, etc, etc) and remove some of the items. My normal >> pattern has been this: >> >> NSMutableSet *remo

Re: NSString out of scope

2009-12-01 Thread Pierre Berloquin
When I want to test the content of the string I can't and the debugger displays "out of scope". 2009/12/1 Roland King > > On 01-Dec-2009, at 7:07 PM, Pierre Berloquin wrote: > > > > > I have no problem with lesImagesVues but langueChoisie is out of scope. > > This remains so even if I initialize

Re: NSString out of scope

2009-12-01 Thread Graham Cox
On 01/12/2009, at 10:52 PM, Pierre Berloquin wrote: > When I want to test the content of the string I can't and the debugger > displays "out of scope". Ah, the debugger! Now we are getting somewhere. I see that fairly frequently. It's not necessarily indicative of a code error, since as far a

Re: NSString out of scope

2009-12-01 Thread Roland King
you could also (and I'd sort of recommend it) post over on the XCode list and ask about this, there's some very knowledgeable people over there who know all there is to know about the toolchain and may well be able to help you. On 01-Dec-2009, at 8:14 PM, Graham Cox wrote: > > On 01/12/2009,

Re: dynamic NSPointArray allocation

2009-12-01 Thread Jonathan Dann
Just use NSPointerArray: @implementation NSPointerFunctions (Additions) static NSUInteger _PointerFunctionsCGPointStructSize(const void *item) { return sizeof(CGPoint); } + (NSPointerFunctions *)pointerFunctionsForCGPoint; { NSPointerFunctions *aPointerFunctions = [NSPointerFunct

Controller does not contain associated window after initialization

2009-12-01 Thread Bryan Zarnett
I am creating an application with multiple NIB files. I created an empty NIB, put down a new window and added an Object for the controller. I wired the controller object to the window and the nib as well as a few actions. In my controller class I have added the following: if (self = [sup

Re: Controller does not contain associated window after initialization

2009-12-01 Thread Graham Cox
On 02/12/2009, at 1:31 AM, Bryan Zarnett wrote: > I am creating an application with multiple NIB files. I created an empty > NIB, put down a new window and added an Object for the controller. I wired > the controller object to the window and the nib as well as a few actions. > > In my contro

Please ask clearer questions [Re: NSString out of scope]

2009-12-01 Thread Jens Alfke
On Dec 1, 2009, at 12:39 AM, Pierre Berloquin wrote: > How come an NSString or NSMutableString I declare in the view controler .h > interface [...] > is "out of scope" even before I do anything with it in the .m implementation ... [skipping four intervening posts] ... On Dec 1, 2009, at 4:14 AM

Re: Controller does not contain associated window after initialization

2009-12-01 Thread Bryan Zarnett
Thanks Graham On 1-Dec-09, at 9:48 AM, Graham Cox wrote: On 02/12/2009, at 1:31 AM, Bryan Zarnett wrote: I am creating an application with multiple NIB files. I created an empty NIB, put down a new window and added an Object for the controller. I wired the controller object to the windo

Re: Carbon menus in Cocoa app

2009-12-01 Thread Charles Srstka
On Nov 30, 2009, at 7:03 AM, Vikram Sethi wrote: > - I understand that we should move our menu handling to Cocoa and > that would resolve the problem. We will do that, however, we plan to > modernize our app incrementally, taking one step at a time. Is there a low > cost tweak/hack that w

Re: totally baffled by "odoc" apple event failing on launch

2009-12-01 Thread Matt Neuburg
On Mon, 30 Nov 2009 17:33:49 -0800, "David M. Cotter" said: >recently our app has stopped responding to "odoc" apple events on startup. that is, if the user double clicks a document of our app, and this causes the app to launch, then the document is not opened. (cnr when app is already launched).

Re: Some questions/problems regarding CALayers

2009-12-01 Thread Matt Neuburg
On Tue, 1 Dec 2009 03:35:57 +0200, Henri H?kkinen said: >Hello. > >I'm trying to implement my custom NSView derived class to draw a chessboard with chess pieces on it. I'm using Core Animation's CALayer classes since I want to use animation with other effects later on. > >Currently I have have Boa

Re: totally baffled by "odoc" apple event failing on launch

2009-12-01 Thread David M. Cotter
>> recently our app has stopped responding to "odoc" apple events on startup. >> that is, if the user double clicks a document of our app, and this causes the >> app to launch, then the document is not opened. (cnr when app is already >> launched). same story dropping the doc icon onto the app ico

Re: NSString out of scope

2009-12-01 Thread Eddie Aguirre
Try printing the variable through gcc at the breakpoint. "po langueChoisie" I've had similar issues but usually printing from gcc will display the contents. -- Eddie Aguirre On Dec 1, 2009, at 4:14 AM, Graham Cox wrote: > > On 01/12/2009, at 10:52 PM, Pierre Berloquin wrote: > >> When I want

Re: Carbon menus in Cocoa app

2009-12-01 Thread Eric Schlegel
On Nov 30, 2009, at 5:03 AM, Vikram Sethi wrote: > Though the menu bar appears and the individual menu items get created and > get added to the hierarchy (verified it while debugging), the menus do not > open when I click on the menu bar. The menus are also Carbon based. They are > defined as a ‘

Re: totally baffled by "odoc" apple event failing on launch

2009-12-01 Thread Dave Keck
> i have run with AEDebug / Send / Receives set to 1 and i see the log > of the events. but i can only do that when launching from the command > line (no double click) or from Xcode (again no double click) so there is > no way to test my problem with these debug vars set. http://developer.apple.co

Re: Hightlight on mouseover a NSTextFieldCell inside a TableView

2009-12-01 Thread Corbin Dunn
On Dec 1, 2009, at 2:06 AM, Gustavo Pizano wrote: > Hello, I have been searching how to achieve this. > I have a NSTableView and the NSTableCells are a subclass I made. > Now I want to change the backgorund color of the table row when mouse over. > In my SubClass of NSTextFieldCell I tried ove

problem encoding large float* matrix

2009-12-01 Thread James Maxwell
I'm trying to save the state of my app. It chews up a lot of memory, most of which is in large float* matrices. I'm getting an EXC_BAD_ACCESS error in -encodeBytes:length:forKey: and I'm just wondering what might be happening. The float* "coincidences" is a malloced array. NSUInteger coincsSize

Re: problem encoding large float* matrix

2009-12-01 Thread Nick Zitzmann
On Dec 1, 2009, at 11:47 AM, James Maxwell wrote: > NSUInteger coincsSize = maxCoincs * inputSize * sizeof(float); > NSData* coincData = [NSData dataWithBytesNoCopy:&coincidences > length:coincsSize]; > [aCoder encodeBytes:[coincData bytes] length:coincsSize > forKey:@"coincidences"]; > > The

Re: NSString out of scope

2009-12-01 Thread Pierre Berloquin
Thanks. I'm travelling, I'll try that on Friday. Pierre 2009/12/1 Eddie Aguirre > Try printing the variable through gcc at the breakpoint. "po > langueChoisie" > > I've had similar issues but usually printing from gcc will display the > contents. > > -- > Eddie Aguirre > > On Dec 1, 2009, at 4:

Re: problem encoding large float* matrix

2009-12-01 Thread Quincey Morris
On Dec 1, 2009, at 10:47, James Maxwell wrote: > I'm trying to save the state of my app. It chews up a lot of memory, most of > which is in large float* matrices. I'm getting an EXC_BAD_ACCESS error in > -encodeBytes:length:forKey: and I'm just wondering what might be happening. > The float* "c

Re: problem encoding large float* matrix

2009-12-01 Thread Greg Guerin
James Maxwell wrote: NSUInteger coincsSize = maxCoincs * inputSize * sizeof(float); NSData* coincData = [NSData dataWithBytesNoCopy:&coincidences length:coincsSize]; [aCoder encodeBytes:[coincData bytes] length:coincsSize forKey:@"coincidences"]; It makes no sense to go through an NSData o

Re: problem encoding large float* matrix

2009-12-01 Thread Sherm Pendley
On Tue, Dec 1, 2009 at 1:47 PM, James Maxwell wrote: > I'm trying to save the state of my app. It chews up a lot of memory, most of > which is in large float* matrices. I'm getting an EXC_BAD_ACCESS error in > -encodeBytes:length:forKey: and I'm just wondering what might be happening. > The flo

How do I bind ManagedObject's relationships to a view?

2009-12-01 Thread Daniel Wambold
Hello, List. I am a novice with CoreData and bindings and I've stumped myself with this problem. I have created an xcdatamodel that contains 3 objects: an Account object with a relationship property authorizedUsers, which is a to-many relationship with a Person object. The Person object has

Re: Hightlight on mouseover a NSTextFieldCell inside a TableView

2009-12-01 Thread Gustavo Pizano
Cobrin hi. Thanks for the example name. Im checkin it... mmm too many information for my knowledge, well I understand what they do, no wI need to implement it in y app.. but honestly speaking, I dunno if im ready to face that beast. I will give it a try tough. g.. On Dec 1, 2009, at 7:42 PM,

Re: problem encoding large float* matrix

2009-12-01 Thread James Maxwell
Wow! I'd forgotten how helpful this list is - and how quickly! Everyone pointing out my use of &coincidences is obviously right. I figured it out soon after getting my first reply. I already made an @property accessor for coincidences, so I just used that and the crashes went away. As far as t

Re: problem encoding large float* matrix

2009-12-01 Thread James Maxwell
> > As far as the NSData goes, I'm glad you pointed the redundancy of it out. > I'll just encode the bytes themselves. > erm... actually, just using: [aCoder encodeBytes:coincidences length:coincsSize forKey:@"coincidences"]; fails with a complaint about getting a float* when it expects a ui

Re: Keyword @defs

2009-12-01 Thread Kyle Sluder
On Mon, Nov 30, 2009 at 1:33 PM, Ben Haller wrote: >  This is interesting to me, since I am in fact using @public and -> with > some ivars to allow faster use of one of my classes.  (Yes, I've confirmed > that this is significant in Sampler; it is, in fact, quite a large > percentage of the total

Re: totally baffled by "odoc" apple event failing on launch

2009-12-01 Thread M Pulis
Tried AE Monitor (Oxalyn Software)? Oxalyn Software > Æ Monitor Gary On Dec 1, 2009, at 11:31 AM, David M. Cotter wrote: recently our app has stopped responding to "odoc" apple events on startup. that is, if the user double clicks a document of our app, and this causes the app to launch,

Re: removing all sublayers from a layer with fast enumeration

2009-12-01 Thread Kyle Sluder
On Mon, Nov 30, 2009 at 11:40 AM, Matt Neuburg wrote: > NSArray* arr = [NSArray arrayWithArray: myview.layer.sublayers]; I wouldn't be surprised if -[CALayer sublayers] returns some funky KVO proxy array object that -arrayWithArray: returns unmodified. --Kyle Sluder _

Re: problem encoding large float* matrix

2009-12-01 Thread Quincey Morris
On Dec 1, 2009, at 12:03, James Maxwell wrote: > [aCoder encodeBytes:coincidences length:coincsSize forKey:@"coincidences"]; > > fails with a complaint about getting a float* when it expects a uint8_t > const. > In fact, I know remember that's why I used the NSData in the first place... > any

Re: problem encoding large float* matrix

2009-12-01 Thread Greg Guerin
James Maxwell wrote: erm... actually, just using: [aCoder encodeBytes:coincidences length:coincsSize forKey:@"coincidences"]; fails with a complaint about getting a float* when it expects a uint8_t const. In fact, I know remember that's why I used the NSData in the first place... any th

Re: problem encoding large float* matrix

2009-12-01 Thread Jens Alfke
On Dec 1, 2009, at 12:03 PM, James Maxwell wrote: erm... actually, just using: [aCoder encodeBytes:coincidences length:coincsSize forKey:@"coincidences"]; fails with a complaint about getting a float* when it expects a uint8_t const. In fact, I know remember that's why I used the NSData

Re: problem encoding large float* matrix

2009-12-01 Thread James Maxwell
Okay, I got everything working using the NSData objects. I'll try encoding the bytes again with the unint8_t* cast. I don't know why I didn't try that... I'm really not very comfortable when it gets down to this low-level stuff. I'm a musician, and my programming experience came from MaxMSP, to

Re: What to subclass in NSArrayController to enable immediate editing of added rows?

2009-12-01 Thread Sean McBride
On 11/30/09 7:57 PM, David Hirsch said: >I'm trying to have my table immediately enable editing of added >items. I have a handy NSTableView category to do that: - (void)makeEditableSelectedCellOfColumnIdentifier:(NSString*) inColumnIdentifier { NSTableColumn* column = [self tableColumnW

Re: What to subclass in NSArrayController to enable immediate editing of added rows?

2009-12-01 Thread David Hirsch
Well, that is a nice bit of code to have, but it doesn't really address the issue. As I wrote in my original post, there are a number of published methods for handing this in (for example) the NSDocument subclass. What *I* want to do is handle it in my NSArrayController subclass, for enc

Re: What to subclass in NSArrayController to enable immediate editing of added rows?

2009-12-01 Thread Sean McBride
On 12/1/09 1:51 PM, David Hirsch said: >Well, that is a nice bit of code to have, but it doesn't really >address the issue. As I wrote in my original post, there are a number >of published methods for handing this in (for example) the NSDocument >subclass. What *I* want to do is handle it in my

Re: What to subclass in NSArrayController to enable immediate editing of added rows?

2009-12-01 Thread David Hirsch
Here is the solution I've found to work: subclassing NSArrayController's addObject. It does violate MVC in knowing about the view, but for me that is a reasonable trade-off to avoid having a bunch of different custom add: methods in my document subclass for each table I have to deal with.

Re: Keyword @defs

2009-12-01 Thread Ben Haller
On 1-Dec-09, at 3:21 PM, Kyle Sluder wrote: On Mon, Nov 30, 2009 at 1:33 PM, Ben Haller wrote: This is interesting to me, since I am in fact using @public and -> with some ivars to allow faster use of one of my classes. (Yes, I've confirmed that this is significant in Sampler; it is, in f

Re: What to subclass in NSArrayController to enable immediate editing of added rows?

2009-12-01 Thread Kyle Sluder
On Tue, Dec 1, 2009 at 2:05 PM, Sean McBride wrote: > NSArrayController is a model-controller, seems a little odd to me that > you would want it to be aware of NSView instances.  Not that MVC must be > followed religiously, but still. Don't know if I agree with this. It's a controller object, an

Control Appearance on Textured Window Sheet

2009-12-01 Thread Mazen M. Abdel-Rahman
Hi All, First of all - I want to thank everyone for helping me with my previous questions. Now for my next question - I have an application where I place the window in a separate *.xib (I called "MyWindow.xib") file from the Main Menu. I deleted the window that's in MainMenu.xib. When the

Re: totally baffled by "odoc" apple event failing on launch

2009-12-01 Thread David M. Cotter
i've "fixed" this by installing an AE handler before startup, trapping the dropped events, then re-sending them to the NSApp after startup has completed (and removing the intrim handler, since NSApp is up and handling them by then) On Dec 1, 2009, at 12:25 PM, M Pulis wrote: > Tried AE Monitor

[NSWindow document]?

2009-12-01 Thread Andy Lee
I've stumbled onto the fact that NSWindow responds to the -document message, but I can't find any documentation for this. Normally I'd ignore this as I would any undocumented API, but (a) the method name does not begin with an underscore, (b) it seems like a reasonable property for NSWindow to

NSHTTPCookieStorage to implement "Sign Out" functionality

2009-12-01 Thread Jesse Grosjean
My desktop app connects to a web application that's hosted on Google App engine. Once it authenticates it gets a cookie that it passes along for all future requests. That all works. But now I want to add "Sign out". That feature code looks like this: - (void)signOut { NSHTTPCookieStorage

Re: [NSWindow document]?

2009-12-01 Thread Kyle Sluder
On Tue, Dec 1, 2009 at 3:27 PM, Andy Lee wrote: > Is there documentation that confirms window.document as a property I'm > allowed to use?  Should I file a documentation bug, and/or should I file a > request that window.document be made officially public? You should probably stick to going thro

Re: [NSWindow document]?

2009-12-01 Thread Andy Lee
On Tuesday, December 01, 2009, at 06:36PM, "Kyle Sluder" wrote: >On Tue, Dec 1, 2009 at 3:27 PM, Andy Lee wrote: >> Is there documentation that confirms window.document as a property I'm >> allowed to use?  Should I file a documentation bug, and/or should I file a >> request that window.docume

Key path help for complex binding

2009-12-01 Thread David Hirsch
First thanks for all the help to date. I'm learning a great deal. The current problem: I have a model for which I cannot seem to figure out the correct key paths for binding. My doc has a rooms array (of Rooms) and a courses array (with NSArrayControllers). Each course has a roomConstraint

Re: [NSWindow document]?

2009-12-01 Thread Mike Abdullah
On 2 Dec 2009, at 00:07, Andy Lee wrote: > On Tuesday, December 01, 2009, at 06:36PM, "Kyle Sluder" > wrote: >> On Tue, Dec 1, 2009 at 3:27 PM, Andy Lee wrote: >>> Is there documentation that confirms window.document as a property I'm >>> allowed to use? Should I file a documentation bug, an

Use of preprocessor macros

2009-12-01 Thread Graham Cox
Just a quickie. I'm defining a preprocessor macro in the 'GCC 4.2 - Preprocessing / preprocessor macros' section of my project's build properties, e.g. foo=1. This is set only in the debug version. But when I try and use it in the source code, as in #if foo ... #endif I get 'foo is not define

Re: How do I bind ManagedObject's relationships to a view?

2009-12-01 Thread John Pannell
Hi Daniel- I just happened to be knocking out a prototype for something I'm working on with a similar structure to your example. It consists of "steps" that can have many "ports", or step <->> port. The example is pretty much code free; I was just trying to display and edit steps and ports us

Re: Use of preprocessor macros

2009-12-01 Thread Luke the Hiesterman
Don't you mean #ifdef foo rather than #if foo? Luke On Dec 1, 2009, at 4:59 PM, Graham Cox wrote: > Just a quickie. > > I'm defining a preprocessor macro in the 'GCC 4.2 - Preprocessing / > preprocessor macros' section of my project's build properties, e.g. foo=1. > This is set only in the de

Re: Use of preprocessor macros

2009-12-01 Thread Graham Cox
On 02/12/2009, at 12:04 PM, Luke the Hiesterman wrote: > Don't you mean #ifdef foo rather than #if foo? No, because foo=1 (In other builds foo=0) But either way, the symbol itself is 'not defined'. I take that to mean that the compiler can't even see it, even though it was added to preprocess

Re: Use of preprocessor macros

2009-12-01 Thread Marco S Hyman
> I'm defining a preprocessor macro in the 'GCC 4.2 - Preprocessing / > preprocessor macros' section of my project's build properties, e.g. foo=1. > This is set only in the debug version. I'm pretty sure that worked with 4.2. Currently I've a project using CLANG and "GCC_PREPROCESSOR_DEFINITIO

Re: Use of preprocessor macros

2009-12-01 Thread Rob Keniger
On 02/12/2009, at 10:59 AM, Graham Cox wrote: > I'm defining a preprocessor macro in the 'GCC 4.2 - Preprocessing / > preprocessor macros' section of my project's build properties, e.g. foo=1. > This is set only in the debug version. > > But when I try and use it in the source code, as in #if

Re: Use of preprocessor macros

2009-12-01 Thread Graham Cox
On 02/12/2009, at 12:23 PM, Rob Keniger wrote: > This works fine for me. Are you sure you are compiling the build > configuration you think you're compiling? Are you changing the preprocessor > setting on the right target? Probably worth double checking. Okaaay... I got it. I'd set this in t

Re: Use of preprocessor macros

2009-12-01 Thread Rob Keniger
On 02/12/2009, at 11:35 AM, Graham Cox wrote: > To be honest it's very confusing as to which settings you're supposed to use > for what, and where they apply, since they're all identical. If the project > settings are not used, why have them there at all? The project settings apply to all tar

Re: dynamic NSPointArray allocation

2009-12-01 Thread Andrew Farmer
On 1 Dec 2009, at 05:27, Jonathan Dann wrote: > Just use NSPointerArray... Just as is the case with an array of NSValue objects, NSPointerArray doesn't help here -- it makes no guarantees about how the objects will be arranged in memory, and NSBezierPath needs them to be contiguous.

View sizing issue when using "disclosure view"

2009-12-01 Thread Bryan Zarnett
I'm having trouble making sure I have the correct springs and struts for my view. At the top of the view I have a Split View that when the user resizes the window in height or length, the split view should appropriately resize. At the bottom I have a disclosure dialog which shows or hides

Re: NSAffineTransform scaleBy not scaling

2009-12-01 Thread Shane
Still trying to make this work right using transformUsingAffineTransform. If I add in translateXBy or scaleXBy, my wave (pointsPath) show up all wrong, not translated or scaled, but if I comment them out (as is below), my wave appears just fine, it's just not scaled. Am I not using them correctly?

Re: NSAffineTransform scaleBy not scaling

2009-12-01 Thread Graham Cox
On 02/12/2009, at 3:03 PM, Shane wrote: > Still trying to make this work right using > transformUsingAffineTransform. If I add in translateXBy or scaleXBy, > my wave (pointsPath) show up all wrong, not translated or scaled, but > if I comment them out (as is below), my wave appears just fine, it'

Re: NSAffineTransform scaleBy not scaling

2009-12-01 Thread Shane
> The problem is that the code you've posted is not the whole story. Sorry about that, just for clarity, here's how I'm filling the path. I will try to work with what you posted. Thanks. - (void) appendPoint:(NSPoint) point { if (firstPoint) { [pointsPath moveToPoin

Re: NSAffineTransform scaleBy not scaling

2009-12-01 Thread Graham Cox
On 02/12/2009, at 3:42 PM, Shane wrote: > - (void) appendPoint:(NSPoint) point > { > if (firstPoint) { > [pointsPath moveToPoint:point]; > > firstPoint = NO; > } > > [pointsPath lineToPoint:point]; > > pointCoun

Re: View sizing issue when using "disclosure view"

2009-12-01 Thread Ron Fleckner
On 02/12/2009, at 2:14 PM, Bryan Zarnett wrote: I'm having trouble making sure I have the correct springs and struts for my view. At the top of the view I have a Split View that when the user resizes the window in height or length, the split view should appropriately resize. At the botto

Re: View sizing issue when using "disclosure view"

2009-12-01 Thread Ron Fleckner
I wrote: [content addSubview:autoPilotMaxView]; whoops, meant to say: [content addSubview:myBox]; HTH, Ron ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moder

Un-mounting of first DMG is taking 15secs

2009-12-01 Thread Sravana Kumar
Hi all, In my application I need to mount and un-mount DMGs, but in one specific workflow un-mounting of first DMG is taking 15secs of time. I am using ‘hdiutil’ command and NSTask with the following options ... Mounting: hdiutil attach -noverify –noautoopen –nobrowse –noautofsck –readonly –qui

Re: Download Alert -- Quarantine information removal

2009-12-01 Thread Stephen J. Butler
On Tue, Dec 1, 2009 at 9:55 AM, Sravana Kumar wrote: > When did some analysis I found that file system keeps Quarantine information > in the extended attributes along with the files and shows this alert. > xattr -d com.apple.quarantine will remove this. > > But I am writing an installer and I am

Re: Download Alert -- Quarantine information removal

2009-12-01 Thread Stephen J. Butler
On Tue, Dec 1, 2009 at 9:55 AM, Sravana Kumar wrote: > I believe apple should provide some method through which I can copy files > without copying Quarantine information. > > The option left for me is to execute the above command for all the files to > be copied. But it leads to performance degrad

Re: Key path help for complex binding

2009-12-01 Thread David Hirsch
Well, I found a work-around. Bindings still fail to work, but I can trigger a KVO message to be sent to the NSTableColumn manually by calling rearrangeObjects on my intermediary NSArrayController (selectedCourseRoomCosts). I'd still like to make bindings do this without the kludge. -Dave

Re: Download Alert -- Quarantine information removal

2009-12-01 Thread John Joyce
On Dec 1, 2009, at 11:03 PM, cocoa-dev-requ...@lists.apple.com wrote: > Hi all, > > If I download a DMG from web and launch an (XYZ) application from it, then > system will show an alert saying „ XYZ is an application which was > downloaded from the Internet. Are you sure you want to open it?‰ P

Migrating changed objects between contexts

2009-12-01 Thread Jim Thomason
I'm stumped and hoping that there's some easy solution that I just haven't dug up yet. Yes, this is another coredata multithreading question. Anyway, in my application the user types in data and fills out forms and such. It's all tied into CoreData via bindings. Nothing exciting. But - I've also g

Re: Un-mounting of first DMG is taking 15secs

2009-12-01 Thread John Joyce
On Dec 1, 2009, at 11:03 PM, cocoa-dev-requ...@lists.apple.com wrote: > Hi all, > > In my application I need to mount and un-mount DMGs, but in one specific > workflow un-mounting of first DMG is taking 15secs of time. > > I am using Œhdiutil‚ command and NSTask with the following options ... >

Re: Download Alert -- Quarantine information removal

2009-12-01 Thread Andrew Farmer
On 1 Dec 2009, at 22:04, John Joyce wrote: > Please do not do this. > Please read the documentation on why this is there and what is expected > behavior. > Code Signing does not prevent this. > Even Apple software that is downloaded internally triggers the quarantine > message to users on first

Re: Download Alert -- Quarantine information removal

2009-12-01 Thread John Joyce
Doh! Sleepiness! Sry Sent from my iPhone On Dec 2, 2009, at 12:17 AM, Andrew Farmer wrote: On 1 Dec 2009, at 22:04, John Joyce wrote: Please do not do this. Please read the documentation on why this is there and what is expected behavior. Code Signing does not prevent this. Even Apple sof