CoreData fed ImageView blank on first run.

2008-03-05 Thread Ben Lachman
I have an NSImageView subclass that displays thumbnails of a CoreData attribute via its value binding. The thumbnail (an NSImage) is stored as a transient attribute and updated lazily as needed. This all works and looks great except for the first time the app is launched(and sets up a lot

Re: Deferring a selector until later, but before painting

2008-03-05 Thread Ken Ferry
On Mar 5, 2008, at 5:41 PM, j o a r <[EMAIL PROTECTED]> wrote: On Mar 6, 2008, at 2:12 AM, John Stiles wrote: Right now in my app, there are some controls which appear and then their state changes a fraction of a second later, and I'd like to avoid the visually jarring "pop" effect of a co

Re: Need help with NSToolbarItem subclass and custom view

2008-03-05 Thread Jens Alfke
On 4 Mar '08, at 12:47 AM, Matthew Delves wrote: What I'm not sure about is how to pass any mouse click events through to the custom view rather than have them handled by the NSToolbarItem. Currently the custom view contains an NSSlider and an NSTextField. AppKit's regular event-dispatchi

Need help with NSToolbarItem subclass and custom view

2008-03-05 Thread Matthew Delves
Greetings, I've been reading through some of the apple documentation and have a basic understanding of what needs to be done when creating an NSToolbarItem subclass that contains a custom view. What I'm not sure about is how to pass any mouse click events through to the custom view rather

Re: Undo and Core Data issue

2008-03-05 Thread Michael Latta
It was separate undo managers. I overrid the undoManager method of the view to use the one from the document and things are working now. Thanks for the help in what to check. Michael On Mar 5, 2008, at 7:53 PM, Ben Trumbull wrote: At 6:58 PM -0800 3/5/08, Michael Latta wrote: The calls

Re: Undo and Core Data issue

2008-03-05 Thread Michael Latta
I just ran a test where I commented out the calls that start/end grouping. Now the undo menu item is not enabled. This suggests that either the UI is not using the same undo manager as CoreData, or the changes are not being recorded. Back to the documentation. Michael On Mar 5, 2008, a

Re: Undo and Core Data issue

2008-03-05 Thread Michael Latta
Here are the accessor methods I use for the property: - (NSData*)transform { [self willAccessValueForKey:@"transform"]; NSData *result = [self primitiveValueForKey:@"transform"]; [self didAccessValueForKey:@"transform"]; return result; } - (void)setTransform:(NSD

Re: Send an event to another app

2008-03-05 Thread Kyle Sluder
On Wed, Mar 5, 2008 at 11:47 PM, Alex Kac <[EMAIL PROTECTED]> wrote: > I actually thought of that first - even though I'm a Win32 dev, I am a > constant Mac user since 1994. But I'm not an AppleScript expert and I > kept getting errors saying it didn't understand the message. I do know > the app

Re: Send an event to another app

2008-03-05 Thread Alex Kac
I actually thought of that first - even though I'm a Win32 dev, I am a constant Mac user since 1994. But I'm not an AppleScript expert and I kept getting errors saying it didn't understand the message. I do know the app I'm working with is Cocoa based so I would assume its NSDocument based.

Re: Send an event to another app

2008-03-05 Thread Nick Zitzmann
On Mar 5, 2008, at 9:20 PM, Alex Kac wrote: I realize that under OS X things are different and they simply don't work that way. I also know that menus do have a handler and I *assume* that even if a menu is greyed out or a sheet is open (which I understand is modal) that the main window ca

Send an event to another app

2008-03-05 Thread Alex Kac
I am still learning Cocoa so please forgive me if the terms and models I use are totally out of whack with reality. First let me explain what I'm trying to do, then explain how I do it in Win32, and ask how would this be done in OS X. I have an application that I do not control running. It

Re: NSPreferencePane with my own private framework?

2008-03-05 Thread Adam Leonard
In your preference pane project, make sure @loader_path/../Frameworks is in the target's Framework Search Paths. If that doesn't work, you might also try @bundle_path (set in both the preference pane and framework) Adam Leonard On Mar 5, 2008, at 3:44 PM, Ryan wrote: Thanks for the reply.

Re: NSTextField keyboard event

2008-03-05 Thread peiyuan
Big thanks. The answer is the " isPartialStringValid:proposedSelectedRange:originalString:originalSelectedRange:errorDescription". Thank you again. Pei-Yuan @KCodes -- From: "Aki Inoue" <[EMAIL PROTECTED]> Sent: Thursday, March 06, 2008 10:51

Re: Undo and Core Data issue

2008-03-05 Thread Ben Trumbull
At 6:58 PM -0800 3/5/08, Michael Latta wrote: The calls are on the Will/Did undo/redo notifications not the KVO callbacks on object changes. Ah, okay. There shouldn't be any need to call -processPendingChanges there, unless you're programmatically working with your own undo groups. What I

Re: Why [NSApplication _deallocHardCore:] crash in my Safari Plug In

2008-03-05 Thread Joe Jones
Yeah, did that. Even took the step of not calling close or ever manually releasing the window. It doesn't matter. At the time where my "close" occurs the retain count is 2 so how it is going away I don't know. I never get called on dealloc nor does the window get called on autorelease which I wo

Re: Localise between different versions of English

2008-03-05 Thread Deborah Goldsmith
Even Leopard (and Tiger, not sure about further back) has Klingon (tlhlngan Hol)! Don't know about the ISO code for it though. tlh is the ISO code for Klingon (tlhIngan Hol). Note that fictional languages and scripts are considered perfectly acceptable for ISO and Unicode as long as there

Re: Undo and Core Data issue

2008-03-05 Thread Michael Latta
The calls are on the Will/Did undo/redo notifications not the KVO callbacks on object changes. I can account for the number of undo entries (the menu item disables at the right time), but would not mind pointers on how to detect what the undo changes. I am not getting notifications from th

Re: NSTextField keyboard event

2008-03-05 Thread Aki Inoue
Look at http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSFormatter_Class/Reference/Reference.html#/ /apple_ref/occ/instm/NSFormatter/ isPartialStringValid:proposedSelectedRange:originalString:originalSelectedRange:errorDescription : Aki On 2008/03/05, at 17:34, pe

Re: Undo and Core Data issue

2008-03-05 Thread Ben Trumbull
I call processPendingChanges from both the *Will* and *Did* notifications. Please stop. It doesn't make sense for the context to coalesce pending changes in the middle of the change to a single object during the KVO callbacks. Your original problem description is a bit sparse. Common probl

Re: Core Data, SQLite, and Housekeeping

2008-03-05 Thread Ben Trumbull
If you have any performance data showing problems with internal db fragmentation (i.e. sqlite3 dbname 'vacuum' fixes it, but cp doesn't), we'd love to hear about it. Thanks, Ben, for this informative response. So what you're saying, in summary is: 1 - Vacuuming on every save is inefficient

Re: NSStream SSL Help

2008-03-05 Thread Eric Scharff
>>[fileInStream setProperty: >> NSStreamSocketSecurityLevelTLSv1 forKey: >> NSStreamSocketSecurityLevelKey]; >> //[fileInStream setProperty: >> NSStreamSocketSecurityLevelNegotiatedSSL forKey: >> NSStreamSocketSecurityLevelKey]; > >Are you sure that both of these pro

Re: Deferring a selector until later, but before painting

2008-03-05 Thread Chris Suter
On 06/03/2008, at 12:12 PM, John Stiles wrote: There are many times in my code where I want to defer a selector's execution until the next time the event loop runs, which is a perfect match for -performSelector:withObject:afterDelay:, passing a delay of 0.0. However, this executes after th

Re: Deferring a selector until later, but before painting

2008-03-05 Thread j o a r
On Mar 6, 2008, at 2:12 AM, John Stiles wrote: Right now in my app, there are some controls which appear and then their state changes a fraction of a second later, and I'd like to avoid the visually jarring "pop" effect of a control which changes itself right after first appearing, but I c

Re: Why [NSApplication _deallocHardCore:] crash in my Safari Plug In

2008-03-05 Thread Peter Ammon
On Mar 5, 2008, at 4:52 PM, Joe Jones wrote: Hi all, I have an NPAPI based plug in and I am trying to use a Cocoa window to create a full screen window that the plug in can use when it wants to take over the screen. All works as expected, The window displays and goes away as required and

Re: Localise between different versions of English

2008-03-05 Thread Jonathan Dann
On 5 Mar 2008, at 17:25, Christopher Nebel wrote: On Mar 4, 2008, at 9:36 PM, Jens Alfke wrote: On 4 Mar '08, at 3:23 PM, Sean McBride wrote: There's also Canadian English (en_CA), and perhaps others too... The ISO is in the process of adding "en_LOL" for Lolcat, aka Kitteh or Cat Pidgi

Re: NSTextField keyboard event

2008-03-05 Thread peiyuan
Not exactly. Can NSFormatter monitor user's key input? I don't find any docs about monitoring user input in NSFormatter. I supposed that what the NSFormatter does is after you finish editing, it would change the content. This is not the way I want. I want a real time feedback, that is, even us

Deferring a selector until later, but before painting

2008-03-05 Thread John Stiles
There are many times in my code where I want to defer a selector's execution until the next time the event loop runs, which is a perfect match for -performSelector:withObject:afterDelay:, passing a delay of 0.0. However, this executes after the app has repainted all the windows. Is there a way

Re: Core Data, SQLite, and Housekeeping

2008-03-05 Thread I. Savant
Mail [which does not use CoreData, btw] might not have enabled auto_vacuum. IIRC, there were bugs in auto_vacuum in the version of sqlite that shipped in Tiger. I thought I remembered reading that Mail does not use Core Data. It does, however, use SQLite and auto_vacuum is a problem becau

Re: Core Data, SQLite, and Housekeeping

2008-03-05 Thread Jens Alfke
On 5 Mar '08, at 3:49 PM, I. Savant wrote: To that, I pose another question: Why, then, does it make such a huge difference when I run the vacuum command against Mail's database? After just a month of usage, Mail seems sluggish when switching between various folders, but once I run the va

Re: NSStream SSL Help

2008-03-05 Thread Jens Alfke
On 5 Mar '08, at 12:24 PM, Eric Scharff wrote: This doesn't make sense because TLS shouldn't require host name verification anyway, and I'm sure that the server's SSL certificate is valid. The cert does look valid, and matches the domain name, so that doesn't seem to be the problem. B

Why [NSApplication _deallocHardCore:] crash in my Safari Plug In

2008-03-05 Thread Joe Jones
Hi all, I have an NPAPI based plug in and I am trying to use a Cocoa window to create a full screen window that the plug in can use when it wants to take over the screen. All works as expected, The window displays and goes away as required and all is joy. Until you quit the application. At tha

RE: large documents with doc based app

2008-03-05 Thread Gary L. Wade
Try overriding readFromFile:ofType: and other similar messages for unique file needs. >Hey guys, > >Using the document based skeleton there is the method > >- (BOOL)loadDataRepresentation:(NSData *)data ofType:(NSString *)aType >or >- (BOOL)readFromData:(NSData *)data ofType:(NSString *)typeName

Re: NSPreferencePane with my own private framework?

2008-03-05 Thread Nick Zitzmann
On Mar 5, 2008, at 4:44 PM, Ryan wrote: Thanks for the reply. I tried changing the installation directory on my framework to use @loader_path and re-built it, but I'm still getting the same error message when trying to open the preference pane. Are you sure it's being set, and the bund

Re: large documents with doc based app

2008-03-05 Thread Kyle Sluder
On Wed, Mar 5, 2008 at 6:40 PM, Torsten Curdt <[EMAIL PROTECTED]> wrote: > I though NSData would handle the access just transparently. Otherwise > that would be good to keep in mind also for files slightly smaller > than 2GB :) While NSData certainly has the capability to do memory-mapped IO, i

Re: NSStream SSL Help

2008-03-05 Thread Dominik Pich
sorry no idea..I dropped down to CFStream. - Original Message - From: "Eric Scharff" <[EMAIL PROTECTED]> To: Sent: Wednesday, March 05, 2008 9:24 PM Subject: NSStream SSL Help var YAHOO = {'Shortcuts' : {}}; YAHOO.Shortcuts.hasSensitiveText = false; YAHOO.Shortcuts.sensitivityType =

Re: large documents with doc based app

2008-03-05 Thread Nick Zitzmann
On Mar 5, 2008, at 4:19 PM, Torsten Curdt wrote: But according to the docs NSData is limited to 2GB. What I am wondering is... How can one handle files larger than 2GB? In addition to what has been said, if you can afford to target only Leopard and only 64-bit Macs, then this limitation do

Re: Core Data, SQLite, and Housekeeping

2008-03-05 Thread I. Savant
If you have any performance data showing problems with internal db fragmentation (i.e. sqlite3 dbname 'vacuum' fixes it, but cp doesn't), we'd love to hear about it. Thanks, Ben, for this informative response. So what you're saying, in summary is: 1 - Vacuuming on every save is ineffici

Re: NSPreferencePane with my own private framework?

2008-03-05 Thread Ryan
Thanks for the reply. I tried changing the installation directory on my framework to use @loader_path and re-built it, but I'm still getting the same error message when trying to open the preference pane. I imagine I have to change something in the build settings for the preference pane pr

Re: large documents with doc based app

2008-03-05 Thread Torsten Curdt
On 06.03.2008, at 00:22, j o a r wrote: On Mar 6, 2008, at 12:19 AM, Torsten Curdt wrote: But according to the docs NSData is limited to 2GB. What I am wondering is... How can one handle files larger than 2GB? Override the path / URL based methods from NSDocument instead, and read the i

Re: KVO autonotifying complaining about custom setter return value

2008-03-05 Thread Chris Suter
On 06/03/2008, at 10:10 AM, Jim Turner wrote: Ok first, mmalc, thank you for taking the time to point out exactly what I needed to see to understand where I was going wrong. My problem stemmed from the misguided idea that properties were required for KVC/KVO. Chris' comment about "using non-d

Re: large documents with doc based app

2008-03-05 Thread j o a r
On Mar 6, 2008, at 12:19 AM, Torsten Curdt wrote: But according to the docs NSData is limited to 2GB. What I am wondering is... How can one handle files larger than 2GB? Override the path / URL based methods from NSDocument instead, and read the interesting portions of the files piece-by-p

large documents with doc based app

2008-03-05 Thread Torsten Curdt
Hey guys, Using the document based skeleton there is the method - (BOOL)loadDataRepresentation:(NSData *)data ofType:(NSString *)aType or - (BOOL)readFromData:(NSData *)data ofType:(NSString *)typeName error: (NSError **)outError; that gets called when files get loaded. But according to the d

Re: KVO autonotifying complaining about custom setter return value

2008-03-05 Thread Jim Turner
On Wed, Mar 5, 2008 at 4:14 PM, mmalc crawford <[EMAIL PROTECTED]> wrote: > > On Mar 5, 2008, at 1:40 PM, Adam P Jenkins wrote: > > > If you define a @property in the interface, then in the > > implementation you either need use @synthesize to have the compiler > > automatically generate a gett

Re: KVO autonotifying complaining about custom setter return value

2008-03-05 Thread mmalc crawford
On Mar 5, 2008, at 2:56 PM, Bill Garrison wrote: So for most non-GC code, properties should be specified using @property (nonatomic, ...)? To address this separately as a general point: see performance and threading considerations discussed at

Re: KVO autonotifying complaining about custom setter return value

2008-03-05 Thread mmalc crawford
On Mar 5, 2008, at 2:56 PM, Bill Garrison wrote: Note that this implies that the accessor methods are atomic. It's comparatively rare (unless you're using GC) that Cocoa developers implement atomic accessor methods, so you'd typically specify: @property (nonatomic, setter=mySetMethod:,get

Get Value for kCFPreferencesCurrentHost

2008-03-05 Thread Charles E. Heizer
Hello, I have noticed that Apple has changed it's formula for generating ByHost identifier from the MAC address of en0 to a generated UUID. I figured the constant kCFPreferencesCurrentHost has that value but I'm not sure how to get at that value. Does anyone know of a easy way to return the value

Re: KVO autonotifying complaining about custom setter return value

2008-03-05 Thread Bill Garrison
On Mar 5, 2008, at 5:14 PM, mmalc crawford wrote: One further issue for the sake of raising it: @property (setter=mySetMethod:,getter=myMethod) id valueTest; Note that this implies that the accessor methods are atomic. It's comparatively rare (unless you're using GC) that Cocoa developer

re: Core Data, SQLite, and Housekeeping

2008-03-05 Thread Ben Trumbull
... so that's fine, but SQLite's documentation says of auto_vacuum: "When the auto-vacuum flag is 1 (full), the freelist pages are moved to the end of the file and the file is truncated to remove the freelist pages at every commit. Note, however, that auto-vacuum only truncates the freelist page

Re: Best way to hook up Font Panel to floater (that isn't first responder)?

2008-03-05 Thread Aki Inoue
OK, then, you can use -[NSFontManager setAction:] then 8-). It's less intuitive than using -setTarget: but should be sufficient for your need. This is how: - implement method with a signature unlikely to collide (i.e. - mySuperPrivateChangeFont:) in an object that's always in the responder

Re: Best way to hook up Font Panel to floater (that isn't first responder)?

2008-03-05 Thread Graham
Thanks for that... I thought this seemed a bit too obvious to have overlooked and sure enough, it's new for 10.5. I should have mentioned I need a solution for 10.4 or later. Any ideas? S.O.S. On 05/03/2008, at 3:17 AM, Benjamin Stiglitz wrote: Is there a way to hook up the Fo

Re: KVO autonotifying complaining about custom setter return value

2008-03-05 Thread mmalc crawford
On Mar 5, 2008, at 1:40 PM, Adam P Jenkins wrote: If you define a @property in the interface, then in the implementation you either need use @synthesize to have the compiler automatically generate a getter and setter, or use @dynamic to inform the compiler that you will provide the appropr

Re: NSPreferencePane with my own private framework?

2008-03-05 Thread Nick Zitzmann
On Mar 5, 2008, at 3:00 PM, Ryan wrote: 3/5/08 1:53:14 PM System Preferences[11649] Error loading /Users/ ryan/Library/PreferencePanes/Myprefpane.prefPane/Contents/MacOS/ Myprefpane: dlopen(/Users/ryan/Library/PreferencePanes/ Myprefpane.prefPane/Contents/MacOS/Myprefpane, 265): Library not

Re: Core Data, SQLite, and Housekeeping

2008-03-05 Thread I. Savant
> So now the question is this: does Core Data > implicitly run VACUUM? If so, when? How often? Unfortunately googling > and archive-searching did not produce any obvious answers to this > particular question. My guess is that the answer is, "Yes, at every > save," but I'd like to be sure and I

NSPreferencePane with my own private framework?

2008-03-05 Thread Ryan
Hi all, I'm building an NSPreferencePane (for System Preferences) and am trying to use one of my pre-existing private frameworks in it. Everything works fine *until* I attempt to add my framework to the project, and then I get the following console error when trying to open the preferenc

Re: KVO autonotifying complaining about custom setter return value

2008-03-05 Thread Adam P Jenkins
On Mar 5, 2008, at 2:40 PM, Jim Turner wrote: On Wed, Mar 5, 2008 at 12:00 PM, mmalc crawford <[EMAIL PROTECTED]> wrote: On Mar 5, 2008, at 9:34 AM, Jim Turner wrote: I filed a bug (rdar://problems/5781977) as this doesn't appear to be proper behavior. I'd be happy to be told I'm wrong if

Re: KVO autonotifying complaining about custom setter return value

2008-03-05 Thread mmalc crawford
On Mar 5, 2008, at 11:40 AM, Jim Turner wrote: But, I still appear to have an issue with defining a custom getter/setter. Defining a property as @property (setter=mySetMethod:,getter=myMethod) id valueTest; and sending my object a valueTest message, I get the unrecognized selector sent to inst

Re: Custom View drawn twice?

2008-03-05 Thread Ben Lachman
displayIfNeededIgnoringOpacity goes back up the view hierarchy looking for an opaque superview to start drawing with. Doing so was causing an infinite drawing loop. I'm pretty sure this is because you're not really supposed to be calling setNeedsDisplay...: and displayIfNeeded...: within y

NSStream SSL Help

2008-03-05 Thread Eric Scharff
var YAHOO = {'Shortcuts' : {}}; YAHOO.Shortcuts.hasSensitiveText = false; YAHOO.Shortcuts.sensitivityType = []; YAHOO.Shortcuts.doUlt = false; YAHOO.Shortcuts.location = "us"; YAHOO.Shortcuts.document_id = 0; YAHOO.Shortcuts.document_type = ""; YAHOO.Shortcuts.document_title = "Does NSStream\x5c\x2

Re: Core Data, SQLite, and Housekeeping

2008-03-05 Thread I. Savant
> I don't know the answer; but it probably doesn't vacuum at every save. > Vacuuming can be quite slow if the database is at all large, > especially if there's already a lot of disk I/O going on. (The vacuum > algorithm has to read and write every page of the database.) That certainly makes

Re: regexkit [Using NSPredicate to parse strings]

2008-03-05 Thread John Engelhart
On Mar 5, 2008, at 1:03 AM, Jens Alfke wrote: On 4 Mar '08, at 8:55 PM, John Engelhart wrote: The ICU Regex C API (the one I need to use for RegexKit, not the C+ + one, which I haven't really looked at) is very multi-threading unfriendly. Basically, the 'compiled' regex, the string being

Re: KVO autonotifying complaining about custom setter return value

2008-03-05 Thread Jim Turner
On Wed, Mar 5, 2008 at 12:00 PM, mmalc crawford <[EMAIL PROTECTED]> wrote: > > On Mar 5, 2008, at 9:34 AM, Jim Turner wrote: > > > I filed a bug (rdar://problems/5781977) as this doesn't appear to be > > proper behavior. I'd be happy to be told I'm wrong if you can point > > out what I'm missi

Re: Core Data, SQLite, and Housekeeping

2008-03-05 Thread Jens Alfke
On 5 Mar '08, at 9:15 AM, I. Savant wrote: Okay, well that sucks. So now the question is this: does Core Data implicitly run VACUUM? If so, when? How often? Unfortunately googling and archive-searching did not produce any obvious answers to this particular question. My guess is that the answer

[Job Posting] Full Time Cocoa Developer

2008-03-05 Thread Brett Karopczyc
There is a position available for a full-time Cocoa Developer with Bristol Capital, Inc. in Montvale, NJ. We provide information services to the enterprise telecommunications industry under the InfoPlus brand. NOTE: The position requires an intimate knowledge of our internal frameworks a

Re: Deinterlacing QTCaptureDecompressedVideoOutput

2008-03-05 Thread Robert Douglas
I ran in to a similar problem while analyzing incoming HDV images and I didn't find any simple solution. My approach now is to create a second CVPixelBuffer with half the number of lines and copy every second line into that buffer. Or two buffers to get better temporal resolution. I ha

Re: CATiledLayer too slow to update

2008-03-05 Thread David Duncan
On Mar 4, 2008, at 8:57 PM, Colin Cornaby wrote: I'm using a CATiledLayer to render a large background in my CoreAnimation composition. A CATiledLayer seems to be best suited for the job due to the size of the composition. However, one problem I am running into is when the tiles become very

Re: KVO autonotifying complaining about custom setter return value

2008-03-05 Thread mmalc crawford
On Mar 5, 2008, at 9:34 AM, Jim Turner wrote: I filed a bug (rdar://problems/5781977) as this doesn't appear to be proper behavior. I'd be happy to be told I'm wrong if you can point out what I'm missing. I believe this behaves correctly. As stated in

Re: KVO autonotifying complaining about custom setter return value

2008-03-05 Thread Jim Turner
Chris, On Tue, Mar 4, 2008 at 9:47 PM, Chris Suter <[EMAIL PROTECTED]> wrote: > > > On 05/03/2008, at 2:10 PM, Kyle Sluder wrote: > > > On Tue, Mar 4, 2008 at 11:49 AM, Jim Turner > > <[EMAIL PROTECTED]> wrote: > >> In attempting to use a custom setter for a object, I'm getting the > >> follo

Re: Localise between different versions of English

2008-03-05 Thread Christopher Nebel
On Mar 4, 2008, at 9:36 PM, Jens Alfke wrote: On 4 Mar '08, at 3:23 PM, Sean McBride wrote: There's also Canadian English (en_CA), and perhaps others too... The ISO is in the process of adding "en_LOL" for Lolcat, aka Kitteh or Cat Pidgin[1]. (If you don't think there's a need for this,

Core Data, SQLite, and Housekeeping

2008-03-05 Thread I. Savant
I have a group of related questions that I've wondered about from time to time that I finally got around to looking up. I wanted to know if SQLite store types are vacuumed or if auto-vacuum is enabled, etc. I checked files created by Core Data and auto-vacuum is indeed enabled ("full" mode):

Deinterlacing QTCaptureDecompressedVideoOutput

2008-03-05 Thread Bram Loogman
Hi, When I use QTCaptureDecompressedVideoOutput to capture a still image from a QTCaptureSession with a DV camera as input device, the image is interlaced. Which looks very ugly for moving objects. I basically use the code from the 'Creating a QTKit Stop or Still Motion Application' tutorial in th

Re: NSOutlineView slow update w Core Data

2008-03-05 Thread David
I figured out a way around it. I added code in the controller to send the "processPendingChanges" message to the ManagedObjectContext. That flushes pending changes, but I still don't understand why this is needed. On Wed, Mar 5, 2008 at 12:14 AM, David Melgar <[EMAIL PROTECTED]> wrote: > I have a

NSPopUpButton under Leopard?

2008-03-05 Thread Bazyli Zygan
Hello! Sorry to bother with such a lame question, but neither google or my own research came up with any specific answers. I'm struggling to create an app, that uses NSPopUpButton. Under Tiger, with old XCode and IB, when I've associated the menu with NSPopUpButton, I could change selected item m

Re: how to monitor the system status?

2008-03-05 Thread Phil
On Mar 5, 2008, at 5:13 PM, Scott.D.R wrote: Hi everyone. As the titled mentioned, How to monitor the system status? Mac OS X provided a very powerful application "Activity Monitor", which can let you inspect the system status such as CPU usage, disk usage, network usage and so on. But how t

Re: how to monitor the system status?

2008-03-05 Thread Ken Thomases
On Mar 5, 2008, at 4:13 PM, Scott.D.R wrote: As the titled mentioned, How to monitor the system status? Mac OS X provided a very powerful application "Activity Monitor", which can let you inspect the system status such as CPU usage, disk usage, network usage and so on. But how to retrieve th

Re: Mac OS X Space API?

2008-03-05 Thread glenn andreas
On Mar 5, 2008, at 5:20 PM, Scott.D.R wrote: Greetings everyone. The space is introduced with Leopard. How amusing an invention, thanks to Apple designers. Hmm, I want to port one of my old applications to Leopard. In order to cooperate with Space function better, I am wondering whether t

Mac OS X Space API?

2008-03-05 Thread Scott.D.R
Greetings everyone. The space is introduced with Leopard. How amusing an invention, thanks to Apple designers. Hmm, I want to port one of my old applications to Leopard. In order to cooperate with Space function better, I am wondering whether there exists some APIs to query the current space

Re: mysterious crash in [NSCell menu]

2008-03-05 Thread John C. Randolph
On Mar 5, 2008, at 5:45 AM, Hendrik Schreiber wrote: a customer of mine experiences a crash that I cannot reproduce and that I have no idea where its coming from. He is trying to export some photos from iPhoto using our export plugin (iP2F) and at some point always gets a Bus Error. I pasted

how to monitor the system status?

2008-03-05 Thread Scott.D.R
Hi everyone. As the titled mentioned, How to monitor the system status? Mac OS X provided a very powerful application "Activity Monitor", which can let you inspect the system status such as CPU usage, disk usage, network usage and so on. But how to retrieve these information using APIs? Th

mysterious crash in [NSCell menu]

2008-03-05 Thread Hendrik Schreiber
Hi, a customer of mine experiences a crash that I cannot reproduce and that I have no idea where its coming from. He is trying to export some photos from iPhoto using our export plugin (iP2F) and at some point always gets a Bus Error. I pasted a partial crash log below. This person apparent

Re: Triggering GUI login session from daemon? And reboot.

2008-03-05 Thread Mike Fischer
Am 05.03.2008 um 12:13 schrieb Jean-Daniel Dupas: google: launchd-dev. First result => http://lists.macosforge.org/mailman/listinfo/ launchd-dev Thanks! Stupid me! I didn't think to Google or look in non-Apple places. Mike Le 5 mars 08 à 11:52, Mike Fischer a écrit : Am 04.03.2008 um

Re: NSTextField keyboard event

2008-03-05 Thread I. Savant
I have a window which contains several NSTextField. In these NSTextField, I want that when a user presses a key which is not a number ( 0-9), the active NSTextField will not accept the key input (that is, it does nothing). This looks like a job for NSFormatter ... -- I.S. _

Re: Triggering GUI login session from daemon? And reboot.

2008-03-05 Thread Jean-Daniel Dupas
google: launchd-dev. First result => http://lists.macosforge.org/mailman/listinfo/launchd-dev Le 5 mars 08 à 11:52, Mike Fischer a écrit : Am 04.03.2008 um 22:18 schrieb "Hamish Allan" <[EMAIL PROTECTED]>: I'd look to launchd-dev, as those are the guys that deal with login sessions and name

Re: Triggering GUI login session from daemon? And reboot.

2008-03-05 Thread Mike Fischer
Am 04.03.2008 um 22:18 schrieb "Hamish Allan" <[EMAIL PROTECTED]>: I'd look to launchd-dev, as those are the guys that deal with login sessions and namespaces and the protections associated with them. Interesting list name. Unfortunatly it does not seem to exists on:

NSTextField keyboard event

2008-03-05 Thread peiyuan
Hi all, Situation: I have a window which contains several NSTextField. In these NSTextField, I want that when a user presses a key which is not a number ( 0-9), the active NSTextField will not accept the key input (that is, it does nothing). What I find on the list: I find several posts similar