Predicate format to match array of partial strings against other array

2010-03-30 Thread fabian
ANY {Name,Age,Gender} LIKE[cd] "Mar*" returns Mary, Martin, etc. ANY {Name,Age,Gender} IN[cd] {"Mary","Martin"} also works fine, but doesn't take wildcards, as all array operators uses direct object comparisons. How can I match an array of partial strings, e.g. {"Mar*", "Li*"}, against the first

Re: Prevent NSWindow from hiding with app

2010-03-25 Thread fabian
On Fri, Mar 26, 2010 at 12:05 AM, Jens Alfke wrote: > > On Mar 25, 2010, at 12:52 PM, fabian wrote: > > Sorry for being unclear. I want NSApp to behave normally, i.e. when the >> user >> hides it (with Command+H) the menu bar and all windows _except this one >> wi

Re: Prevent NSWindow from hiding with app

2010-03-25 Thread fabian
On Thu, Mar 25, 2010 at 9:55 PM, Philip Mobley wrote: > On Mar 25, 2010, at 12:52 PM, fabian wrote: > > > Sorry for being unclear. I want NSApp to behave normally, i.e. when the > user hides it (with Command+H) the menu bar and all windows _except this one > window_ should hi

Re: Prevent NSWindow from hiding with app

2010-03-25 Thread fabian
On Thu, Mar 25, 2010 at 9:25 PM, Knut Lorenzen wrote: > > So why not use [NSApp activateIgnoringOtherApps: YES], do all the stuff you > need to do and finally use [NSApp deactivate] to resign control? > > I don't need to activate the app to display a window with a level higher than NSNormalWindow

Re: Prevent NSWindow from hiding with app

2010-03-25 Thread fabian
n response to a hotkey - but I don't want to have to delay the hiding of NSApp until the window has been ordered out (if the user decides to hide it when the window is on screen). I hope this clarifies my goal. On Thu, Mar 25, 2010 at 8:37 PM, Knut Lorenzen wrote: > > Am 25.03.2010 um

Re: Prevent NSWindow from hiding with app

2010-03-25 Thread fabian
pected behavior from a user perspective. -F On Thu, Mar 25, 2010 at 7:30 PM, Joanna Carter < cocoa...@carterconsulting.org.uk> wrote: > Hi Fabian > > > Is it possible to prevent a window from hiding when NSApp is hidden, so > it > > always stays on screen? I only want t

Prevent NSWindow from hiding with app

2010-03-25 Thread fabian
Is it possible to prevent a window from hiding when NSApp is hidden, so it always stays on screen? I only want the menu bar to go away. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the

Re: Uninitialized rectangle??

2010-03-10 Thread fabian
For the records: the dummy view did the trick. Thank you! F. On Thu, Mar 4, 2010 at 11:24 PM, fabian wrote: > On Thu, Mar 4, 2010 at 8:10 PM, Steven Degutis > wrote: > >> NSStatusItem's -view and -setView: methods are related to your own custom >> view, and have noth

Re: Uninitialized rectangle??

2010-03-04 Thread fabian
gt; > -Steven > Well, I'm kind of desperate, so I'll give it a try. And file a radar. Thanks. F. On Thu, Mar 4, 2010 at 2:01 PM, fabian wrote: > On Thu, Mar 4, 2010 at 7:47 PM, Steven Degutis > wrote: > >> Right. Have you tried the solution I proposed in the /very f

Re: Uninitialized rectangle??

2010-03-04 Thread fabian
hear the arguments for it before proceeding. > > On Thu, Mar 4, 2010 at 1:05 PM, fabian wrote: > >> On Thu, Mar 4, 2010 at 6:50 PM, Steven Degutis >> wrote: >> >>> Are you sure that your NSStatusBar or NSStatusItem instances are nil, and >>> not just what&

Re: Uninitialized rectangle??

2010-03-04 Thread fabian
assertion failure. > On Thu, Mar 4, 2010 at 12:05 PM, fabian wrote: > >> On Thu, Mar 4, 2010 at 5:28 PM, Jens Alfke wrote: >> >> > >> > On Mar 4, 2010, at 12:42 AM, fabian wrote: >> > >> > > Right. But why should it matter? The sys

