Re: Predicate search across Core Data entities.

2012-02-01 Thread Mark Woollard
If I understand you correctly, you want to search for matches against attributes in the various objects in your model. I would move the searchable attributes out into their own entity 'searchableAttribute', with attributes 'name' and 'value'. I'd then define a base entity 'searchableEntity' and

RE: Selected text in NSTextField

2012-02-01 Thread Dany Golubitsky
I am sorry it is not that easy to me :) I am very unfamiliar with cocoa since I am just trying to make some adjustments to existing interface. Can you send me a link to some guide or tutorial? Thanks! From: Jens Alfke [mailto:j...@mooseyard.com] Sent: Wednesday, February 01, 2012 20:32 To: Dany

Square NSWindow corners?

2012-02-01 Thread Samuel Williams
Hi, I seem to be getting some weird artefacts on my sheets: http://imgur.com/3L8Hk The corners next to the Cancel and Create buttons are not looking so good. There is no view affecting this - I removed everything from the window and still got the same effect. Anyone have any ideas? Kind regar

Re: iCloud On OSX - Cannot save changes (Resolved?)

2012-02-01 Thread April
Ok a little info I "discovered" the WWDC video on NSFileCoordinators etc... I watched it front to back Took notes It helped a little. What helped more than anything though was the suggestion I check the console app. I found a message there about a sandbox block on my app. I picked bit by bit

Predicate search across Core Data entities.

2012-02-01 Thread David Delmonte
Hello Everyone! I am trying to understand if it's possible (and then how to do it) to employ a UISearchBar to find data that cuts across core data entities. I have a model that basically has one mainEntity, then a personEntity, placeEntity, and some others. A record in the mainEntity can have

Re: PDFView focus ring

2012-02-01 Thread Graham Cox
Hi Martin, Some views don't actually implement a focus ring, leaving it to you. This is often the case if the view is typically used for content within a scrollview. Bear in mind also that the focus ring is drawn outside the frame of the view, so there has to be a) space available to draw it, a

Re: PDFView focus ring

2012-02-01 Thread Joel Norvell
Hi Martin, This is just a guess. Could the NSFocusRingType set in IB be overridden somehow for the PDFView? You might explicitly test the focusRingType to see what it is once it's been created. Sincerely, Joel Martin Hewitson wrote: ... I have an app which has an editor on the left side of

Re: How to deactivate an app

2012-02-01 Thread Lee Ann Rucker
On Jan 31, 2012, at 11:29 PM, Ken Thomases wrote: > On Feb 1, 2012, at 1:20 AM, Gerriet M. Denkmann wrote: > >> >> Although the name of the notification is applicationWillBecomeActive it acts >> more like >> applicationIsAlreadySomehowActiveAndWIllBecomeFullyActiveRealSoonNow. > > Well, remem

selectedTag binding weirdness

2012-02-01 Thread Trygve Inda
I have a popup menu for which I call: [myPopup bind:@"selectedTag" toObject:myDict withKeyPath:@"myItem" options:NULL]; If I use the GUI to set change the popup value, myDict.myItem is updated accordingly. But if I use: [myPopup selectItemAtIndex:1]; It isn't I have to use [myDict setObject:

Re: Window/Controller, View/Controller, View ?

2012-02-01 Thread Fritz Anderson
On 1 Feb 2012, at 11:13 AM, Erik Stainsby wrote: > Where would that be introduced into the hierarchy ? As the File Owner of the > View ? Or as an ObjectController added into the View ? Are you suggesting > substitution or addition to the tree. By "that," I assume you mean the NSObjectControlle

Re: Selected text in NSTextField

2012-02-01 Thread Jens Alfke
On Feb 1, 2012, at 5:19 AM, Dany Golubitsky wrote: > I am sorry, none of this works :( I think you’re trying to make NSAlert do things it wasn’t meant to do. Try creating your own alert panel in a nib and running it yourself (it’s pretty easy.) —Jens _

Re: Window/Controller, View/Controller, View ?

2012-02-01 Thread Quincey Morris
On Feb 1, 2012, at 09:00 , Fritz Anderson wrote: > Bindings can be your friend here. In simple cases, having an > NSObjectController link between controls and .representedObject can do a lot > for you. I'm not sure how it improves the situation to have a NSObjectController. You can bind direct

Re: iOS: "This application needs location services / Allow / Don't Allow" alert

2012-02-01 Thread John Michael Zorko
Fritz, The app does periodically (re)check for CL and auth status -- this isn't the problem. However, the didChangeAuthorizationStatus listening I was not doing, and me thinks that was the missing piece. I'll try that, and many thanks all :-) Regards, John On Feb 1, 2012, at 9:24 AM, Fritz A

Re: iOS: "This application needs location services / Allow / Don't Allow" alert

2012-02-01 Thread David Duncan
On Feb 1, 2012, at 12:09 AM, John Michael Zorko wrote: > I've an issue that i'm trying to solve, and i've run into several walls. This > app i'm working on requires Core Location, and on first install, iOS displays > it's "this app needs location services / Allow / Don't Allow" alert. That's >

Re: How to deactivate an app

2012-02-01 Thread Leo
What happens if you send set frontmost of process yourApp to false then, using the name of your app? Will it reveal the previous app by a chance? If not, then is there any way to capture the name of the app you need to activate at an earlier stage, so you can send it "set frontmost to true"

