Re: DTrace probe problem

2008-06-05 Thread radj
> http://www.cocoadev.com/index.pl?NSTaskArguments > Oh. So that's how it's supposed to be done. Use "which dtrace" in the shell to find out the path to the dtrace > executable. > Found it. It's "/usr/sbin/dtrace". Finally made DTrace run off from the driver but unfortunately, dtrace requires m

Re: App hangs when displaying any sheet in 10.5 [SOLVED]

2008-06-05 Thread Andrew Farmer
On 05 Jun 08, at 22:58, Graham Cox wrote: callL_objc_msgSend$stub lealLC17-"L012$pb"(%ebx), %ecx movl%eax, %edx andl$65535, %edx shrl$16, %eax cvtsi2ss%eax, %xmm0 cvtsi2ss%edx, %xmm1 mulss

Re: App hangs when displaying any sheet in 10.5 [SOLVED]

2008-06-05 Thread Graham Cox
I agree, the compiler ought to be able to use the return type to disambiguate two otherwise identically named methods (or warn of the mismatch) - but it clearly doesn't. This is interesting - I looked at the assembly code of the two cases. Here's the code for the line: float lp = [lh posi

Re: App hangs when displaying any sheet in 10.5 [SOLVED]

2008-06-05 Thread Hamish Allan
On Fri, Jun 6, 2008 at 6:26 AM, Graham Cox <[EMAIL PROTECTED]> wrote: > I guess the question is, given an object type 'id', which method signature > will the compiler go with? Does the return type affect the method signature? > (In C++ it doesn't for example), so two methods: > > - (CGPoint) posit

Re: Multi Dock

2008-06-05 Thread Graham Cox
Nope, not possible. Cocoa doesn't provide support for this because the Dock is a private Apple application, not a public class in Cocoa. Your only hope is to create your own dock application, which is obviously non-trivial. However, Since Mac multi-monitor apps don't work this way anyway, y

Re: App hangs when displaying any sheet in 10.5 [SOLVED]

2008-06-05 Thread Graham Cox
I guess the question is, given an object type 'id', which method signature will the compiler go with? Does the return type affect the method signature? (In C++ it doesn't for example), so two methods: - (CGPoint) position; - (float) position; might well have identical signatures. The compi

Re: enumeratorAtPath - path string issue???

2008-06-05 Thread Kyle Sluder
On Thu, Jun 5, 2008 at 5:50 PM, Rail Jon Rogut <[EMAIL PROTECTED]> wrote: >if ([[[file pathExtension] lowercaseString] isEqualToString: FWIW (and depending on what exactly you're trying to do you might want to ignore me completely), this isn't the "correct" way to determine file ty

Multi Dock

2008-06-05 Thread Apparao Mulpuri
Hi List, I am developing a multi monitor application, in which i need to display Dock on every monitor. Monitor which has System bar is the primary monitor. I didn't find any supporting classes to implement it in Cocoa. Is it implementable in Cocoa?. Please provide some pointers on it. Thank

Re: gcc-4.0 Fail with Realease Configuration

2008-06-05 Thread Andrew Farmer
On 05 Jun 08, at 17:32, James Murdza wrote: Oh. Whoops, I should have realized that. Here it is: http://tinyurl.com/6xdbw6. I honestly don't know what part of it I should be reading because I've never had this kind of problem before, but I hope that someone more experienced might. The key

Re: App hangs when displaying any sheet in 10.5 [SOLVED]

2008-06-05 Thread Hamish Allan
On Thu, Jun 5, 2008 at 5:12 PM, Brian Stern <[EMAIL PROTECTED]> wrote: > While float and int are the same size they are returned from functions in > different registers (on both ppc and intel). If the calling function expects > a float returned type but an int is returned instead the calling funct

Re: App hangs when displaying any sheet in 10.5 [SOLVED]

2008-06-05 Thread Hamish Allan
On Thu, Jun 5, 2008 at 4:43 PM, Graham Cox <[EMAIL PROTECTED]> wrote: > If I turn this on, I get thousands of warnings, none of which appear to be > telling me anything useful (i.e. the code is perfectly legitimate). With > that amount of noise if it does pick up the odd case like this I'm never >

Re: DTrace probe problem

2008-06-05 Thread Michael Ash
On Fri, Jun 6, 2008 at 10:28 AM, radj <[EMAIL PROTECTED]> wrote: > Hello again. > > I have another problem now and it is how to set off DTrace from within the > application. This is my code: > > // SNIPPET START > > int pid = [[NSProcessInfo processInfo] processIdentifier]; > > NSArray *arguments =

Re: NSBundle getting location of file in bundle

2008-06-05 Thread David Wilson
On Thu, Jun 5, 2008 at 10:37 PM, Mark Bateman <[EMAIL PROTECTED]> wrote: > I'm now trying to use NSBundle to insert the resource location string for a > webview. I'm using locally stored content inside the app bundle. I tried > using: > > NSMutableString *url; > url = [NSBundle pathForResource: @"

Re: NSBundle getting location of file in bundle

2008-06-05 Thread Michael Vannorsdel
Try using NSURL's fileURLWithPath:, you won't need to preappend "file://". On Jun 5, 2008, at 8:37 PM, Mark Bateman wrote: I'm currently hardcoding the file location just for debugging my app. It works great. I'm now trying to use NSBundle to insert the resource location string for a w

NSBundle getting location of file in bundle

2008-06-05 Thread Mark Bateman
I'm currently hardcoding the file location just for debugging my app. It works great. I'm now trying to use NSBundle to insert the resource location string for a webview. I'm using locally stored content inside the app bundle. I tried using: NSMutableString *url; url = [NSBundle path

Re: DTrace probe problem

2008-06-05 Thread radj
Hello again. I have another problem now and it is how to set off DTrace from within the application. This is my code: // SNIPPET START int pid = [[NSProcessInfo processInfo] processIdentifier]; NSArray *arguments = [NSArray arrayWithObjects: @"-w", // permit destructive actions

Re: knowing when WebView is done

2008-06-05 Thread Timothy Ritchey
Here is a typical trace for a failing load for me ("main" is the name I've given to the frame): 2008-06-05 21:56:40.539 Vigil[43952:10b] didCommitLoadForFrame: main 2008-06-05 21:56:40.546 Vigil[43952:10b] didReceiveTitle: main 2008-06-05 21:56:40.598 Vigil[43952:10b] didReceiveIcon: main 2008-

Re: Core Data merge and "statement is still active" error?

2008-06-05 Thread Ben Trumbull
On Jun 5, 2008, at 7:49 PM, Michael Link wrote: On Jun 5, 2008, at 4:37 PM, Ben Trumbull wrote: On Jun 3, 2008, at 8:15 PM, Michael Link wrote: Is there a reason you're not using Core Data's - mergeChangesFromContextDidSaveNotification: ? If the object is modified (inserted, update, or

Converting a MenuRef to a NSMenu

2008-06-05 Thread Felipe Monteiro de Carvalho
Hello, I need to convert a MenuRef to a NSMenu, how can this be done? I am searching and I found some material about the other way around, but nothing in this direction. I am implementing the status item part of a carbon library, so I get the menu already ready in MenuRefs and I need to recursive

Re: knowing when WebView is done

2008-06-05 Thread Timothy Ritchey
My quick search of the docs only found that delegate method in the UIWebKit iPhone docs, not in the regular WebKit. Cheers, Tim R. On Jun 5, 2008, at 6:23 PM, Mark Bateman wrote: Tim, I use the webviewdidfinishload method I'm not usre if that is any use to you...I'm quite new so I hope I'

Re: Drawing over a QTCaptureView

2008-06-05 Thread Gordon Apple
After receiving this, I tried something similar for clipping. After I cut in the filter, it worked for a few seconds, then slowed to crawl, then crashed. The images from the internal iSight are large. My theory is that all those NSImages (and associated caches) simply overwhelmed the garbage

Re: Converting a CFImageRef to a NSImage

2008-06-05 Thread Felipe Monteiro de Carvalho
On Thu, Jun 5, 2008 at 9:59 PM, Nick Zitzmann <[EMAIL PROTECTED]> wrote: > Are you sure the app is connected to the window server? Did you remember to > call NSApplicationLoad() before locking focus? Thank you very much =) Now it works =P -- Felipe Monteiro de Carvalho __

Re: Converting a CFImageRef to a NSImage

2008-06-05 Thread Nick Zitzmann
On Jun 5, 2008, at 6:54 PM, Felipe Monteiro de Carvalho wrote: Ok, things improved a little bit. Now the classes are created correctly, but it crashes when I call lockFocus =/ Any ideas? Here is the error message and backtrace: 2008-06-05 21:53:31.854 Wndtray[5100] *** Uncaught exception: Er

Re: Converting a CFImageRef to a NSImage

2008-06-05 Thread Felipe Monteiro de Carvalho
Ok, things improved a little bit. Now the classes are created correctly, but it crashes when I call lockFocus =/ Any ideas? Here is the error message and backtrace: 2008-06-05 21:53:31.854 Wndtray[5100] *** Uncaught exception: Error (1002) creating CGSWindow Program received signal SIGTRAP, Tra

Re: Converting a CFImageRef to a NSImage

2008-06-05 Thread Felipe Monteiro de Carvalho
Oh I had forgotten to link to the Cocoa framework =P It was only linked to Carbon... thanks, -- Felipe Monteiro de Carvalho ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list

Re: Bindings Cocoa and new Thread (Spinning Beach Ball an new Thread)

2008-06-05 Thread Alexander Hartner
Thanks to all those who responded. I managed to implement what you suggested. Previously I did had some issues, but managed to resolve them. One mistake I made before was doing the main work in the main thread via performSelectorOnMainThread. I now separated the UI updated and the long task

Re: gcc-4.0 Fail with Realease Configuration

2008-06-05 Thread James Murdza
Oh. Whoops, I should have realized that. Here it is: http://tinyurl.com/6xdbw6. I honestly don't know what part of it I should be reading because I've never had this kind of problem before, but I hope that someone more experienced might. On Thu, Jun 5, 2008 at 8:20 PM, Kyle Sluder <[EMAIL PROTECTE

Re: Converting a CFImageRef to a NSImage

2008-06-05 Thread Felipe Monteiro de Carvalho
Umm ... I am getting closer to the problem. It seams to be something in the Pascal - Cocoa bindings. Here is the constructor for [NSGraphicsContext currentContext] constructor NSGraphicsContext.currentContext; type TmsgSendWrapper = function (param1: objc.id; param2: SEL): objc.id; cdecl; var

Re: detect URL change

2008-06-05 Thread Adam Leonard
On Jun 5, 2008, at 3:10 PM, Scott Anguish wrote: I don't think the undocumented internal Safari APIs are appropriate to discuss here. I agree, but for this specific question you can avoid relying on internal Safari APIs. I think you can pretty safely assume that Safari will always use

Re: knowing when WebView is done

2008-06-05 Thread Rush Manbert
On Jun 5, 2008, at 3:23 PM, Mark Bateman wrote: Tim, I use the webviewdidfinishload method I'm not usre if that is any use to you...I'm quite new so I hope I'm not missing something obvious in your message. See this thread: http://lists.apple.com/archives/webkitsdk-dev/2005/Dec/msg000

Re: DirWatch

2008-06-05 Thread Uli Kusterer
Am 23.05.2008 um 04:08 schrieb Jens Alfke: On 22 May '08, at 4:33 PM, Jerry Krinock wrote: Don't do that. The solution for this problem has been built into the system since Mac OS 10.2 or .3, as noted by Robert: UKQueue by Uli We're going in

Re: Converting a CFImageRef to a NSImage

2008-06-05 Thread Felipe Monteiro de Carvalho
On Thu, Jun 5, 2008 at 9:15 PM, Nick Zitzmann <[EMAIL PROTECTED]> wrote: > You can still do this in 10.4, just not with NSBitmapImageRep. Create an > NSImage, call -lockFocus on it to create a CGContextRef, call > [[NSGraphicsContext currentContext] graphicsPort] to get the context _after_ > lockin

Re: gcc-4.0 Fail with Realease Configuration

2008-06-05 Thread Kyle Sluder
On Thu, Jun 5, 2008 at 6:38 PM, James Murdza <[EMAIL PROTECTED]> wrote: > I've attatched my build transcript, if anyone would like to read it. It doesn't come through the list. Post it somewhere instead. The pastebin at paste.lisp.org is the one used on the #coocadev IRC channel. --Kyle Sluder

Re: Converting a CFImageRef to a NSImage

2008-06-05 Thread Randall Meadows
On Jun 5, 2008, at 6:15 PM, Nick Zitzmann wrote: On Jun 5, 2008, at 6:12 PM, Felipe Monteiro de Carvalho wrote: I would love to, but this method was added in 10.5 I am using 10.4 You can still do this in 10.4, just not with NSBitmapImageRep. Create an NSImage, call -lockFocus on it to cre

Re: Converting a CFImageRef to a NSImage

2008-06-05 Thread Nick Zitzmann
On Jun 5, 2008, at 6:12 PM, Felipe Monteiro de Carvalho wrote: I would love to, but this method was added in 10.5 I am using 10.4 You can still do this in 10.4, just not with NSBitmapImageRep. Create an NSImage, call -lockFocus on it to create a CGContextRef, call [[NSGraphicsContext cu

Re: Converting a CFImageRef to a NSImage

2008-06-05 Thread Felipe Monteiro de Carvalho
On Thu, Jun 5, 2008 at 9:06 PM, Nick Zitzmann <[EMAIL PROTECTED]> wrote: > No, but I think you're making this too difficult. Assuming you mean > "CGImageRef" indeed > then just use -[NSBitmapImageRep initWithCGImage:] and then add the resulting > image rep to > an NSImage instance. I would love

Re: Converting a CFImageRef to a NSImage

2008-06-05 Thread Nick Zitzmann
On Jun 5, 2008, at 5:35 PM, Felipe Monteiro de Carvalho wrote: And I converted and adapted it to Pascal in my full code bellow, but I keep getting an error saying that the context is invalid. Does anyone know why? No, but I think you're making this too difficult. Assuming you mean "CGImage

Re: PMSessionEndDocumentNoDialog error code -43

2008-06-05 Thread Torsten Curdt
Bugger! Now also has been reported on the official release 10.5.3 (9D34) 05/06/08 15:43:01 TextEdit[15516] Printing failed because PMSessionEndDocumentNoDialog() returned -43. This happens when using a Cocoa Document based application as receiver for the PDF services (from the print menu)

Re: Core Data merge and "statement is still active" error?

2008-06-05 Thread Michael Link
On Jun 5, 2008, at 4:37 PM, Ben Trumbull wrote: On Jun 3, 2008, at 8:15 PM, Michael Link wrote: Is there a reason you're not using Core Data's - mergeChangesFromContextDidSaveNotification: ? If the object is modified (inserted, update, or deleted), you should pass in YES to -refreshObjec

Re: Converting a CFImageRef to a NSImage

2008-06-05 Thread Felipe Monteiro de Carvalho
Oh ... I added some more debug information and got some more info: [DBGTGT] :<[TCarbonWSCustomTrayIcon.Show] Handle: 01862980 ACGRect.size.width: 2.2E+01 ACGRect.size.height: 2.2E+01 ACGRect.origin.x: 0.0E+00 ACGRect.origin.y: 0.0E+00 AcurrentContext 018629E0 Acur

Converting a CFImageRef to a NSImage

2008-06-05 Thread Felipe Monteiro de Carvalho
Hello, I am trying to build a statusitem component for a Carbon based library. Of course I can only use Cocoa for that, so I need to convert my CFImageRef to a NSImage. Searching in the internet I found code to do that. I found the following code in the internet: NSImage* image = [[NSImage all

Re: enumeratorAtPath - path string issue???

2008-06-05 Thread Stephen J. Butler
On Thu, Jun 5, 2008 at 6:14 PM, Rail Jon Rogut <[EMAIL PROTECTED]> wrote: > Okay.. it has something to do with the NSString in the function call... > > By creating a new NSString (szTest) with the same path it works okay. Are you sure there aren't extra spaces that worked their way in somehow? Wit

Re: NSWindow does not support utility styleMask 0x10 ???

2008-06-05 Thread Keary Suska
6/5/08 4:33 PM, also sprach [EMAIL PROTECTED]: > This error appears when a window shows in my document-based app via > MyDocument's -windowDidLoadNib method. > > any clues about this mystery ??? Here's a clue: http://lists.apple.com/archives/Cocoa-dev/2007/Nov/msg02233.html Per the pos

Re: enumeratorAtPath - path string issue???

2008-06-05 Thread Rail Jon Rogut
dirEnum return NULL when I use the (valid) path /Volumes/JSD 750-1/BFD/Data/AFJ Kit 3/Hihat1/Pedal but works fine when I use the path /Users/railrogut/Documents Thanks. Rail - Producer/Engineer www.platinumsamples.com mailto: [EMAIL PROT

Re: gcc-4.0 Fail with Realease Configuration

2008-06-05 Thread James Murdza
Hi, I'm trying to debug a build error in Xcode. My project builds fine when the "Debug" build configuration is active, but then of course it is not compiled for other computers. The problem is when I switch the configuration to "Release," I get: Command /Developer/usr/bin/gcc-4.0 failed with exit

NSWindow does not support utility styleMask 0x10 ???

2008-06-05 Thread John Love
This error appears when a window shows in my document-based app via MyDocument's -windowDidLoadNib method. any clues about this mystery ??? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comme

Re: enumeratorAtPath - path string issue???

2008-06-05 Thread Rail Jon Rogut
Nope - no error or warning.. but here's a picture of the Get Info for one of the WAV files in the path... https://www.platinumsamples.com/images/Path.jpg and in my code: - (NSMutableArray *) getFileListArray:(NSString *)searchPath { NSMutableArray * resultArray;

Re: knowing when WebView is done

2008-06-05 Thread Mark Bateman
Tim, I use the webviewdidfinishload method I'm not usre if that is any use to you...I'm quite new so I hope I'm not missing something obvious in your message. Mark. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: enumeratorAtPath - path string issue???

2008-06-05 Thread Andy Lee
On Jun 5, 2008, at 5:50 PM, Rail Jon Rogut wrote: but it doesn't like my searchPath value.. which looks fine to me (NSLog output): searchPath = /Volumes/JSD 750-1/BFD/Data/AFJ Kit 3/ Hihat1/Pedal What doesn't it like about this? Is there an error or warning message? --Andy ___

Re: detect URL change

2008-06-05 Thread Scott Anguish
I don't think the undocumented internal Safari APIs are appropriate to discuss here. On Jun 5, 2008, at 5:06 PM, Mauricio Camayo wrote: Hi list. I'm currently making my own parental control plugin, using SIMBL to patch it to Safari. I made it trought XCode using a Cocoa Bundle type of p

enumeratorAtPath - path string issue???

2008-06-05 Thread Rail Jon Rogut
I'm a newbie to Cocoa, so be gentle... I'm trying to find all the WAV files in a given folder, so I have a function: - (NSMutableArray *) getFileListArray:(NSString *)searchPath { NSMutableArray * resultArray; NSString *file; NSDirectoryEnumerator *di

Re: NSTextView causes lockups when appending too quickly and/or scrolling

2008-06-05 Thread Douglas Davidson
On Jun 5, 2008, at 2:40 PM, Steven Moore wrote: Heh, whoops. Maybe I should read the documentation better. The warning is already there, I just missed it: "NSTextStorage also defines a set of methods ... useful for getting and setting scriptable properties of NSTextStorage objects... In

Re: NSTextView causes lockups when appending too quickly and/or scrolling

2008-06-05 Thread Steven Moore
Heh, whoops. Maybe I should read the documentation better. The warning is already there, I just missed it: "NSTextStorage also defines a set of methods ... useful for getting and setting scriptable properties of NSTextStorage objects... In particular, using thecharacters, words or paragraph

Re: Core Data merge and "statement is still active" error?

2008-06-05 Thread Ben Trumbull
On Jun 3, 2008, at 8:15 PM, Michael Link wrote: Is there a reason you're not using Core Data's - mergeChangesFromContextDidSaveNotification: ? If the object is modified (inserted, update, or deleted), you should pass in YES to -refreshObject:mergeChanges: Actually I am using mergeChangesF

detect URL change

2008-06-05 Thread Mauricio Camayo
Hi list. I'm currently making my own parental control plugin, using SIMBL to patch it to Safari. I made it trought XCode using a Cocoa Bundle type of project, as exercise, put a new menu on the menu bar and it worked. Problem is, don't know how to catch a URL change, so I can determine if it's a

Re: Cocoa n00b frustrations

2008-06-05 Thread Georg Tuparev
On Jun 5, 2008, at 3:32 PM, Charles Jenkins wrote: Hi! Despite the fact that you have heard from me before on this list, I am still an newbie trying to struggle through writing my first Cocoa app. I have experienced a couple of frustrations that I would like to share to see if anyone kno

Re: totally confused by bindings settings

2008-06-05 Thread Ken Thomases
On Jun 5, 2008, at 10:47 AM, Daniel Child wrote: First off, thanks very much for the lengthy response. You're welcome. Let's see if we can resolve some of the remaining confusion. :) Hmm. An NSArrayController doesn't manage tables, it manages an array (as its name implies). So, do y

Re: totally confused by bindings

2008-06-05 Thread Charles Steinman
--- Daniel Child <[EMAIL PROTECTED]> wrote: > 2008-06-05 14:06:20.015 Table Practice[670:10b] An > uncaught exception > was raised > 2008-06-05 14:06:20.016 Table Practice[670:10b] > [ 0x13aca0> valueForUndefinedKey:]: this class is not > key value coding- > compliant for the key wordList. > 2

Re: CATextLayer question

2008-06-05 Thread Brian Christensen
On Jun 5, 2008, at 1:44 , Davide Scheriani wrote: nooo I dont believe it! :) I come from Flash and Core Animation is like Fuse Framework of Moses. Is a way to have some sort of "collision" method of one or more layers? I'm not quite sure what you're trying to say or accomplish, but if yo

ANN: F-Script 2.0 alpha

2008-06-05 Thread Philippe Mougin
The new alpha of F-Script 2.0 is out, along with the first binary distribution. F-Script is an open source dynamic language for Cocoa. It includes a graphical environment for exploring and experimenting with Cocoa objects interactively and can come as a useful addition to the existing Xco

Re: totally confused by bindings

2008-06-05 Thread Daniel Child
First off, thanks very much for the lengthy response. My initial response to your post was rejected for length, so I am trying to abbreviate here, pinpointing areas of confusion. Hmm. An NSArrayController doesn't manage tables, it manages an array (as its name implies). So, do you have an

Re: Manipulating images with meta-data

2008-06-05 Thread Ken Ferry
On Wed, Jun 4, 2008 at 4:38 PM, Randall Meadows <[EMAIL PROTECTED]> wrote: > On a related note, can anyone tell me if creating a CGImageSourceRef from a > file, changing (only) its properties, and writing it back out--does that > cause another (lossy) JPEG compression? As in: > > cgImage = CGImage

Re: C99 [was: RESTful API's - Easy way to interact?]

2008-06-05 Thread Nate Weaver
FWIW, the default C dialect on OS X seems to allow a lot of C99 stuff (I assume because it defaults to GNU extensions): variable declarations anywhere in a block, "//" comments, and variable-length arrays. It doesn't allow declarations in the start of a for loop, though. On Jun 4, 2008, a

IOCreatePlugInInterfaceForService()

2008-06-05 Thread Nathaniel Gottlieb-Graham
(I cross-posted this to the USB list, but I suspect the traffic it'll see here is much greater. Sorry!) I'm pretty new to USB-related programming, so I'm sure I'm doing something dumb here. I'm trying to write a listener that listens for keypresses from a connected USB button board. The

Re: Getting rid of specific "May not respond" messages

2008-06-05 Thread Nick Zitzmann
On Jun 5, 2008, at 10:38 AM, Dale Jensen wrote: Though they're added in 10.5, might they still function under the last builds of 10.4? I haven't heard of problems from people using that OS. No, but if you need the functionality under Tiger, you could add categories that implement the m

knowing when WebView is done

2008-06-05 Thread Timothy Ritchey
I am trying to use a WebView to render a page in order to create a thumbnail for a CoreData managed entity. I have a custom NSManagedObject subclass WebSiteManagedObject with a setUrl: that calls: NSRect rect = NSMakeRect(0, 0, 900, 1164); webView = [[WebView alloc] initWithFrame:rect frameNa

Re: CATextLayer question

2008-06-05 Thread Davide Scheriani
nooo I dont believe it! :) I come from Flash and Core Animation is like Fuse Framework of Moses. Is a way to have some sort of "collision" method of one or more layers? On Jun 5, 2008, at 9:04 , Davide Scheriani wrote: I was playing with my NSView and CATextLayer. I placed this code: -(v

Re: Newbie question:IB, NSView, NSViewController

2008-06-05 Thread Jonathan Dann
On 5 Jun 2008, at 14:46, Johnny Andersson wrote: To understand what I have problems with, let's suppose that I want to put a "module" consisting of an NSViewController, controlling the view with two buttons, which in turn contains a DrawView, on my main window. Do I put my DrawViewControl

NSKeyPathExpression and message was received but not handled?

2008-06-05 Thread Colin Cornaby
I'm getting exceptions thrown like the following: id: An -observeValueForKeyPath:ofObject:change:context: message was received but not handled. Key path: firstName Observed object: Change: { kind = 1; } When I debug, "id" seems to be the description for a NSKeyPathExpression. I'm not a

Re: Problem with cblas_sgemm in 64 bit build

2008-06-05 Thread Rick Hoge
As usual I'm sure it will turn out to be some silly small thing (and not a mysterious alignment issue with CBLAS). The strange thing is that the problem only arises when the matrices involved exceed a certain size. After further testing with simplified test cases, I think it actually i

Re: Getting rid of specific "May not respond" messages

2008-06-05 Thread Dale Jensen
On Jun 5, 2008, at 11:11 AM, j o a r wrote: These are all methods added in Mac OS X 10.5. Check the SDK settings for your target. Yep, that's got it, thanks. Changing the SDK causes a bunch of other problems, but now at least I know what the issue is. Though they're added in 10.5, might

Re: App hangs when displaying any sheet in 10.5 [SOLVED]

2008-06-05 Thread Brian Stern
On Jun 5, 2008, at 11:26 AM, Graham Cox wrote: OK, I found the culprit. As suspected, it has nothing to do with sheets. I'm using a sorting function with NSMutableArray: static int cmpColorStops (DKColorStop* lh, DKColorStop* rh, void *context) In my original code, the sort function was

Re: Getting rid of specific "May not respond" messages

2008-06-05 Thread j o a r
On Jun 5, 2008, at 8:50 AM, Dale Jensen wrote: In my project, I get a number of warnings that are invalid, telling me that something or another "may not respond" to something, when in fact, it can. As an example, I get a lot of these: warning: 'NSString' may not respond to '- stringByRep

Re: Getting rid of specific "May not respond" messages

2008-06-05 Thread Dale Jensen
On Jun 5, 2008, at 10:55 AM, Kyle Sluder wrote: Have you remembered to #import ? What does your project's prefix header look like, if any? Are you linking with -framework AppKit? Yes. Prefix header includes Cocoa and Webkit. Appkit is listed under Frameworks > Other dale ___

Re: Getting rid of specific "May not respond" messages

2008-06-05 Thread Kyle Sluder
On Thu, Jun 5, 2008 at 11:50 AM, Dale Jensen <[EMAIL PROTECTED]> wrote: > This may be an Xcode question, rather than Cocoa, but it relates more to the > language, so I'll ask here. > > In my project, I get a number of warnings that are invalid, telling me that > something or another "may not respon

Getting rid of specific "May not respond" messages

2008-06-05 Thread Dale Jensen
This may be an Xcode question, rather than Cocoa, but it relates more to the language, so I'll ask here. In my project, I get a number of warnings that are invalid, telling me that something or another "may not respond" to something, when in fact, it can. As an example, I get a lot of thes

Programatically manipulating an xcdatamodel package?

2008-06-05 Thread Allen Cronce
Hi all, I posted this question on the Xcode-users list and did not receive a response, so I'm trying here. I'm interested in programmatically manipulating "User Info" key/value pairs in a large data model package. The resulting saved xcdatamodel package will be used for automatic code gen

Re: App hangs when displaying any sheet in 10.5 [SOLVED]

2008-06-05 Thread Graham Cox
Hmmm, I don't think so. The docs say: Warn if a prototype causes a type conversion that is different from what would happen to the same argument in the absence of a prototype. This includes conversions of fixed point to floating and vice versa, and conversions changing the width or signedn

Re: CATextLayer question

2008-06-05 Thread Brian Christensen
On Jun 5, 2008, at 9:04 , Davide Scheriani wrote: I was playing with my NSView and CATextLayer. I placed this code: -(void)mouseDown:(NSEvent *)theEvent { // [...snip...] [rootLayer addSublayer:textLayer]; } what ive noticed is when I click,the text appear with a fadein. Any r

Re: Newbie question:IB, NSView, NSViewController

2008-06-05 Thread Andreas Mayer
Am 05.06.2008 um 15:46 Uhr schrieb Johnny Andersson: let's suppose that I want to put a "module" consisting of an NSViewController, controlling the view with two buttons, which in turn contains a DrawView, on my main window. You don't put controllers on windows. Do I put my DrawViewContro

Re: App hangs when displaying any sheet in 10.5 [SOLVED]

2008-06-05 Thread Randall Meadows
On Jun 5, 2008, at 9:26 AM, Graham Cox wrote: It would be useful if there was a compiler warning for an implicit cast or mismatch of return type in cases like this, because otherwise they are devilishly hard to spot. If there is such a warning, please tell me, so I can spare myself future h

Re: Cocoa n00b frustrations

2008-06-05 Thread Graham Cox
On 5 Jun 2008, at 11:32 pm, Charles Jenkins wrote: Hi! Despite the fact that you have heard from me before on this list, I am still an newbie trying to struggle through writing my first Cocoa app. I have experienced a couple of frustrations that I would like to share to see if anyone kno

Re: App hangs when displaying any sheet in 10.5 [SOLVED]

2008-06-05 Thread Graham Cox
OK, I found the culprit. As suspected, it has nothing to do with sheets. I'm using a sorting function with NSMutableArray: static int cmpColorStops (DKColorStop* lh, DKColorStop* rh, void *context) { #pragma unused(context) float lp = [lh position]; float rp =

Re: Cocoa n00b frustrations

2008-06-05 Thread Andreas Mayer
Am 05.06.2008 um 15:32 Uhr schrieb Charles Jenkins: I had a Nib file that went bad. Never had that problem, so I can't help much. But, as you found out, the best way to fix it is probably to create a completely new nib. You create an object (.h, .m, and object instance in IB) that a con

Subject: Re: Keyboard Layout Services

2008-06-05 Thread Charles Jenkins
Jean-Daniel, merci! I am happy to learn about the Text Input Source Services. Because Cocoa is the preferred way to write OS X programs, that's what I'm trying to learn. I don't understand why Apple would push Cocoa and then provide some API's only in the Carbon library, but I can accept the a

IB label (textfield) as URL / mail-address how?

2008-06-05 Thread Mike
Hello, Is there a simple way to make a label (NSTextField) on form to be a hyperlink in IB ? Like for example e-mail address on aboutbox. Once clicked it opens mail etc... I know with little code it is possible but is there some shortcut in Leopard and "new" IB ? Thanks. -Mike

RESTful Web Services & PUT

2008-06-05 Thread Jeff LaMarche
I noticed that there's been some discussion of RESTful web services. I've been having problem with PUT requests using NSMutableURLRequest, one that has been asked about on the list before, but I never saw an answer or workaround posted. After some digging I found a workaround to my proble

Newbie question:IB, NSView, NSViewController

2008-06-05 Thread Johnny Andersson
Hi, I'm a newcomer and I've been learning Cocoa for about a month now. I've successfully created simple GUI apps to get acquainted with the environment, but now I've hit a little wall trying to grasp the concepts. It's about NSView and NSViewController. Bear in mind that I come from C ++

Re: How to enable crash log generation in 10.5?

2008-06-05 Thread parag vibhute
This only works if exception occurs in main thread. I have created a thread using pthread APIs, but if exception occurs in that thread then it does not get caught. So what to do? Parag On Thu, Jun 5, 2008 at 1:14 PM, Vijay Malhan <[EMAIL PROTECTED]> wrote: > > > On Thu, Jun 5, 2008 at 12:51 PM,

Cocoa n00b frustrations

2008-06-05 Thread Charles Jenkins
Hi! Despite the fact that you have heard from me before on this list, I am still an newbie trying to struggle through writing my first Cocoa app. I have experienced a couple of frustrations that I would like to share to see if anyone knows tools or practices that will help avoid them in the fu

Re: App hangs when displaying any sheet in 10.5 [was Re: Where to start looking to fix hang?]

2008-06-05 Thread Andy Lee
If there were a Dr. House for debugging, this is the kind of diagnostic challenge he'd like. Stab in the dark: you mentioned that you're on 10.5.3. Do you have a 10.5.2 machine you can use to see if the hang still occurs? Maybe it's not a Tiger/Leopard thing but a 10.5.2/10.5.3 thing. -

CATextLayer question

2008-06-05 Thread Davide Scheriani
I was playing with my NSView and CATextLayer. I placed this code: -(void)mouseDown:(NSEvent *)theEvent { NSPoint p = [theEvent locationInWindow]; CATextLayer *textLayer=[CATextLayer layer]; textLayer.string=[arr objectAtIndex: (random() % [arr count])];

Re: Problem with cblas_sgemm in 64 bit build

2008-06-05 Thread Rick Hoge
Thanks for the suggestions - I had already scoured the 64-bit transition guide, and didn't think I needed to use NSInteger and CGFloat since integers and floats appear to be the same size for both 32 and 64 bit builds. Just to be sure though, I tried replacing any int and float declarati

Re: App hangs when displaying any sheet in 10.5 [was Re: Where to start looking to fix hang?]

2008-06-05 Thread Graham Cox
OK, this is really weird, and frustratingly difficult to get a grip on. By preventing certain things initialising in my app, I can get sheets to work. So I'm quite prepared to agree that it's something I'm doing that is causing some subtle corruption somewhere that just happens to throw a s

Re: Drawing over a QTCaptureView

2008-06-05 Thread douglas a. welton
Ben, one more suggestion - subclass the QTCaptureView and add a CALayer. Then, do your drawing on the CALayer, as opposed to the the QTCaptureView's Layer. I haven't tried this myself, so it may not work... but if it does, it provides a way for you to do your drawing without having to

Re: Linking dependancies

2008-06-05 Thread Vijay Malhan
In XCode, Drag your dylib to the "Link with libraries" group under your app target. You may also want to add your dylib target as a dependency to your app. - Vijay Sent from my iPhone On 05-Jun-08, at 4:33 PM, Damien Cooke <[EMAIL PROTECTED]> wrote: Hi, Here is a dumb question for you :)

Re: Linking dependancies

2008-06-05 Thread Karsten
you could try the "other linker flags" in the build settings, i think you can somehow specify the dylib there. Kind Regards Karsten Am 05.06.2008 um 13:03 schrieb Damien Cooke: Hi, Here is a dumb question for you :) It is actually more of an XCode question so feel free to let me know i

Linking dependancies

2008-06-05 Thread Damien Cooke
Hi, Here is a dumb question for you :) It is actually more of an XCode question so feel free to let me know if this is the wrong place. I have built a project it has 2 targets one an executable and one a dylib. They both compile fine. I need to link the executable against the dylib but

Re: How to enable crash log generation in 10.5?

2008-06-05 Thread Vijay Malhan
On Thu, Jun 5, 2008 at 12:51 PM, parag vibhute <[EMAIL PROTECTED]> wrote: > Hi all, > > I have implemented Cocoa application where I am handling exceptions through > signal handling. > > I went through the Apple TechNote TN2123 ( > http://developer.apple.com/technotes/tn2004/tn2123.html). It state

Re: Where to start looking to fix hang?

2008-06-05 Thread Vijay Malhan
On Thu, Jun 5, 2008 at 9:47 AM, Graham Cox <[EMAIL PROTECTED]> wrote: > In my app I'm getting a hang when my main document window is asked to > close. This occurs only if there are unsaved changes, but it hangs before > the "unsaved changes" sheet is presented. > > If I link against the 10.4u SDK

  1   2   >