Re: IKFilterUIView uiConfiguration values - huh?

2008-11-09 Thread Nathan Kinsinger
On Nov 9, 2008, at 12:10 AM, Graham Cox wrote: What is the value expected for: IKUImaxSize Controls whose dimensions are the maximum allowable for the filter view. A width or height of 0 indicates that that dimension of the view is not restricted. If the size requested is too small, the

Observing NSArrayController selectionIndex always returns null

2008-11-09 Thread Ken Tozier
Hi I'm trying to observe an NSArrayController's selectionIndex which, according to the documentation here: http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSArrayController_Class/Reference/Reference.html#/ /apple_ref/occ/instm/NSArrayController/selectionIndex

CoreAudio — AudioUnit and AudioUnitExternalBuf fer

2008-11-09 Thread Yoann Gini
Hi folks, For a project I need to use AudioUnit with an AudioUnitExternalBuffer with special size. But I haven't in documentation how use this buffer. Someone know how I can say to my AudioUnit hey guy, use this special buffer!. (I've already set the property

Re: runModalSession in Cocoa plugin for Carbon app does not return

2008-11-09 Thread Colin Barrett
What exactly do you mean by Cocoa plug-in application? -Colin On Sun, Nov 9, 2008 at 1:58 AM, Alexander Shmelev [EMAIL PROTECTED] wrote: Hello, I have following code in my Cocoa plug-in application: NSModalSession session = [NSApp beginModalSessionForWindow:theWindow]; for (;;) { if

Re: runModalSession in Cocoa plugin for Carbon app does not return

2008-11-09 Thread Alexander Shmelev
I have TWAIN Data Source written with Cocoa. When I use it from Image Capture, everything is ok. But when I try to use it from GIMP (Carbon) or Photoshop CS3 (Carbon), [NSApp runModalSession] is called once, but returns only when [NSApp stopModal] called. But I expect that [NSApp

Re: IKFilterUIView uiConfiguration values - huh?

2008-11-09 Thread Graham Cox
On 9 Nov 2008, at 7:11 pm, Nathan Kinsinger wrote: On Nov 9, 2008, at 12:10 AM, Graham Cox wrote: What is the value expected for: IKUImaxSize Controls whose dimensions are the maximum allowable for the filter view. A width or height of 0 indicates that that dimension of the view is not

Can't get CABasicAnimation to explicitly animate frame property of CALayer

2008-11-09 Thread Oleg Krupnov
Using Core Animation, I want to make a layer change its position and size with animation. So I need to use the frame property of CALayer, which is animatable, according to the documentation. The implicit animation like this: [theLayer setFrame:NSRectToCGRect(targetFrame)]; works perfectly, but

runModalSession in Cocoa plugin for Carbon app does not return

2008-11-09 Thread Alexander Shmelev
Hello, I have following code in my Cocoa plug-in application: NSModalSession session = [NSApp beginModalSessionForWindow:theWindow]; for (;;) { if ([NSApp runModalSession:session] != NSRunContinuesResponse) break; [self doSomeWork]; } I use modal sessions for displaying dialog

NSAttributedString in NSAffineTransform

2008-11-09 Thread Joseph Ayers
I am having a tremendous problem getting the vertical text in the y Axis of a graph. If i try to rotate text specified as NSAttributedString it appears to get translated in nonlinear ways: I would assume that in the below, the text would rotate around NSMinX(rect) and NSMinY(rect) but it

Re: NSAttributedString in NSAffineTransform

2008-11-09 Thread Graham Cox
On 10 Nov 2008, at 1:01 am, Joseph Ayers wrote: I am having a tremendous problem getting the vertical text in the y Axis of a graph. If i try to rotate text specified as NSAttributedString it appears to get translated in nonlinear ways: I would assume that in the below, the text would

Re: CoreAudio — AudioUnit and AudioUnitExter nalBuffer

2008-11-09 Thread Michael Ash
On Sun, Nov 9, 2008 at 4:20 AM, Yoann Gini [EMAIL PROTECTED] wrote: Hi folks, For a project I need to use AudioUnit with an AudioUnitExternalBuffer with special size. But I haven't in documentation how use this buffer. Someone know how I can say to my AudioUnit hey guy, use this

Re: CoreAudio — AudioUnit and AudioUnitExter nalBuffer

2008-11-09 Thread Yoann Gini
Thank for your answer, I try now on the coreaudio list. I've hope that someone have the answer here. Thanks Le 9 nov. 08 à 17:56, Michael Ash a écrit : On Sun, Nov 9, 2008 at 4:20 AM, Yoann Gini [EMAIL PROTECTED] wrote: Hi folks, For a project I need to use AudioUnit with an

How to manage (My)SQL data in Cocoa

2008-11-09 Thread Michele Barboni
Hi, I'm developing a small application for showing/adding/modifying/ deleting entries for a MySQL database by some NSTableViews. My (mysql) tables are very simple, all of them has as primary-key and foreign-key an integer (autoincrement), other columns are varchar() or text. Currently

Re: How to manage (My)SQL data in Cocoa

2008-11-09 Thread Quincey Morris
On Nov 9, 2008, at 09:16, Michele Barboni wrote: Currently I'm querying the database for a column at once, building an NSArray of them and add all NSArrays (the columns) in a NSMutableArray (the table). For editing I'm doing queries in the NSTableView controller (and I really don't like

Re: NSArrayController, bindings and NSUserDefaults

2008-11-09 Thread Andre Masse
Thanks a lot for your example Steven. I'm probably over thinking this. I'll just use IB, no custom class, no encoding no trouble :-) Thanks again, Andre Masse On Nov 9, 2008, at 15:13, Steven Riggs wrote: Check out a code sample (using no code, just IB)...

Re: Inviting to comment on Cocoa categories

2008-11-09 Thread Graham Cox
On 10 Nov 2008, at 5:47 am, Tommy Nordgren wrote: // TN+NSAffineTransform.h @interface NSAffineTransform (TNGraphics) A comment on naming conventions. It doesn't matter that much especially if you are just using them privately, but there's an inconsistency here. Usually I name category

Re: NSGraphiteControlTint in app

2008-11-09 Thread Andrew Merenbach
On Nov 9, 2008, at 1:11 PM, Ralph Manns wrote: There are some application, whose controls use the NSGraphiteControlTint, although the control tint in System Preference is set to NSBlueControlTint. How can this be done? Thanks, Ralph. Hi! My answer is below, but I strongly advise you

Re: Signature Recognition in Cocoa

2008-11-09 Thread Pierce Freeman
As I am not very familiar to signature recognition (as you may have noticed) where can I learn how to get the algorithm in code form? Also, are there other methods that could get a more precise output? Thanks, Pierce F. On 11/3/08 1:47 AM, Raphael Sebbe [EMAIL PROTECTED] wrote: If you have

Re: Inviting to comment on Cocoa categories

2008-11-09 Thread Bill Bumgarner
On Nov 9, 2008, at 3:07 PM, Graham Cox wrote: +(NSAffineTransform *) transformRotatedAroundPoint:(NSPoint) p degrees:(CGFloat) deg; A handy method, but I wonder if it could be named to be more readable with respect to its actual function, for example: +

Re: Xcode's New Data Model reads ivars as attributes ?!?

2008-11-09 Thread Chris Hanson
Core Data can use instance variables as storage for attributes (and relationships) instead of managing the storage itself. This is discouraged though because it doesn't buy you anything as a developer - in fact, it can be more efficient for Core Data to manage storage itself - and it makes

Re: Inviting to comment on Cocoa categories

2008-11-09 Thread Tommy Nordgren
On 10 nov 2008, at 00.07, Graham Cox wrote: On 10 Nov 2008, at 5:47 am, Tommy Nordgren wrote: // TN+NSAffineTransform.h @interface NSAffineTransform (TNGraphics) A comment on naming conventions. It doesn't matter that much especially if you are just using them privately, but there's

Re: Inviting to comment on Cocoa categories

2008-11-09 Thread Michael Ash
On Sun, Nov 9, 2008 at 9:55 PM, Kyle Sluder [EMAIL PROTECTED] wrote: On Sun, Nov 9, 2008 at 1:47 PM, Tommy Nordgren [EMAIL PROTECTED] wrote: +(NSAffineTransform *) transformRotatedAroundPoint:(NSPoint) p degrees:(CGFloat) deg; Please be aware that rotation around a point other than the origin

Re: Inviting to comment on Cocoa categories

2008-11-09 Thread Kyle Sluder
On Sun, Nov 9, 2008 at 10:43 PM, Michael Ash [EMAIL PROTECTED] wrote: That's not so. Any affine transform is a linear transformation, and rotation around a point can certainly be represented as an affine transform. No, you have that backwards. Any linear transformation is an affine

Re: Cocoa and NSLog

2008-11-09 Thread Marcus
9 nov 2008 kl. 23.03 skrev Tommy Nordgren: Is it possible to open an Additional file for use by logging in Cocoa (I want it to contain ONLY the info logged from my App) You can do that by just redirect standard error to a file. Since each process has their own set of file descriptors it

Re: Inviting to comment on Cocoa categories

2008-11-09 Thread Graham Cox
On 10 Nov 2008, at 1:55 pm, Kyle Sluder wrote: Please be aware that rotation around a point other than the origin is not a linear transformation. This may be why such functionality was omitted from NSAffineTransform. It is linear. But maybe what you're referring to is that it's easy to

Re: NSGraphiteControlTint in app

2008-11-09 Thread Ralph Manns
Hello, I don't think the method setControlTint is the solution I'm looking for, because only a few classes have such a method, NSWindow doesn't. Maybe my question was to general. Is there a way without using private methods to set the complete appearance of an application to

Re: Help with this crashing method

2008-11-09 Thread Andre Masse
Ahh! Thanks a lot guys. Now I can sleep :-) Have a good night, Andre Masse ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at

NSGraphiteControlTint in app

2008-11-09 Thread Ralph Manns
There are some application, whose controls use the NSGraphiteControlTint, although the control tint in System Preference is set to NSBlueControlTint. How can this be done? Thanks, Ralph. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: Help with this crashing method

2008-11-09 Thread mmalcolm crawford
On Nov 9, 2008, at 9:03 PM, Andre Masse wrote: [userDict setObject:[NSImage imageNamed:NSImageNameUser] forKey:@userImage]; A default’s value must be a property list, that is, an instance of (or for collections a combination of instances of): NSData, NSString, NSNumber, NSDate,

Detect microphone

2008-11-09 Thread chaitanya pandit
Hi List, I'm using core audio to record sound, however i want to detect if a microphone is connected to the computer, how can i do that? I tried using QTKit to do this: QTCaptureDevice *soundDevice = [QTCaptureDevice defaultInputDeviceWithMediaType:QTMediaTypeSound]; BOOL

Re: NSArrayController, bindings and NSUserDefaults

2008-11-09 Thread Andre Masse
Thanks for your reply, I was using NSKeyeyArchiver to encoded my custom object. Didn't know about NSUnarchiveFromData though. Couldn't find it in Apple documentation neither. Anyway, I moved to a much simpler version which bypass using a custom class. It's now an array of

Re: Help with this crashing method

2008-11-09 Thread Roland King
can you put NSImage's in preferences without wrapping them in NSData first? by the way - why do you use [ NSString stringWithString:constant string ] instead of just using the string constant? Andre Masse wrote: Hi, I've been struggling with this method for the last couple of hours. I

Re: NSArrayController, bindings and NSUserDefaults

2008-11-09 Thread Andre Masse
Thanks for your reply Steven, I've tried that but no luck. I get the following error: [NSCFData 0x804a00 valueForUndefinedKey:]: this class is not key value coding-compliant for the key userName. In interface builder, you will need an Array controller done. Mode: ClassClass

Re: Cocoa and NSLog

2008-11-09 Thread Uli Kusterer
On 09.11.2008, at 23:03, Tommy Nordgren wrote: Is it possible to open an Additional file for use by logging in Cocoa (I want it to contain ONLY the info logged from my App) You can write your own logging function/macro that uses [NSString stringWithFormat: @, ...] and then appends that to a

Re: Inviting to comment on Cocoa categories

2008-11-09 Thread Kyle Sluder
On Sun, Nov 9, 2008 at 1:47 PM, Tommy Nordgren [EMAIL PROTECTED] wrote: +(NSAffineTransform *) transformRotatedAroundPoint:(NSPoint) p degrees:(CGFloat) deg; Please be aware that rotation around a point other than the origin is not a linear transformation. This may be why such functionality

Re: Help with this crashing method

2008-11-09 Thread Steven Riggs
You should try setObject:forKey: instead of registerDefaults: also... If you are using an array controller to handle the array in your user defaults, add your userDict object to the array controller instead of writing to defaults. Steven Riggs http://www.stevenriggs.com On Nov 10,

NSArrayController, bindings and NSUserDefaults

2008-11-09 Thread Andre Masse
Hi, I'm having difficulties binding (in IB) my application's preferences to NSUserDefaults. It's easy to bind simple values, but not so when using composite objects in an array where each element is an object archived as NSData with NSKeyedArchiver. Further more, when the object has

Help with this crashing method

2008-11-09 Thread Andre Masse
Hi, I've been struggling with this method for the last couple of hours. I just can't see where the problem is. I get the following error which I suppose indicate that I've released something I shouldn't... Since I'm not releasing anything, I wonder what I'm doing wrong. Must be some

Re: NSArrayController, bindings and NSUserDefaults

2008-11-09 Thread Volker in Lists
Hi, you need an formatter - NSUnarchiveFromData and then it works rather well. I store supplementary information that each user can edit in NSUserDefaults. The info is maintained in NSTableViews and stored as an Array of NSMutableDictionary. Works really well. Volker Am 09.11.2008 um

Re: Help with this crashing method

2008-11-09 Thread Bill Bumgarner
On Nov 9, 2008, at 9:03 PM, Andre Masse wrote: + (void) initialize { NSMutableDictionary *defaultValues = [NSMutableDictionary dictionary]; NSMutableDictionary *userDict = [NSMutableDictionary dictionary]; [userDict setObject:[NSImage imageNamed:NSImageNameUser]

Cocoa and NSLog

2008-11-09 Thread Tommy Nordgren
Is it possible to open an Additional file for use by logging in Cocoa (I want it to contain ONLY the info logged from my App) -- Home is not where you are born, but where your heart finds peace - Tommy Nordgren, The dying old crone [EMAIL

Inviting to comment on Cocoa categories

2008-11-09 Thread Tommy Nordgren
TN+NSAffineTransform.h Description: Binary data TN+NSBezierPath.h Description: Binary data TN+NSAffineTransform.m Description: Binary data TN+NSBezierPath.m Description: Binary data I would like comments on the following Categories on NSBezierPath and NSAffineTransform. In particular

Subject: Re: Core Data entity fetching by date

2008-11-09 Thread Steve Steinitz
Hi, Quincy gave such a masterful and complete answer that I felt compelled to also make a small contribution. If you decide to go the in-memory route, this simple routine may save you a few minutes of head scratching: - (BOOL) selectedRangeContainsDate: (NSDate *) date {

Re: NSArrayController, bindings and NSUserDefaults

2008-11-09 Thread Steven Riggs
Check out a code sample (using no code, just IB)... http://idisk.mac.com/steven.riggs-Public?view=web -Steve On Nov 9, 2008, at 2:41 PM, Andre Masse wrote: Thanks for your reply Steven, I've tried that but no luck. I get the following error: [NSCFData 0x804a00 valueForUndefinedKey:]:

Using CIFilter and IKFilterUIView

2008-11-09 Thread Graham Cox
I'm using CIFilter to perform some special effects in my app, and I'm using IKFilterUIView to provide the interactive parameters to this. Leaving aside the problem of this UI being all over the place, layout- wise, I'm also having difficulty understanding what I need to do to actually make

Re: MVC Question . . .

2008-11-09 Thread Ken Thomases
On Nov 8, 2008, at 7:46 PM, Michael A. Crawford wrote: I have a model-view-control class hierarchy that I'd like to add an auxiliary (test-only) view to. I've created a 2nd NIB with an NSPanel instance associated with a sub-classed NSWindowController. I'm able to load the NIB and

Re: NSArrayController, bindings and NSUserDefaults

2008-11-09 Thread Steven Riggs
This worked for me... In interface builder, you will need an Array controller Mode: ClassClass Name:NSMutableDictionary Content Array bound to Shared User Defaults Controller - controller key:values - modal key path:yourDefaultsKey Make sure handles content as a compound value is

Re: Signature Recognition in Cocoa

2008-11-09 Thread Michael Paluszek
There is a lot of information available http://www.ee.bilkent.edu.tr/~signal/defevent/papers/cr2010.pdf http://code.google.com/p/sigrecnn/ http://www.it.lut.fi/kurssit/03-04/01097/seminars/Kalenova.pdf Sincerely, Mike On Nov 9, 2008, at 7:14 PM, Pierce Freeman wrote: As I am not very

Re: Opening persistent data store

2008-11-09 Thread Charles Srstka
On Nov 8, 2008, at 11:06 PM, Jerry Krinock wrote: Try -[NSDocument readFromData:ofType:error:]. True, because you must read an sqlite database, you're not going to use the data that you are passed as an argument. But that's OK. It will be autoreleased and go away. What if the file is