How to catch all mouse clicking (or avoid multiple click filtering in startTrackingAt)

2008-04-25 Thread Joan Lluch (casa)
I have implemented a NSButtonCell subclass in the usual way to catch mouse tracking. I get the startTrackingAt and stopTracking messages called correctly on the first click of the mouse. However the startTrackingAt is not quickly called again if I quickly click again the mouse, such as if

Re: How to catch all mouse clicking (or avoid multiple click filtering in startTrackingAt)

2008-04-25 Thread Ken Thomases
On Apr 25, 2008, at 1:29 AM, Joan Lluch (casa) wrote: I have implemented a NSButtonCell subclass in the usual way to catch mouse tracking. I get the startTrackingAt and stopTracking messages called correctly on the first click of the mouse. However the startTrackingAt is not quickly called

Re: Core Animation Deadlock

2008-04-25 Thread Colin Cornaby
I may have the bug isolated. I fixed a bug in my own code, and the deadlock is no longer happening. It may be related to a situation involving removing a sublayer from it's super. In my code I was removing a layer that I didn't intend to remove, and the deadlock would result. I still

One pixel width. One.

2008-04-25 Thread Lorenzo
I am trying to draw a line with 1 pixel width. No matter whether the view is scaled or scrolled, I want to see a 1 pixel thick line. I scale the view with NSRect frameSize = [self frame].size; NSSize newSize = NSMakeSize(frameSize.width / mScaleFactor, frameSize

Re: Complex data for webservices

2008-04-25 Thread Niklas Saers
Hi Jeff, thanks for writing http://iphonedevelopment.blogspot.com/2008/04/web-services-fun_18.html It is a very good writeup of many of the things we've discussed. :-) What's very relevant to our discussion is the fact that you don't mention having to delete half of the generated code.

Re: One pixel width. One.

2008-04-25 Thread Graham Cox
Try offsetting the final result by 0.5, so that you draw the actual pixel, not anti-alias across two. G. On 25 Apr 2008, at 5:19 pm, Lorenzo wrote: I am trying to draw a line with 1 pixel width. No matter whether the view is scaled or scrolled, I want to see a 1 pixel thick line. I scale

Re: Failure on unarchiving a NSBezierPath

2008-04-25 Thread an0
Thanks. But it seems you haven't read to the end. As I said in my first mail: Besides, I found the value returned by [NSKeyedUnarchiver unarchiveObjectWithData:data] was nil, but I didn't understand why, since it was normal when I saved the file using [NSKeyedArchiver

Core Animation Flickering

2008-04-25 Thread Colin Cornaby
I have a CALayer subclass, set to redraw on bounds change, with the following draw code (I don't expect it to be meaningful, but I'm pasting it here for the sake of completeness.) - (void)drawInContext:(CGContextRef)ctx { CGRect bounds = CGContextGetClipBoundingBox(ctx);

Using a real view in a Table cell

2008-04-25 Thread matt . gough
Hi, I need to have something that behaves like a table where each cell could be a quite complex view with standard controls and sub views etc. It needs to run on 10.4 and above, so NSCollectionView is not an option. I seem to have two choices: 1. Implement my own custom view that is

Re: Failure on unarchiving a NSBezierPath

2008-04-25 Thread Kyle Sluder
On Fri, Apr 25, 2008 at 4:11 AM, an0 [EMAIL PROTECTED] wrote: Thanks. But it seems you haven't read to the end. As I said in my first mail: Besides, I found the value returned by [NSKeyedUnarchiver unarchiveObjectWithData:data] was nil, but I didn't understand why, since it was normal

Initial value of on/off buttons

2008-04-25 Thread Yann Disser
I have five textured NSButtons that are set to operate in On Off mode. All of them are value-bound to different bools in my application. Somehow the first button starts in the On-state and the others in the off state, no matter which button I bind to which bool. If I remove the bindings, the

Re: QTMovie grabing while playback

2008-04-25 Thread Bob Smith
Well, I'm glad I had an excuse to play around with Quartz Composer; I knew about it but had never spent any time with it, very cool! Unfortunately, it doesn't solve my immediate problem. As far as I can tell, compositions won't play streaming video at all. They work great with movies

Re: Failure on unarchiving a NSBezierPath

2008-04-25 Thread an0
Sorry for my careless, I though Jens was talking about the `read' part. However, as I said, the error occurred when reading not when writing. So it was not because NSKeyedArchiver returned nil but because `[NSKeyedUnarchiver unarchiveObjectWithData:data]' returned nil, and my

Re: Cocoa-dev Digest, Vol 5, Issue 670

2008-04-25 Thread Dave Jewell
Message: 9 Date: Thu, 24 Apr 2008 13:43:26 +1200 From: David Wilson [EMAIL PROTECTED] I'm running Xcode 3.1 (actually iPhone SDK Beta 3) on Mac OS 10.5.2 My application doesn't launch when I click the run button in Xcode (note it is NOT an iPhone app). It's an application to control USB devices.

Re: One pixel width. One.

2008-04-25 Thread Joe Goh
On 4/25/08, Lorenzo [EMAIL PROTECTED] wrote: I am trying to draw a line with 1 pixel width. No matter whether the view is scaled or scrolled, I want to see a 1 pixel thick line. I highly, highly recommend reading this article:

Re: QTMovie grabing while playback

2008-04-25 Thread Nikolai Hellwig
Hey, thank you very much. it helped a lot. but i still got one problem. The image I derive from NSBitmapImageRep initWithCIImage is much smaller than the original pixel size of the video. Because of that i can't use this method for production use. Is there another way to do this?

NSBitmapImageRep bitmapData contains all zeroes?

2008-04-25 Thread Nick Forge
I am working on a Computer Vision project that uses real-time image processing. I am grabbing frames using QTKit, then converting the resulting CVImageBufferRef into a CIImage, and then converting that into an NSBitmapImageRep. I know that my resulting NSBitmapImageRep is fine, since I am

Re: QTMovie grabing while playback

2008-04-25 Thread douglas a. welton
Bob, re: Quartz Composer Did you check the Asynchronous Mode checkbox on the Movie Loader patch's Settings panel? This box is specifically available to allow for playback of streaming material. re: QT flaw The supposition that QuickTime is fundamentally flawed is not accurate. If you

Re: QTMovie grabing while playback

2008-04-25 Thread douglas a. welton
Nikolai, Can you post a snippet of the code you are using for the conversion? regards, douglas On Apr 25, 2008, at 9:04 AM, Nikolai Hellwig wrote: Hey, thank you very much. it helped a lot. but i still got one problem. The image I derive from NSBitmapImageRep initWithCIImage is

Re: NSBitmapImageRep bitmapData contains all zeroes?

2008-04-25 Thread Raphael Sebbe
Hi, how do you convert CIImage to NSBitmapImageRep ? Raphael On Fri, Apr 25, 2008 at 4:34 PM, Nick Forge [EMAIL PROTECTED] wrote: I am working on a Computer Vision project that uses real-time image processing. I am grabbing frames using QTKit, then converting the resulting CVImageBufferRef

Weird Problem With CGImage

2008-04-25 Thread Carter R. Harrison
This bug in my code has been driving me nuts for days, but I have finally isolated the issue - only problem now is I don't understand what I'm doing wrong. I have a CGImage that I want to get the raw data bytes for. My code is below: CGImageRef sectionToCache =

starting...

2008-04-25 Thread Sidnei Vladisauskis
Hey, I´m a new developer in iphone´s world, develop in actionScript (flash OOP) and build adGames and python too. I always wanted to develop for mobile plataform, and now, with the iphone, wich is a good gadget, I decided to join in new and long journey. I´m studying objective-C around one

Re: starting...

2008-04-25 Thread I. Savant
I´m a new developer in iphone´s world, develop in actionScript (flash OOP) and build adGames and python too. The iPhone SDK is under non-disclosure agreement as you should know if you've downloaded it. It cannot be discussed publicly. -- I.S. ___

Re: starting...

2008-04-25 Thread Hamish Allan
On Fri, Apr 25, 2008 at 3:59 PM, Sidnei Vladisauskis [EMAIL PROTECTED] wrote: I always wanted to develop for mobile plataform, and now, with the iphone, wich is a good gadget, I decided to join in new and long journey. I´m studying objective-C around one month and have some doubts. A

How do I use a WebView in a modal dialog?

2008-04-25 Thread David Springer
Folks, How can I use a WebView in a modal dialog? I understand that WebViews don't work in the modal runloop mode, so is there a way to fake this? Run my own nextEventMatchingMask: loop (I have tried this with very limited success)? Run the window containing the WebView in a separate thread

Re: Application Launch (or doesn't Launch as such) (David Wilson)

2008-04-25 Thread Dave Jewell
HOWEVER, I have found a solution which is to look at the Stop on Debugger()/DebugStr() menu item in the Run menu. For some reason, this got checked when I installed the iPhone SDK beta. If you uncheck this item, then sanity will be restored, and xCode will start behaving normally

Re: NSBitmapImageRep bitmapData contains all zeroes?

2008-04-25 Thread Jean-Daniel Dupas
What do you want to do with you captured images ? Just display them or record them ? If you just want to display it, you should use an NSOpenGLView and draw the CVBuffer or the CIImage directly. If this is for recording or processing the pixels (without CoreImage), you can try to generate

Re: Core Animation Flickering

2008-04-25 Thread John Harper
On Apr 25, 2008, at 1:20 AM, Colin Cornaby wrote: I have a CALayer subclass, set to redraw on bounds change, with the following draw code (I don't expect it to be meaningful, but I'm pasting it here for the sake of completeness.) … It's parent view is set up to change the layers frame to

Re: Weird Problem With CGImage

2008-04-25 Thread Jean-Daniel Dupas
Using CGImageRef is not a realiable way to access pixel data of an image. You should create a CGBitmapContextCreate() instead and draw the part you want in this context. http://developer.apple.com/qa/qa2007/qa1509.html Le 25 avr. 08 à 16:51, Carter R. Harrison a écrit : This bug in

Re: One pixel width. One.

2008-04-25 Thread Lorenzo
Joe, thank you. That page helps. I succeeded, but I had to set the width to 0.01 because if I set it to zero I get a 2 pixels thick line when the scale is different than 1.0. Don't know why. Please follow me. After scaling the view with scale = 1.33; [self

Re: QTMovie grabing while playback

2008-04-25 Thread Nikolai Hellwig
Hi, the image comes from: - (CIImage*) view: (QTMovieView *)view willDisplayImage: (CIImage *)image { ... // this is the conversion code NSBitmapImageRep* bitmap = [[NSBitmapImageRep alloc] initWithCIImage: image]; ... } regards, nikolai Am 25.04.2008 um 16:43 schrieb douglas

Re: Weird Problem With CGImage

2008-04-25 Thread Adam R. Maxwell
On Friday, April 25, 2008, at 08:58AM, Jean-Daniel Dupas [EMAIL PROTECTED] wrote: Using CGImageRef is not a realiable way to access pixel data of an image. You should create a CGBitmapContextCreate() instead and draw the part you want in this context.

Re: NSBitmapImageRep bitmapData contains all zeroes?

2008-04-25 Thread Nick Forge
I tweaked one of my format parameters somewhere in the processing chain, and it started working. I think I was accidentally initing my NSBitmapImageRep in 2 places. I can't explain why it was acting how it was, but it works now. On 26/04/2008, at 1:49 AM, Jean-Daniel Dupas wrote: What do

Re: Weird Problem With CGImage

2008-04-25 Thread David Duncan
On Apr 25, 2008, at 7:51 AM, Carter R. Harrison wrote: This bug in my code has been driving me nuts for days, but I have finally isolated the issue - only problem now is I don't understand what I'm doing wrong. I have a CGImage that I want to get the raw data bytes for. My code is

Re: Initial value of on/off buttons

2008-04-25 Thread Yann Disser
I realize that my buttons are generally not affected by the changes I make to the bool-values. Only the other way around. Can I not bind bools to the value of NSButtons? Or am I missing something else? Thanks for your help, Yann Yann Disser wrote: I have five textured NSButtons that are

Re: QTMovie grabing while playback

2008-04-25 Thread douglas a. welton
Nikolai, Perhaps you might try creating an empty NSBitmapImageRep with the size and pixel attributes you need. Then, use the resultant object as a graphic context and draw your CIImage into that. The Reducer sample code does something similar to this. I can imagine that this process

Re: Weird Problem With CGImage

2008-04-25 Thread Carter R. Harrison
On Apr 25, 2008, at 12:12 PM, David Duncan wrote: On Apr 25, 2008, at 7:51 AM, Carter R. Harrison wrote: This bug in my code has been driving me nuts for days, but I have finally isolated the issue - only problem now is I don't understand what I'm doing wrong. I have a CGImage that I

Re: Initial value of on/off buttons

2008-04-25 Thread Hamish Allan
On Fri, Apr 25, 2008 at 5:13 PM, Yann Disser [EMAIL PROTECTED] wrote: I realize that my buttons are generally not affected by the changes I make to the bool-values. Only the other way around. Can I not bind bools to the value of NSButtons? Or am I missing something else? Are you binding

[ANN] Media App Developer position (Northern NJ)

2008-04-25 Thread David Hoerl
Position: Media Application Developer - MacOS Expert Location: Northern, NJ Duration: Contract – 2 – 3 months with possible extension To apply for this position please forward your resume in WORD format referring the position the position title above to: [EMAIL PROTECTED] Due

mask nsimage

2008-04-25 Thread Dominik Pich
Hi, for hours I thought on this without coming to a working solution. I have an NSImage I need to draw (correctly scaled) in a pecifc drawRect. (got that of course) Now whenever I draw it I want to mask it so it appears beveled, rounded and (to make it harder) kinda '3d-isch' -- see an

-init and awakeFromNib called twice.

2008-04-25 Thread Johnny Lundy
I know I saw something somewhere in reference to these methods getting called twice on app launch, but can't find it with searching. Is this expected behavior for vanilla -init and (void) awakeFromNib methods? I'm doing some short loops in these methods and calling other instance methods.

Re: Uniform Type Indicators

2008-04-25 Thread Sean McBride
On 4/24/08 9:37 PM, Christopher Henrich said: Have Uniform Type Indicators (UTIs) been defined for VRML, X3d, of POVray files? First, it's Uniform Type Identifiers. :) Apple does not keep a list of 3rd party UTIs. No one else does either, that I know of. Does anyone know of one? The

[Moderator] Re: starting...

2008-04-25 Thread Scott Anguish
I.S. is correct discussion of the SDK is not allowed on this list. Scott (Moderator) On Apr 25, 2008, at 11:21 AM, I. Savant wrote: I´m a new developer in iphone´s world, develop in actionScript (flash OOP) and build adGames and python too. The iPhone SDK is under non-disclosure

Re: [Moderator] Re: starting...

2008-04-25 Thread Roland King
is there a list in apple somewhere which is restricted to people who are registered developers where this SDK can be discussed? On Apr 26, 2008, at 1:04 AM, Scott Anguish wrote: I.S. is correct discussion of the SDK is not allowed on this list. Scott (Moderator) On Apr 25, 2008, at

Re: [Moderator] Re: starting...

2008-04-25 Thread I. Savant
On Fri, Apr 25, 2008 at 1:17 PM, Roland King [EMAIL PROTECTED] wrote: is there a list in apple somewhere which is restricted to people who are registered developers where this SDK can be discussed? Nope. Apple still has not provided any forum in which NDA-covered material / technologies can

Opportunity: Mac OS Media Application Developer, can be on-site in NJ or mostly remote: Contract is 3 months +

2008-04-25 Thread Oliver Eaton
Please forgive my interruption of the technical discussion. Our direct client, a Video-over-IP development co. located in NJ, has entrusted me to locate a top-level Mac OS programmer with expertise in Cocoa and OpenGL, as well as cross-platform knowledge with Min32 API's. This is a 3 months

[Moderator] Job postings

2008-04-25 Thread Scott Anguish
That there are so many new job openings for Cocoa developers is very exciting. However, please send drafts of job offers to the [EMAIL PROTECTED] first for approval. Thanks! Scott (moderator) ___ Cocoa-dev mailing list

Re: Weird Problem With CGImage

2008-04-25 Thread Michael Vannorsdel
Could it be the CGImage references a compressed image format rather than a bitmap? On Apr 25, 2008, at 8:51 AM, Carter R. Harrison wrote: What is killing me here is that the CGImage has dimensions 417x234 and 1668 bytes per row. That to me means that the CFDataRef that I am obtaining

Re: QTMovie grabing while playback

2008-04-25 Thread Chris Adamson
Sorry to come in late, but this is something that occasionally comes up on quicktime-api and quicktime-java. To get text or images on top of a movie, sometimes it's easier to skip the programming approach and achieve the effect with authoring. Using the old QuickTime API, you could add a

Screen Recording APIs ?

2008-04-25 Thread Marcio Castilho
I am new to programming in Mac OSX. I need to do a very simple screen recording application similar to uShow, ScreenFlow and others, but with very basic settings and simple features. I would like some directions on where can I get some references on API areas, sample code, or some other

Re: Weird Problem With CGImage

2008-04-25 Thread Jean-Daniel Dupas
Le 25 avr. 08 à 18:12, David Duncan a écrit : On Apr 25, 2008, at 7:51 AM, Carter R. Harrison wrote: This bug in my code has been driving me nuts for days, but I have finally isolated the issue - only problem now is I don't understand what I'm doing wrong. I have a CGImage that I want

Re: Screen Recording APIs ?

2008-04-25 Thread j o a r
Check out: CGRegisterScreenRefreshCallback(), and CGWindowListCreateImage() Documentation is a bit limited at this point, but they're pretty easy to figure out. j o a r On Apr 25, 2008, at 11:35 AM, Marcio Castilho wrote: I am new to programming in Mac OSX. I need to do

Re: Screen Recording APIs ?

2008-04-25 Thread Jean-Daniel Dupas
Le 25 avr. 08 à 20:35, Marcio Castilho a écrit : I am new to programming in Mac OSX. I need to do a very simple screen recording application similar to uShow, ScreenFlow and others, but with very basic settings and simple features. I would like some directions on where can I get some

Re: How do I use a WebView in a modal dialog?

2008-04-25 Thread David Sinclair
On Apr 25, 2008, at 08:35:53, David Springer wrote: Folks, How can I use a WebView in a modal dialog? I understand that WebViews don't work in the modal runloop mode, so is there a way to fake this? Run my own nextEventMatchingMask: loop (I have tried this with very limited success)? Run

Re: how to manage multiple non-document windows

2008-04-25 Thread Steve Christensen
On Apr 24, 2008, at 5:01 PM, Ken Thomases wrote: On Apr 24, 2008, at 6:39 PM, Steve Christensen wrote: I'm rewriting an old legacy app in Cocoa and have run into a stumbling block. The app is supposed to support having multiple windows open, but the window content is unrelated to the

Re: [solved] How to catch all mouse clicking (or avoid multiple click filtering in startTrackingAt)

2008-04-25 Thread Joan Lluch (casa)
Ken, you're Genius !! Overriding the mouseDown method of a subclassed control containing the cell and passing to its 'super' an identical NSEvent with clickCount always 1 did it ! Thank you for your help, I really appreciate it Joan El 25/04/2008, a las 09:02, Ken Thomases escribió: On

Re: How do I use a WebView in a modal dialog?

2008-04-25 Thread Jean-Daniel Dupas
Le 25 avr. 08 à 21:00, David Sinclair a écrit : On Apr 25, 2008, at 08:35:53, David Springer wrote: Folks, How can I use a WebView in a modal dialog? I understand that WebViews don't work in the modal runloop mode, so is there a way to fake this? Run my own nextEventMatchingMask: loop

Re: Weird Problem With CGImage

2008-04-25 Thread David Duncan
On Apr 25, 2008, at 11:45 AM, Jean-Daniel Dupas wrote: I didn't find any documentation about CGDataProviderCopyData() except this comment in the header: /* Return a copy of the data specified by provider. Returns NULL if a * complete copy of the data can't be obtained (for example, if the *

Re: how to manage multiple non-document windows

2008-04-25 Thread Jean-Daniel Dupas
Le 25 avr. 08 à 21:06, Steve Christensen a écrit : On Apr 24, 2008, at 5:01 PM, Ken Thomases wrote: On Apr 24, 2008, at 6:39 PM, Steve Christensen wrote: I'm rewriting an old legacy app in Cocoa and have run into a stumbling block. The app is supposed to support having multiple windows

Framework for IB Plugin and app

2008-04-25 Thread Daniel DeCovnick
I've got a framework project, currently set up to create an embedded framework for an application, with a view class that I'd like to turn into an IB Plugin. Can the framework be embedded in the IB Plugin? If so, how? Embedding it like in an app doesn't seem to work: IB doesn't seem to see

NSAlert

2008-04-25 Thread Bart Beulen
I'm new to cocoa, I'm trying to display an alertbox. This is the code: NSAlert *alert = [[[NSAlert alloc] init] autorelease]; [alert addButtonWithTitle:@OK]; [alert addButtonWithTitle:@Cancel]; [alert setMessageText:@Delete the record?]; [alert setInformativeText:@Deleted records cannot be

Re: NSAlert

2008-04-25 Thread I. Savant
I cannot find out how to refer to the window of my single window program in the method: beginSheetModalForWindow Some help would be appreciated! Where (in what object) is this code located? That'd probably be a good place to add an IBOutlet to your window (and connect it in Interface

Re: Caching a local file using NSURLCache

2008-04-25 Thread Stephan Burlot
I was 100% sure the doc stated that NSURLCache handled file://, and since it worked under 10.4, I didnt look further. But I just found only http and https are cached. I didnt want a cache for local file: in my app, I display files which are located locally and remotely. In addition, the

Re: Framework for IB Plugin and app

2008-04-25 Thread Ricky Sharp
On Apr 25, 2008, at 2:53 PM, Daniel DeCovnick wrote: I've got a framework project, currently set up to create an embedded framework for an application, with a view class that I'd like to turn into an IB Plugin. Can the framework be embedded in the IB Plugin? If so, how? Embedding it

Re: starting...

2008-04-25 Thread Bertil Holmberg
I´m studying objective-C around one month and have some doubts. Have you studied the Objective-C 2.0 document? It should answer your questions about Properties and the @synthesize directive as these are new additions to the language. Although handy in the long run, they do make things

Re: QTMovie grabing while playback

2008-04-25 Thread Thomas Engelmeier
On 25.04.2008, at 11:17, Bob Smith wrote: Well, I'm glad I had an excuse to play around with Quartz Composer; I knew about it but had never spent any time with it, very cool! Unfortunately, it doesn't solve my immediate problem. As far as I can tell, compositions won't play streaming

[solved]? Re: Framework for IB Plugin and app

2008-04-25 Thread Daniel DeCovnick
But you can't then embed the framework in the app, AFAICT. IB gives a plugin corrupted error message when you change the settings in the target to those for an embedded framework and click Build Run. Huh, turns out it doesn't anymore. Cool. :-) -Dan On Apr 25, 2008, at 5:28 PM, Ricky

Re: iphone document syncing

2008-04-25 Thread I. Savant
Once again, the iPhone SDK is under a non-disclosure agreement, which you should know if you've downloaded it. It cannot be discussed publicly. -- I.S. On Apr 25, 2008, at 5:24 PM, Mark Manes wrote: Greetings, I do not know if others have come up with a reasonable solution for

Re: [solved]? Re: Framework for IB Plugin and app

2008-04-25 Thread Daniel DeCovnick
That was supposed to be struck-through. Oops. -Dan On Apr 25, 2008, at 6:09 PM, Daniel DeCovnick wrote: But you can't then embed the framework in the app, AFAICT. IB gives a plugin corrupted error message when you change the settings in the target to those for an embedded framework and

Re: Initial value of on/off buttons

2008-04-25 Thread Yann Disser
No, should I? Yann On 25. Apr 2008, at 18:32, Hamish Allan wrote: On Fri, Apr 25, 2008 at 5:13 PM, Yann Disser [EMAIL PROTECTED] wrote: I realize that my buttons are generally not affected by the changes I make to the bool-values. Only the other way around. Can I not bind bools to the

[not solved] Re: Framework for IB Plugin and app

2008-04-25 Thread Daniel DeCovnick
Never mind on that, it still doesn't work. I don't know why it worked one time, but it doesn't now. Suggestions? -Dan On Apr 25, 2008, at 6:43 PM, Daniel DeCovnick wrote: That was supposed to be struck-through. Oops. -Dan On Apr 25, 2008, at 6:09 PM, Daniel DeCovnick wrote: But you can't

Re: how to manage multiple non-document windows

2008-04-25 Thread Steve Christensen
On Apr 25, 2008, at 12:45 PM, Erik Verbruggen wrote: On 25 Apr 2008, at 20:06, Steve Christensen wrote: I put both the window and NSWindowController subclass in MainMenu.nib since some of the menu items control behavior in the window (and some of the window's current state is reflected in

Re: Library-Object in NSPersistentDocument but not in XML-file

2008-04-25 Thread William Turner
Hi Mike, Are you assigning the entities to different configurations? Wil On Apr 23, 2008, at 4:28 PM, Mike Donovan wrote: Hello everybody! In my document-based core data application I have a outline view which displays a list of departments like this (similar to iTunes): COMPANY [Item] --

Re: Saving NSTextView data to CoreData without ending editing

2008-04-25 Thread Mike Manzano
Here's what I'm doing: - (void)endEditingSavingCurrentResponder { NSResponder *currentResponder = [self firstResponder]; if ([currentResponder isKindOfClass:[NSTextView class]]) { if( [(NSTextView *) currentResponder isFieldEditor] )

Need a native guide through Cannot remove an observer woods

2008-04-25 Thread Jack Repenning
I'm getting this message. I think I know what all the words mean, and I've crawled the KVC and KVO manuals again just to be certain, but I'm not getting any inspirations on what I'm supposed to do about this situation. Having seen this message, if I let the program continue very much

Re: how to manage multiple non-document windows

2008-04-25 Thread Jean-Daniel Dupas
Le 26 avr. 08 à 01:44, Steve Christensen a écrit : On Apr 25, 2008, at 12:45 PM, Erik Verbruggen wrote: On 25 Apr 2008, at 20:06, Steve Christensen wrote: I put both the window and NSWindowController subclass in MainMenu.nib since some of the menu items control behavior in the window

Unexplained hangs

2008-04-25 Thread James Maxwell
Hello All, I have a very strange error with a project I've been working on. I've been trying different designs to try to work out a particular problem, and over that time I've been making different subclasses of a particular object. Suddnely, for no reason that I can see, *any* subclass

Re: QTMovie grabing while playback

2008-04-25 Thread Bob Smith
On Apr 25, 2008, at 7:41 AM, douglas a. welton wrote: Bob, re: Quartz Composer Did you check the Asynchronous Mode checkbox on the Movie Loader patch's Settings panel? This box is specifically available to allow for playback of streaming material. Eh? I don't see a patch called Movie

Re: starting...

2008-04-25 Thread Brad Gibbs
I also began learning Objective-C programming about a month ago, without any prior C experience. I've found Stephen Kochan's Programming in Objective-C to be very useful. He claims readers will be able to follow along without prior knowledge of C. That's been true for me so far (I'm

edit file

2008-04-25 Thread Christopher
How exactly would I go about replacing the DefaultDesktop.jpg image in core services with a objective c cocoa app. I'm just starting with cocoa, so any help is greatly appreciated. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: Unexplained hangs

2008-04-25 Thread Keary Suska
on 4/25/08 7:15 PM, [EMAIL PROTECTED] purportedly said: I have a very strange error with a project I've been working on. I've been trying different designs to try to work out a particular problem, and over that time I've been making different subclasses of a particular object. Suddnely, for

Re: Screen Recording APIs ?

2008-04-25 Thread Rob Keniger
On 26/04/2008, at 4:50 AM, j o a r wrote: Check out: CGRegisterScreenRefreshCallback(), and CGWindowListCreateImage() Documentation is a bit limited at this point, but they're pretty easy to figure out. There's some good sample code for this:

Re: Need a native guide through Cannot remove an observer woods

2008-04-25 Thread Keary Suska
on 4/25/08 6:49 PM, [EMAIL PROTECTED] purportedly said: - (void) setEntry:(SVNWCEntry *)value { [self willChangeValueForKey:@entry]; [value retain]; [entry release]; entry = value; [self didChangeValueForKey:@entry]; } If you haven't turned off automatic KVO notifications, the above

Re: Initial value of on/off buttons

2008-04-25 Thread I. Savant
On Apr 25, 2008, at 7:37 PM, Yann Disser wrote: Are you binding via an NSObjectController? No, should I? Yes (or one of its subclasses). You have to make sure everyone is on the same page as mindless corporate and government automatons are wont to say. In Cocoa, this is done easiest

Re: how to manage multiple non-document windows

2008-04-25 Thread Steve Christensen
On Apr 25, 2008, at 5:51 PM, Jean-Daniel Dupas wrote: Le 26 avr. 08 à 01:44, Steve Christensen a écrit : On Apr 25, 2008, at 12:45 PM, Erik Verbruggen wrote: On 25 Apr 2008, at 20:06, Steve Christensen wrote: I put both the window and NSWindowController subclass in MainMenu.nib since

Re: edit file

2008-04-25 Thread I. Savant
How exactly would I go about replacing the DefaultDesktop.jpg image in core services with a objective c cocoa app. I'm just starting with cocoa, so any help is greatly appreciated. You'd want to write an application that uses AuthServices to obtain permission to use NSFileManager to back

Re: Cocoa-dev Digest, Vol 5, Issue 682

2008-04-25 Thread Johnny Lundy
Thanks. I had two instances of one of my classes in my IB document. Removing the extra one solved my problem. On Apr 25, 2008, at 9:36 PM, [EMAIL PROTECTED] wrote: Hey John - If init is being called twice on the same instance, that sounds like a bug. It should be pretty easy to figure out

Re: One pixel width. One.

2008-04-25 Thread Graham Cox
Setting a line width of 0 on NSBezierPath means draw it 1 pixel wide at whatever resolution the destination device is. 1 pixel on the screen aligned to an integer coordinate will draw two pixels wide at half the brightness (anti-aliasing). Thus, 1. offset your coordinates by 0.5 to avoid

Re: NSAlert

2008-04-25 Thread Bart Beulen
Problem solved, I had to fill in: [NSApp mainWindow] I cannot find out how to refer to the window of my single window program in the method: beginSheetModalForWindow Some help would be appreciated! ___ Cocoa-dev mailing list

NSBezier Artifacts

2008-04-25 Thread Aaron Wallis
I've been having a fair few issues with NSBezier boxes lately (a.k.a boxes with rounded corners) I've created a NSView subclass that contains the following code, then threw a few on a window with some controls over the top: - ( void ) drawRect: ( NSRect ) rect { NSBezierPath*