Re: Block Confusion...

2012-02-01 Thread David Duncan
On Jan 31, 2012, at 5:42 PM, Eeyore wrote: > Even if you eventually decide to use weak references (after discovering the > retain/release calls are a drag on performance), making them strong > references now to see if that fixes the behavior can help you diagnose the > problem FYI, using weak

Re: NSTableView tooltip with a view based table?

2012-02-01 Thread Tim Schröder
It actually works with view-based NSTableViews. I'm not using NSArrayController but implement - (NSView *)tableView:(NSTableView *)aTableView viewForTableColumn:(NSTableColumn *)tableColumn row:(NSInteger)row where I use this code: NSTableCellView *result; result =

Re: iOS: "This application needs location services / Allow / Don't Allow" alert

2012-02-01 Thread Fritz Anderson
On 1 Feb 2012, at 2:09 AM, John Michael Zorko wrote: > This app requires location services -- the client does not want the app to > perform it is function if it detects that it's somewhere it's not supposed to > be. Is it possible for the app to somehow detect when the iOS-supplied alert > has

Re: Window/Controller, View/Controller, View ?

2012-02-01 Thread Erik Stainsby
Fritz, Where would that be introduced into the hierarchy ? As the File Owner of the View ? Or as an ObjectController added into the View ? Are you suggesting substitution or addition to the tree. Erik On 1 February 2012 09:00, Fritz Anderson wrote: > On 31 Jan 2012, at 4:34 PM, Quincey Morri

Re: Window/Controller, View/Controller, View ?

2012-02-01 Thread Fritz Anderson
On 31 Jan 2012, at 4:34 PM, Quincey Morris wrote: > It's often convenient to subclass the view controller for a particular view, > so that the objects in the view can use the view controller as its … um … > controller. This view controller itself may well end up using the window > controller as

NSTableView tooltip with a view based table?

2012-02-01 Thread Andrew
I have a view based NSTableView using an NSArrayController with NSDictionary items as rows. I would like to display a tooltip for each row as the "Description" key from my dictionaries. I have tried using the table delegate method: - (NSString *)tableView:(NSTableView *)aTableView toolTipForCell:(N

Re: Drag & Drop/Pasteboard issue in Lion

2012-02-01 Thread Samuel Williams
Hi, A while ago someone mentioned an issue ( http://www.cocoabuilder.com/archive/cocoa/307250-drag-drop-pasteboard-issue-in-lion.html#307250) where NSPasteboard from AddressBook on Lion was having problems delivering data: *(gdb) **po [[[pboard pasteboardItems] objectAtIndex:0] types]* <__NSArra

Re: Transparent window not getting mouse down events

2012-02-01 Thread Ken Thomases
On Feb 1, 2012, at 6:59 AM, Marshall Houskeeper wrote: > I was confused because the NSWindows method ignoresMouseEvents returns false > after I initialize the window. So the calling of the setIgnoresMouseEvents > must have some other side effect. Yes, it seems that there are actually three s

RE: Selected text in NSTextField

2012-02-01 Thread Dany Golubitsky
I am sorry, none of this works :( -Original Message- From: Conrad Shultz [mailto:con...@synthetiqsolutions.com] Sent: Tuesday, January 31, 2012 20:03 To: Dany Golubitsky Cc: Cocoa Development Subject: Re: Selected text in NSTextField On 01/31/2012 12:14 AM, Dany Golubitsky wrote: > Hell

Re: Transparent window not getting mouse down events

2012-02-01 Thread Marshall Houskeeper
Thank you very much for the help. Your suggestion works. I was confused because the NSWindows method ignoresMouseEvents returns false after I initialize the window. So the calling of the setIgnoresMouseEvents must have some other side effect. Maybe the documentation needs to be updated to

Re: iOS API

2012-02-01 Thread Roland King
No there is not. On Feb 1, 2012, at 4:41 PM, Luca Ciciriello wrote: > Hi All. > Is there a way to programmatically shutting off the iPhone? > In other world I'm searching a public API to control the power manager of the > iPhone. > Searching on iOS documentation I haven't found nothing (only

iOS API

2012-02-01 Thread Luca Ciciriello
Hi All. Is there a way to programmatically shutting off the iPhone? In other world I'm searching a public API to control the power manager of the iPhone. Searching on iOS documentation I haven't found nothing (only thing I can do is monitoring the status of the battery.) and this make me think

iOS: "This application needs location services / Allow / Don't Allow" alert

2012-02-01 Thread John Michael Zorko
Hello, all ... I've an issue that i'm trying to solve, and i've run into several walls. This app i'm working on requires Core Location, and on first install, iOS displays it's "this app needs location services / Allow / Don't Allow" alert. That's fine, but the issue is that my app's window's r

Re: How to deactivate an app

2012-02-01 Thread Gerriet M. Denkmann
On 1 Feb 2012, at 14:29, Ken Thomases wrote: > On Feb 1, 2012, at 1:20 AM, Gerriet M. Denkmann wrote: > >> I tried: >> >> - (void)applicationWillBecomeActive:(NSNotification *)aNotification >> { >> (void)aNotification; >> >> NSRunningApplication *currentApplication = [ NSRunningAppli