Re: Uninitialized rectangle??

2010-03-04 Thread fabian
On Thu, Mar 4, 2010 at 6:35 PM, Kyle Sluder wrote: > On Thu, Mar 4, 2010 at 9:05 AM, fabian wrote: > > It's in -applicationDidFinishLaunching. Which works great on all systems > (as > > far as I know), except for on 10.5.8 where NSStatusBar is still nil at > this

Re: Uninitialized rectangle??

2010-03-04 Thread fabian
On Thu, Mar 4, 2010 at 5:28 PM, Jens Alfke wrote: > > On Mar 4, 2010, at 12:42 AM, fabian wrote: > > > Right. But why should it matter? The system status bar is not in the nib. > Just curious about what is going on behind the scenes... > > The status bar is in the menu

Re: Uninitialized rectangle??

2010-03-04 Thread fabian
On Thu, Mar 4, 2010 at 12:38 AM, Jens Alfke wrote: > > On Mar 3, 2010, at 3:00 PM, fabian wrote: > > Thanks for your replies. I understand that the -frame message is returning >> garbage. What I don't understand is why statusBar, statusItem or the >> statusItem&

Re: Uninitialized rectangle??

2010-03-03 Thread fabian
s in the docs. Or should I go with Steven's advice, and feed the status item with a dummy view first? What difference would it make? On Wed, Mar 3, 2010 at 9:14 PM, Ken Thomases wrote: > On Mar 3, 2010, at 1:23 PM, fabian wrote: > > > I once noticed that this code caused an as

Uninitialized rectangle??

