Re: ARC and IBOutlet - strong vs weak......

2015-12-06 Thread Gerd Knops
"weak" is also inherently incompatible with KVO, because no notification is sent when the weak reference goes away. And that'll wreak havoc, especially when you are using Cocoa Bindings. Gerd > On Dec 6, 2015, at 05:52, Dave wrote: > >> >> On 4 Dec 2015, at 18:04, Quincey Morris >> wrote:

Re: KVO question

2015-11-18 Thread Gerd Knops
One possible issues is that `self.thingy=x;` will trigger two change notifications for `thingy`: one for `self.dictionaryOfThings = temp;` (due to keyPathsForValuesAffectingThingy), and one when the setter exits. Depending one what your observer does this may have unforeseen side effects. A po

Re: Copy AVplayerLayer content to another CALayer on another window (Preview)

2014-11-26 Thread Gerd Knops
You know that you can have multiple AVPlayerLayer pointing to the same AVPlayer, right? At least on OS X that works just fine. Gerd > On Nov 26, 2014, at 9:43 AM, douglas welton > wrote: > > Have you taken a look at AVPlayerItemVideoOutput? > >> On Nov 20, 2014, at 11:44 AM, Hado Hein wrote

Re: return string that is the difference between two other strings

2014-09-20 Thread Gerd Knops
NSLinguisticTagger might be worth a look. And if you don't care about word counts, NSMutableSet -minusSet: or -intersectSet: could be of help as well. Gerd > On Sep 20, 2014, at 1:54 PM, 2551 <2551p...@gmail.com> wrote: > > Definition: > > On 21 Sep 2014, at 00:53, Jens Alfke wrote: > >> a

Re: True Type Fonts

2014-08-09 Thread Gerd Knops
You can use NSFontManager to get all fonts. On Aug 9, 2014, at 4:30 PM, Raglan T. Tiger wrote: > > I have been tasked with getting outlines of all True Type fonts on a user Mac. > > I am just beginning my research and first Google results were unsatisfying. > > I am now going to NSFont but th

Re: How do I temporary retain self, under ARC?

