Re: "best practice"

2012-06-20 Thread Michael de Haan
Thanks to both of you. Much appreciated. On Jun 20, 2012, at 11:48 PM, Scott Ribe wrote: > On Jun 20, 2012, at 11:00 PM, Michael de Haan wrote: > >> I thought perhaps of setting up 2 tableViews/searchFields and simply >> toggling (hide/show) between the 2 databases. > > I think that's a fine al

Re: "best practice"

2012-06-20 Thread Scott Ribe
On Jun 20, 2012, at 11:00 PM, Michael de Haan wrote: > I thought perhaps of setting up 2 tableViews/searchFields and simply toggling > (hide/show) between the 2 databases. I think that's a fine alternative: simplest coding, uses more memory, whether the difference is important to your app or no

Re: "best practice"

2012-06-20 Thread Michael de Haan
On Jun 20, 2012, at 11:26 PM, Jens Alfke wrote: > > On Jun 20, 2012, at 11:00 PM, Michael de Haan wrote: > >> I would like to be able to "toggle" between the 2 databases using the same >> interface( i.e. the same tableView and searchField)(The tableView in one >> would need an extra column).

Re: "best practice"

2012-06-20 Thread Jens Alfke
On Jun 20, 2012, at 11:00 PM, Michael de Haan wrote: > I would like to be able to "toggle" between the 2 databases using the same > interface( i.e. the same tableView and searchField)(The tableView in one > would need an extra column). I thought perhaps of setting up 2 > tableViews/searchField

"best practice"

2012-06-20 Thread Michael de Haan
At work, we use 2 large totally separate databases to look up codes needed for coding procedures. I have written a simple app to present the data, using bindings. Implemented a search-field (binding based) and all works well. My question is one of an approach. (There is a paucity for this type of

Re: nspopbutton short title possible?

2012-06-20 Thread Rick C.
Yeah it's even here: If the receiver displays a pop-up menu, this method changes the current item to be the item with the specified title, adding a new item by that name if one does not already exist. But when setUsesItemFromMenu: is set to NO I can make my own item so it works. The last I di

Re: Intercepting spawned URL requests from UIWebView and caching the response

2012-06-20 Thread BareFeetWare
On 20/06/2012, at 5:42 PM, 尹佳冀 wrote: >> The UIWebView sees the nil return (ie nothing cached) and so proceeds to >> load the URL itself. So now I have two processes loading the same URL: The >> web view and the custom caching mechanism > In this case you return a fake data, like fakeData = [[

Re: Intercepting spawned URL requests from UIWebView and caching the response

2012-06-20 Thread BareFeetWare
> On Cocoa, You can intercept the WebView requests using a custom > NSURLProtocol. There is a fairly complete example here: > > http://stackoverflow.com/questions/3155359/in-webkit-how-do-i-get-the-content-of-a-resource Hi Jason, Thanks for your answer. Unfortunately, as you probably know, this

Problem with Converting NSApplescript to Scripting Bridge

2012-06-20 Thread John MacMullin
The following is the old NSApplescript, which works to create array of mailbox paths. NSAppleScript *theScript = [[[NSAppleScript alloc]initWithSource:@"tell application \"Mail\"\n set localMailboxes to every mailbox\n end tell\n"]autorelease]; NSDictionary *theError; NSAppleEventDescriptor *th

Re: NSPasteboardItem issues

2012-06-20 Thread Gordon Apple
Invariably happens. I hesitate and agonize over whether to hit the ³send² button, then promptly discover the solution. Apparently, I need to be using ³canReadItemWithDataConformingTpTypes² instead. However, it is still a mystery to me as to why the other failed. On 6/20/12 12:28 PM, "Gordon Ap

Re: ARC and CFType release callback

2012-06-20 Thread Greg Parker
On Jun 19, 2012, at 10:19 PM, Dave Keck wrote: >> Once you have a CFTypeRef via CFBridgingRetain(), ARC doesn't care what you >> do with it. Convert it to and from uintptr_t, pass it through a void*, send >> it around via IPC, whatever. > > That makes sense. I'm also looking for a pattern simi

NSPasteboardItem issues

2012-06-20 Thread Gordon Apple
I'm trying to convert code to use the new pasteboard methods, and having a few issues. For private types, I need to use NSPasteboardItem because the read/write protocols don't work for managed objects. (readObjects automatically uses NSKeyedUnarchiver and I use a subclass to provide the moc.) Th