2010-03-03 Thread fabian
Hi, I once noticed that this code caused an assertion failure when placed in awakeFromNib. NSStatusBar *statusBar = [NSStatusBar systemStatusBar]; statusItem = [[statusBar statusItemWithLength:26] retain]; NSRect frameRect = [[statusItem view] frame]; MyStatusItemView *theView = [[MyStatusItemVie

DVDPlayback - garbled graphics in fullscreen, and missing device complaint

2008-10-05 Thread Fabian
Hi all, I'm having a couple of issues implementing the DVDPlayback framework in a kiosk app. First of all I see a lot a garbled graphics. The screen goes green and all I see is interlaced junk. Not always, but quite often, and when I do I usually need to force a shutdown of the computer. It seems

Re: UIElement app doesn't come to front

2008-09-19 Thread Fabian
Try [NSApp activateIgnoringOtherApps:YES]; HTH. On Fri, Sep 19, 2008 at 12:28 PM, Memo Akten <[EMAIL PROTECTED]> wrote: > I want to create a very simple little app that launches a window at startup, > and then runs in the background with no dock and menu. > > I've created the app as a standard co

Re: Trouble with Scripting Bridge

2008-09-03 Thread Fabian
Looks like you are getting the track for nothing. Try changing [track get]; to track = [track get]; or you will just be querying the reference for gapless. F. On Mon, Sep 1, 2008 at 4:21 PM, Peter Stirling <[EMAIL PROTECTED]> wrote: > '=' and '==' are equivalent in predicate format strings (p

Re: try this for fadebackin

2008-08-13 Thread Fabian
Thanks Tolga. I tried your code but no luck I'm afraid. The only difference between your code and mine seems to be you have 25 seconds reservation instead of kCGMaxDisplayReservationInterval (which shouldn't matter as the max interval is 15 seconds), and set your fade-in to asynchronous instead of

CGDisplayFade problem

2008-08-13 Thread Fabian
Hi all, I have this problem where CGDisplayFade fails every fifth or so time it is called, and I don't see why. What fails is usually fading in, but also out from time to time. As you can see in the code below I wait for the fade to complete in the fadeOut method, update the window content and the

Re: Predicate Binding Format/case sensitive question ...

2008-07-28 Thread Fabian
Easy. entry contains[c] $value, or [cd] for case- and diacritic-insensitive. F. On Mon, Jul 28, 2008 at 10:32 PM, vince <[EMAIL PROTECTED]> wrote: > Thanks, > I've added a search field to my database using bindings. Works fine. > > How do I alter the following Predicate Format binding syntax ...

Re: Need help with predicate format

2008-07-28 Thread Fabian
on/Cocoa/Conceptual/Predicates/predicates.html > Good luck, > > -Conrad > > On Mon, Jul 28, 2008 at 1:02 AM, Fabian <[EMAIL PROTECTED]> wrote: > >> Thanks. Maybe I should have made myself a little more clear. I don't >> want to iterate over the array, but filt

Re: Need help with predicate format

2008-07-28 Thread Fabian
Thanks. Maybe I should have made myself a little more clear. I don't want to iterate over the array, but filter the array using a NSPredicate. I'm looking at the Predicate Programming Guide, which only gives basic guidance, and the docs for NSExpression. It has several class methods that "sound ri

Need help with predicate format

2008-07-27 Thread Fabian
Hello, I'm trying to understand how to use subquery expressions, but I just don't... :-) I have an array of MyCustomClass objects. MyCustomClass has a function that returns an array of dictionaries. I want to query all keys in each dictionary for a given string, i. e. something like "(ANY SELF.fu

Re: SBApplication error with iTunes 7.7

2008-07-23 Thread Fabian
x27;t rely on something as unpredictable as SB. Thanks again. On Tue, Jul 22, 2008 at 6:47 PM, Hengist Podd <[EMAIL PROTECTED]> wrote: > Fabian wrote: > >> I have an app that interacts with iTunes via Scripting Bridge. After >> upgrading to iTunes 7.7 I get this er

SBApplication error with iTunes 7.7

2008-07-22 Thread Fabian
er reference, where it is declared a typeData constant of typeAEText. Does anyone know what this means, maybe even how to solve it? Thanks! Fabian ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator co

Re: Move window to second display

2008-07-16 Thread Fabian
Hum, OK. Thanks to both of you. So what's wrong with the code then? On Wed, Jul 16, 2008 at 6:36 PM, Jean-Daniel Dupas <[EMAIL PROTECTED]> wrote: > > Le 16 juil. 08 à 18:15, Scott Ribe a écrit : > >>> The window frame origin is a position relative to the screen origin. >>> >>> Try this: >>> >>> sc

Re: Move window to second display

2008-07-16 Thread Fabian
Thanks Jean-Daniel, I will try that. F. On Wed, Jul 16, 2008 at 1:21 PM, Jean-Daniel Dupas <[EMAIL PROTECTED]> wrote: > > Le 16 juil. 08 à 13:01, Fabian a écrit : > >> Hi, >> >> I only have one monitor, so I'm having a bit of a problem figuring this >

Move window to second display

2008-07-16 Thread Fabian
Hi, I only have one monitor, so I'm having a bit of a problem figuring this out. I have a (borderless) window that should be displayed on any display chosen by the user. I figured the code below would do the trick, but apparently it's a no go (I use setFrameFromString: when the app is launched; t

Re: Popup dismissal

2008-07-05 Thread Fabian
Never mind. I figured out I can detect action dismissal with a simple boolean (actionDismissed = YES when receiving a NSPopUpButtonWillPopUpNotification, actionDismissed = NO when receiving a NSMenuWillSendActionNotification). On Sat, Jul 5, 2008 at 2:46 PM, Fabian <[EMAIL PROTECTED]>

Popup dismissal

2008-07-05 Thread Fabian
Hi, I need a notification when the user dismisses a popup menu _without having actually clicked on a menu item_. A clumsy way of doing this would be to check if the mouse is hovering over the menu in NSPopUpButtonCell's "popUpDismissed" method. This way I can detect if the user cancelled the opera

Re: Memory not freed with CIImage

2008-06-12 Thread Fabian
>From the archives, originally posted by Rob Keniger: I had problems with this too, and I use a workaround I found somewhere where you render to a CGImageRef in the context of the current window. Here's a dump of the code: //theImage is an existing NSImage CIImage *outputImage = [CIImage imageWit

Predicate expressions

2008-05-31 Thread Fabian
NSPredicate *predicate = [NSPredicate predicateWithFormat:@"(title IN %@) AND (subtitle IN %@)", titles, subtitles]; NSArray *result = [arrayA filteredArrayUsingPredicate:predicate]; Regards, Fabian ___ Cocoa-dev mailing list (Cocoa-dev@l