2014-07-18 Thread Gerd Knops
That's similar to what I have used. Initially it started out simply as id keepAlive=self; ... keepAlive=nil; but a few Xcode versions ago the static analyzer started complaining that it wasn't really doing anything. So that last line became if(keepAlive) { k

Re: Problem with distributed objects in GUI cocoa apps

2014-04-30 Thread Gerd Knops
On Apr 30, 2014, at 2:39 PM, Jens Alfke wrote: > Yes. DO between computers (over TCP) was never really supported on OS X, It most certainly was supported, and useable on a LAN (and even on a WAN over VPN, did not try it in the wild). > and has a number of security and reliability problems Tr

Re: cocoapods: Problem with loading nib for a NSWindowController

2014-04-18 Thread Gerd Knops
Dangerous (and entirely wrong) assumption. On Apr 18, 2014, at 12:07 PM, Quincey Morris wrote: > — Check the capitalization of your XIB file name. It’s possible that case > matters to nib loading, even though the Mac file system is case insensitive. > ___

Re: Retain count in non ARC

2014-04-07 Thread Gerd Knops
https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/EncapsulatingData/EncapsulatingData.html#//apple_ref/doc/uid/TP40011210-CH5-SW3 and scroll up about half a page: "Properties Are Atomic by Default" gerd On Apr 7, 2014, at 6:56 PM, Graham Cox wrot

Re: MultiBinding

2013-10-28 Thread Gerd Knops
In Interface Builder text fields you can use "Value with Pattern" to combine multiple properties into a single output. Alternatively in code you can do something like this: - (NSString *)fullName { return [NSString stringWithFormat:@"%@, %@",self.lastName,self.firstName]; } + (

Re: View hierarchy, documentation, and origin location.

2013-09-23 Thread Gerd Knops
Probably more to do with the NeXTSTEP/OPENSTEP ancestry. Those used Display Postscript with the origin being the bottom left. Gerd On Sep 23, 2013, at 1:19 PM, Dave wrote: > > On 23 Sep 2013, at 17:09, Peter Teeson wrote: >> >> Peter >> >> PS: If my memory is correct, from the beginning of

Re: NSScanner question

2013-03-20 Thread Gerd Knops
Can't agree here, I have used NSScanner to parse quite a few even complex file formats, and NSScanner was a pretty convenient (and fast!) solution for these cases. Gerd On Mar 19, 2013, at 8:37 PM, Jens Alfke wrote: > > On Mar 19, 2013, at 4:37 PM, Graham Cox wrote: > >> I don't find NSSca

Re: NSNetService

2013-01-29 Thread Gerd Knops
On Jan 28, 2013, at 9:59 PM, eric_h_sm...@mac.com wrote: > All, > > I'm using NSNetService to publish a service on a network... and I cannot > remove that service without restarting the computer. In my case I do absolutely nothing to stop the service, and when the app quits the service reliab

Re: Setting NSTableColumnIdentifier in Xcode 4.4.1?

2012-09-13 Thread Gerd Knops
On Aug 24, 2012, at 4:27 PM, Laurent Daudelin wrote: > Am I missing something? Where do you set the column identifier in Xcode 4.4? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the

NSMetadataQuery searchScopes broken in Mountain Lion?

2012-08-16 Thread Gerd Knops
Hi, Whenever I use -setSearchScopes: in ML I get bogus results, was fine in Lion. I presume mdfind's "-onlyin" flag uses this as well, and delivers the same bogus results: gerti@sputnik(900) ~: mdfind "kMDItemFSName == 'SomeBogusFileName.xyz'" | wc -l 0 gerti@sputnik(901) ~: mdfind -only

Sandbox, CoreData, Spotlight

2012-03-08 Thread Gerd Knops
My sandboxed app with spotlight importer and using core data uses Record-Level Indexing as described here: https://developer.apple.com/library/mac/#documentation/cocoa/Conceptual/SpotlightCoreData/Articles/recordLevel.html#//apple_ref/doc/uid/TP40008065-CH101-SW2 The importer does work,

Weird DocSets URLs which NSURL can't handle

2012-03-04 Thread Gerd Knops
Hi All, When browsing the local developer documentation, Safari shows file URLs that look like this: file:///path/index.html#more/path/actualFile.html#some_location (A full example is pasted below) So they contain multiple fragments (the '#' part), and Safari happily opens them when p

Re: combining two entities to one binding

2011-10-02 Thread Gerd Knops
On Oct 2, 2011, at 9:11 AM, Keary Suska wrote: > On Oct 2, 2011, at 6:05 AM, Koen van der Drift wrote: > >> >> It actually is a label, so I can use the value with pattern bindings, thanks >> for pointing that out. >> >> Any idea how to get a hard return between the two values? >> >> %{value1

Sandboxed app, PDEs and preferences

2011-09-20 Thread Gerd Knops
Hi All, I have a printer driver with a Cocoa PDE that has some options. I'd like to have these options change for all apps when the user modifies them in one (stuff like account name to access the printer, remember password etc. The password itself is stored in the keychain). For that to work

Re: No longer use NSLog() in Xcode 4?

2011-09-15 Thread Gerd Knops
On Sep 15, 2011, at 3:55 PM, Scott Ribe wrote: > On Sep 15, 2011, at 2:34 PM, Jerry Krinock wrote: > >> Bang. Just do a ⇧⌘F, copy that 13476 to the search field, and in seconds >> the problem is staring me in the face. >> >> __FILE__ would be useful if it didn't print out the whole damned ful

Re: Sharing a persistent store between iOS and Mac

2011-08-25 Thread Gerd Knops
On Aug 25, 2011, at 3:30 PM, Fritz Anderson wrote: > iOS 4.3 Simulator, Xcode 4.1, Lion 10.7.1 > > I'm having trouble generating a Core Data store and opening it in an iOS app > (in the Simulator so far). > > My iOS app has to initialize a large, read-only dataset — a 12,000-word > vocabulary

Re: Disable Lion's window restoration?

2011-07-27 Thread Gerd Knops
On Jul 26, 2011, at 5:20 AM, Jean-Daniel Dupas wrote: > > Le 26 juil. 2011 à 02:33, Gerd Knops a écrit : > >> Hi, >> >> Is there an application-global way of disabling window restoration? >> >> All I can find is NSWindow's "- (BOOL)isRestorab

Disable Lion's window restoration?

2011-07-25 Thread Gerd Knops
Hi, Is there an application-global way of disabling window restoration? All I can find is NSWindow's "- (BOOL)isRestorable" method (and it's relatives). I was hoping for something more global, like a "- (BOOL)shouldRestoreWindows" method in the application delegate protocol or the NSDocumentCon

NSNotApplicableMarker and NSPredicate don't play nice

2011-07-16 Thread Gerd Knops
Hi All, I have an array of objects, and use -filteredArrayUsingPredicate: to filter it. The predicate is straight forward: description CONTAINS[cd] 'bravo' This works fine, unless the array contains a NSNotApplicableMarker object, which just gives me the rather useless error message:

Re: Adding Spotlight comment data to folder/file

2011-07-12 Thread Gerd Knops
very cool system that with some additions could evolve into something even more powerful. Gerd rdar://problem/5883633 23-Apr-2008 11:49 AM Gerd Knops: With Spotlight becoming more important, the lack of a simple and well supported system to store arbitrary metadata is sorely felt. All exist

Re: How Do I get informed when -showHelp: has been called?

2011-06-29 Thread Gerd Knops
On Jun 29, 2011, at 8:22 AM, Ulf Dunkel wrote: > I would really like to get a hint on this. Even a simple "not possible" would > help. Thank you. :-) > > - - - - - > > Am 27.06.2011 22:58, schrieb Ulf Dunkel: >> In a simple app of mine, I use the standard Help menu and MyApp Help >> menu item,

Re: No current point for control point bounds

2011-05-05 Thread Gerd Knops
On May 5, 2011, at 7:29 PM, Indragie Karunaratne wrote: > This message keeps getting logged when trying to run my app (OS X 10.6.7): > > "No current point for control point bounds" > Check NSBezierPath usage. A message like that shows up when -relativeXXX is used without a current point in the

Re: Deploying to an iPad

2010-07-14 Thread Gerd Knops
On Jul 12, 2010, at 4:17 PM, Christian Graus wrote: > hi guys. I am getting back in to iPad development, and at this stage, > I have an application that was written for us, which I want to deploy. > I've not made any code changes, but I've changed the databases, which > means I've changed the fi

Re: iOS4: UDP sockets in the background

2010-06-23 Thread Gerd Knops
On Jun 23, 2010, at 2:05 PM, Fritz Anderson wrote: > > On 23 Jun 2010, at 1:15 PM, Gerd Knops wrote: > >> On Jun 22, 2010, at 10:28 PM, Angelica Grace Tanchico wrote: > ... >> >>> Can the new iOS 4 maintain UDP socket connection in the background? Or is &g

Re: iOS4: UDP sockets in the background

2010-06-23 Thread Gerd Knops
On Jun 22, 2010, at 10:28 PM, Angelica Grace Tanchico wrote: > > Hello, > > Can the new iOS 4 maintain UDP socket connection in the background? Or is it > only TCP? I have been doing that without a problem since early iOS 3, so no reason to expect it would stop working in iOS4. Gerd __

Re: Anything like -[performBlockOnMainThread:]?

2010-03-15 Thread Gerd Knops
On Mar 15, 2010, at 4:32 PM, Rick Mann wrote: > Instead of passing my operation a target and selector, is there any way I can > just pass it a block, but then have it execute that block on the main thread? Note that the methods listed so far will cause a deadlock if called from the main thread

Re: cocoa-dev vs. Apple's dev forums?

2010-03-07 Thread Gerd Knops
On Mar 6, 2010, at 10:21 AM, Ulai Beekam wrote: > > Which one would you prefer (assuming you had 99 bucks to spare each year > without trouble) and why? > Mailing list over forum any day. Don't make me hunt a bunch of forums every day! x lists, one convenient interface (Mail.app). But my big

Presets & NSPrintPanel accessory view

2010-01-20 Thread Gerd Knops
Hi All, I use NSPrintPanel's "addAccessoryController:" method to add an accessory view. It is used to manipulate some app-sepcific variables inside NSPrintInfo's "printSettings". Most everything works fine, changing the values changes the preview, they are stored in Presets etc. The one thing

Re: NSTableView column bindings and "deep" key paths

2010-01-15 Thread Gerd Knops
On Jan 15, 2010, at 9:59 AM, Keary Suska wrote: > On Jan 14, 2010, at 9:47 AM, Gerd Knops wrote: > >> I have a typical NSTableView setup where the column content is provided by >> an NSArrayController. >> >> Now say a column is bound to arrayController.arrang

NSTableView column bindings and "deep" key paths

2010-01-14 Thread Gerd Knops
I have a typical NSTableView setup where the column content is provided by an NSArrayController. Now say a column is bound to arrayController.arrangedObjects key path a.b.c.d. In this scenario if "b" changes (even in a KVO-complient way), it will still result in an NSInternalInconsistencyExcept

Re: TableView cells refuse to draw white!

2010-01-11 Thread Gerd Knops
Never mind... Someone had switched the BG color from a very light gray to white... :-o On Jan 11, 2010, at 11:46 AM, Gerd Knops wrote: > I think I am loosing my mind! > > In my custom TableView cells I draw the background like so: > > [[NSCol

TableView cells refuse to draw white!

2010-01-11 Thread Gerd Knops
I think I am loosing my mind! In my custom TableView cells I draw the background like so: [[NSColor xxxColor]set]; NSRectFill(interiorFrame); It works fine for xxx=red, green etc. But for [NSColor whiteColor] the background stays gray (the table views background)

Re: Programmatically invoking double-click bindings on NSTableView

2009-10-28 Thread Gerd Knops
On Oct 28, 2009, at 11:41 AM, Jim Correia wrote: If you are looking for a more general solution, you can retrieve the binding data from the table view using -infoForBinding:, valuate the target & arguments, and invoke the method that way. I could, but given the flexible number of arguments tha

Programmatically invoking double-click bindings on NSTableView

2009-10-28 Thread Gerd Knops
Seems this should be easy: I have an NSTableView's "Double Click Target", "Double Click Argument", "Double Click Argument2" etc. binding set, and they work fine. Now I would like to programmatically get the tableview to issue a double-click response. Obviously "target" and "doubleAction"

Re: 10.6: Check Box Cells in NSTableViews always editable!

2009-08-31 Thread Gerd Knops
On Aug 31, 2009, at 1:28 PM, Volker in Lists wrote: Hi, have you changed the binding conditionally sets enabled respectively conditionally sets editable ? That did the trick before on 10.5 Tried that (BTW did not need that in 10.5, at least not in later versions). Didn't help in 10.6...

10.6: Check Box Cells in NSTableViews always editable!

2009-08-31 Thread Gerd Knops
Seems that in Snow Leopard the "editable" setting in the column attributes is ignored for Check Box Cells in NSTableViews. That is causing trouble, for example when the bound value is read-only. Anyone knows of a workaround? I tried hooking up the editable binding of both column and cell to

Re: Cleaner daemon managed by Launchd?

2009-03-07 Thread Gerd Knops
On Mar 7, 2009, at 5:26 PM, Olivier Palliere wrote: Hi All, I am working on an application that once started, sets up some temporary files and so. I didn't think of it at first, but I had the case where a friend force quitted the application, and I was left with the app not running, and

Re: Sheet not ending

2009-03-04 Thread Gerd Knops
On Mar 4, 2009, at 11:45 AM, Mr. Gecko wrote: Hello, I'm finding something weird. I am writing an application that posts comments. I am able to open the sheet and I have a post and cancel button, they work when you push them, but when I call endSheet with NSApplication, it doesn't end unti

Re: Test if app run by Guest account?

2009-02-26 Thread Gerd Knops
On Feb 26, 2009, at 4:29 PM, Andrew Farmer wrote: On 26 Feb 09, at 14:05, Karl Moskowski wrote: I'm looking for a way to disable some features in my application if it's being run by the Leopard Guest account. I tried using CSIdentityQueryCreateForCurrentUser() as outlined in the Identity

Re: Which keyboard (barcode scanner) did the event come from?

2009-02-11 Thread Gerd Knops
On Feb 10, 2009, at 5:08 PM, Kevin Gessner wrote: On Feb 9, 2009, at 11:47 PM, Gerd Knops wrote: Assuming I have two identical USB keyboards (actually barcode scanners) connected to a mac, is there any way to tell which of them a keyboard event came from? [snip] Is there some way to

Which keyboard (barcode scanner) did the event come from?

2009-02-09 Thread Gerd Knops
Assuming I have two identical USB keyboards (actually barcode scanners) connected to a mac, is there any way to tell which of them a keyboard event came from? I can get to the keyboard type easily enough, but that only helps when I have different keyboards: - (void)sendEvent:(NSEvent *)an

Re: mydoc.myext/QuickLook/Preview.html and full screen

2009-01-05 Thread Gerd Knops
On Dec 31, 2008, at 8:43 PM, Julien Jalon wrote: On Wed, Dec 31, 2008 at 10:37 PM, Gerd Knops > wrote: Seemingly arbitrary limitation, when according to the documentation Java applets and Flash are supported. Web Plug-ins are not supported (if this is in QL documentation, it is a

Re: mydoc.myext/QuickLook/Preview.html and full screen

2008-12-31 Thread Gerd Knops
On Dec 31, 2008, at 1:22 PM, Gerd Knops wrote: I am looking to add QuickLook functionality to a fairly complex document. A static html file, using some javascript to interact with the document contents would be ideal for a number of reasons. So I experimented by adding a QuickLook

mydoc.myext/QuickLook/Preview.html and full screen

2008-12-31 Thread Gerd Knops
I am looking to add QuickLook functionality to a fairly complex document. A static html file, using some javascript to interact with the document contents would be ideal for a number of reasons. So I experimented by adding a QuickLook/Preview.html file to my document bundle. That works fi

Re: modifier key query

2008-12-26 Thread Gerd Knops
On Dec 26, 2008, at 2:04 AM, Wesley Smith wrote: Is there a way to know if a modifier key (shift, ctrl, option, cmd, etc) is pressed? Obviously, there's this: NSUInteger modifierFlags = [theEvent modifierFlags]; but what if you need to know this information independent of an NSEvent? Anyway

NSFileManager copy -> AFP croaks on extended attributes

2008-12-21 Thread Gerd Knops
I am having trouble with NSFileManagers 'copyItemAtPath:toPath:error:' method: Assuming - the source path contains some files that use extended attributes - the destination is on an AFP mounted volume Under those circumstances copyItemAtPath:toPath:error:' fails and returns this error:

Re: Figure out the size of an NSAttributedString

2008-11-26 Thread Gerd Knops
On Nov 26, 2008, at 5:14 PM, Jean-Nicolas Jolivet wrote: I know this might seem like a weird idea, but I need to figure out the size (width and height) of an NSAttributedString that I am drawing... basically I need to know it because I am drawing it inside a larger image and I need to posi

NSPredicate exceptions with wrong level?

2008-10-27 Thread Gerd Knops
This code: NSPredicate *aPredicate=nil; @try { aPredicate=[NSPredicate predicateWithFormat:@invalid"]; } @catch(NSExcption *e) { NSLog(@"Handled"); } causes my exception handler delegate to b

Re: Use other key than "tab" to cycle through text fields

2008-09-26 Thread Gerd Knops
On Sep 25, 2008, at 10:37 PM, Ken Thomases wrote: On Sep 25, 2008, at 9:18 PM, Graham Cox wrote: On 26 Sep 2008, at 10:24 am, Gerd Knops wrote: I would like to use a key other than "tab" to advance to the next text field, so that users can use a numeric keypad to enter some

Re: Use other key than "tab" to cycle through text fields

2008-09-26 Thread Gerd Knops
On Sep 25, 2008, at 9:18 PM, Graham Cox wrote: On 26 Sep 2008, at 10:24 am, Gerd Knops wrote: I would like to use a key other than "tab" to advance to the next text field, so that users can use a numeric keypad to enter something like "11-22-33" and have 11,

Use other key than "tab" to cycle through text fields

2008-09-25 Thread Gerd Knops
I would like to use a key other than "tab" to advance to the next text field, so that users can use a numeric keypad to enter something like "11-22-33" and have 11, 22 and 33 end up in different text fields. Is there an elegant way to do that, preferably cocoa binding compatible? Thanks Ger

Leopard exception handling driving me crazy!

2008-09-12 Thread Gerd Knops
OK, so: [[NSExceptionHandler defaultExceptionHandler]setDelegate:self]; [[NSExceptionHandler defaultExceptionHandler]setExceptionHandlingMask: 0 | NSHandleUncaughtExceptionMask | NSHandleUncaughtSystemExceptionMask |

Re: NSWindowController, owner, "primary window"...

2008-08-21 Thread Gerd Knops
On Aug 20, 2008, at 11:10 PM, Graham Cox wrote: On 21 Aug 2008, at 5:13 am, Gerd Knops wrote: That'd work, but I'd have to subclass NSWindowController for that so I can add that property. Seemed to me that the above would not be an uncommon pattern and there ought to be a mo

Re: NSWindowController, owner, "primary window"...

2008-08-20 Thread Gerd Knops
On Aug 20, 2008, at 1:57 PM, Ken Thomases wrote: On Aug 20, 2008, at 1:39 PM, Gerd Knops wrote: I have a NSWindowController subclass managing a window and some functionality in that window. Now at some point I need to display a sheet, which is a window in a different nib. I'd li

NSWindowController, owner, "primary window"...

2008-08-20 Thread Gerd Knops
I have a NSWindowController subclass managing a window and some functionality in that window. Now at some point I need to display a sheet, which is a window in a different nib. I'd like to use another NSWindowController to load that nib file, mainly so it will take care of (eg release) all

Re: NSCollectionView and bindings to text fields in tab view

2008-08-13 Thread Gerd Knops
Can someone confirm that this is a bug in NSCollectionView or IB, or am I simply doing something wrong? If the former, can someone recommend a workaround? Should I, for instance, set the bindings programmatically? I see the same behavior: If a NSTabView is used inside a NSCollectionView

Re: NSTextView overdraw bug in Leopard?

2008-07-22 Thread Gerd Knops
On Jul 22, 2008, at 3:13 PM, Martin Wierschin wrote: Hi Gerd, [..] In your case I would worry about the call sequence when line fragments are calculated. There's no guarantee that each fragment will only be swept out once and in an order sorted by vertical position. Especially if you h

Re: NSTextView overdraw bug in Leopard?

2008-07-22 Thread Gerd Knops
On Jul 21, 2008, at 6:10 PM, Martin Wierschin wrote: Hi everyone, We've had a report or two from users where text will incorrectly draw in an area it's not supposed to. Basically a line fragment (or part of one) from the prior NSTextContainer will draw over text in the current container.

Xcode-like window menu?

2008-05-13 Thread Gerd Knops
I have a document based application with multiple windows per document, using window controllers. I was hoping that the window menu would magically group windows belonging to the same document together, similar to what Xcode does. But apparently that is not the case. Am I missing something,

Re: Avoiding NSAccessibilityException?

2008-05-08 Thread Gerd Knops
On May 7, 2008, at 8:31 PM, Martin Wierschin wrote: When access for assistive devices is enabled in the system preferences, the exception handler in my application catches bunches of NSAccessibilityExceptions when a panel is opened. Any way to avoid that? You can have your NSExceptionHan

Avoiding NSAccessibilityException?

2008-05-07 Thread Gerd Knops
When access for assistive devices is enabled in the system preferences, the exception handler in my application catches bunches of NSAccessibilityExceptions when a panel is opened. Any way to avoid that? Thanks Gerd ___ Cocoa-dev mailing list (C

Importing print-ready PDFs into NSViews and saving as PDF changes colors

2008-04-24 Thread Gerd Knops
Hello all, I am including a PDF document inside a document like so: NSData *pdfData=[[NSData alloc]initWithContentsOfFile:actualPath]; NSPDFImageRep *imageRep=[[NSPDFImageRep alloc]initWithData:pdfData]; [imageRep drawInRect:rect]; Works fine

Re: Resource Fork - is this a good use/the right thing to do?

2008-04-23 Thread Gerd Knops
Coincidentally I just went through that same song and dance. With Spotlight becoming more and more important in OSX, it is surprising Apple has not provided a clean method to store arbitrary metadata with any kind of file. Maybe time for us all to file an enhancement request. As others have

Re: Get list of possible applications

2008-04-20 Thread Gerd Knops
On Apr 19, 2008, at 11:33 PM, Chris Hanson wrote: On Apr 19, 2008, at 9:55 AM, Gerd Knops wrote: This returns an array with URLs of applicable applications for a file of a given URL: - (NSArray *)applicationsForURL:(NSURL *)url { return (NSArray *)LSCopyApplicationURLsForURL

Re: Get list of possible applications

2008-04-19 Thread Gerd Knops
On Apr 19, 2008, at 11:03 AM, Daniel wrote: Hi to all, is there a way to query all the possible applications (the one which is shown in the list "Open With") of a specific file from Cocoa? This returns an array with URLs of applicable applications for a file of a given URL: - (NSArray *)ap

Re: Communications between multiple NIB's

2008-03-24 Thread Gerd Knops
Is there a way to programmatically connect to a NIB file and read it's outlets without changing my File's Owner? I have a color well in one NIB (My Prefs NIB) and a window in another. I want the color well to change the window's background. I have an action called setColor:, but I cannot figure ou

Re: NSTask not completing

2008-03-10 Thread Gerd Knops
On Mar 6, 2008, at 2:35 PM, Charles Ross wrote: [..] If I enter the following command in the terminal, it returns about 20,000 records to the screen in about one second: sqlite3 Videos.sql 'select * from ZVIDEOS' The file has a fairly large number of records, almost 20,000. However, t