Re: Flash inside an app

2013-05-30 Thread Alexandru Gologan
Sorry I meant WebView not it's iOS counterpart. As for how I can achieve this? Some services offer players that enable you to control them through Javascript. Loading them in a web view you can call javascript which in turn call you back through the web view delegate - i simplified the process

Re: Dismissing menu from menu item that uses custom view

2013-05-30 Thread Kyle Sluder
On Thu, May 30, 2013, at 08:30 PM, Steve Mills wrote: > Just tried it. Didn't work. I also used NSEventTrackingRunLoopMode, since > that's the current run loop when tracking a menu. I wish Apple had more > people on these lists that can give definitive answers to our questions. > It sure would help

Re: Dismissing menu from menu item that uses custom view

2013-05-30 Thread Steve Mills
On May 30, 2013, at 18:44:46, Shane Stanley wrote: > Have you looked at -nextEventMatchingMask:untilDate:inMode:dequeue:? As in: > > NSEvent *event; > while ((event = [NSApp nextEventMatchingMask:NSAnyEventMask > untilDate:nil inMode:NSDefaultRunLoopMode dequeue:YES])) > { >

Re: NSMapTable with C strings as keys

2013-05-30 Thread Ian Joyner
On 31 May 2013, at 01:43, Jens Alfke wrote: > > On May 30, 2013, at 3:52 AM, Ian Joyner wrote: > >> What I am trying to point out though is that there is a misapprehension that >> premature optimization means writing structured code early on so don't >> structure it because you can always go

Re: Dismissing menu from menu item that uses custom view

2013-05-30 Thread Kyle Sluder
On Thu, May 30, 2013, at 06:49 AM, Steve Mills wrote: > I assume drawing can't get flushed to the screen until control is > returned to the tracking event loop? What I came up with works, but seems > ridiculously inelegant. Is there some better way to give the current > event loop time so I can hav

Re: Dismissing menu from menu item that uses custom view

2013-05-30 Thread Shane Stanley
On 30/05/2013, at 11:49 PM, Steve Mills wrote: > Is there some better way to give the current event loop time so I can have > the drawing and canceling done right in my mouseUp handler? Have you looked at -nextEventMatchingMask:untilDate:inMode:dequeue:? As in: NSEvent *event;

Re: App store reject on asl log. How else do I get at the log messages?

2013-05-30 Thread Dave Fernandes
Not sure if this meets sandboxing requirements, but you can redirect the console log in main.c: freopen([APP_LOG_PATH fileSystemRepresentation], "a", stderr); Surround this in @autoreleasepool{} if you need ARC memory management to create your path string. On 2013-05-30, at 5:46 PM, Gideon Ki

App store reject on asl log. How else do I get at the log messages?

2013-05-30 Thread Gideon King
Hi, My app was rejected from the store because I wanted the entitlement: com.apple.security.temporary-exception.files.absolute-path.read-only - /private/var/log/asl/ I need this so I can use the asl_new, asl_set_query, asl_search, aslresponse_next, asl_get, and aslresponse_free to be able to

Re: NSMapTable with C strings as keys

2013-05-30 Thread Eric Wing
On 5/30/13, Jens Alfke wrote: > > On May 29, 2013, at 11:35 PM, Eric Wing wrote: > >> In my introduction, I was fairly adamant that time lost to impedance >> mis-match should be measured because my interest was real performance >> in using these libraries for projects based in C. That conversion

Re: NSMapTable with C strings as keys

2013-05-30 Thread Jens Alfke
On May 30, 2013, at 3:52 AM, Ian Joyner wrote: > What I am trying to point out though is that there is a misapprehension that > premature optimization means writing structured code early on so don't > structure it because you can always go and clean it up later. Rather I think > we should wri

Re: NSMapTable with C strings as keys

2013-05-30 Thread Jens Alfke
On May 29, 2013, at 11:35 PM, Eric Wing wrote: > In my introduction, I was fairly adamant that time lost to impedance > mis-match should be measured because my interest was real performance > in using these libraries for projects based in C. That conversion time > is non-trivial. If you’re codi

Re: NSMapTable with C strings as keys

2013-05-30 Thread Jens Alfke
On May 30, 2013, at 3:52 AM, Ian Joyner wrote: > What I am trying to point out though is that there is a misapprehension that > premature optimization means writing structured code early on so don't > structure it because you can always go and clean it up later. Rather I think > we should wri

Re: Dismissing menu from menu item that uses custom view

2013-05-30 Thread Steve Mills
I previously assumed I could simply draw my view a couple times with a delay between, to simulate the quick flash that a menu item does when you choose it. Of course, so many things have to be difficult in the world of Cocoa. I assume drawing can't get flushed to the screen until control is retu

Re: NSMapTable with C strings as keys

2013-05-30 Thread Ian Joyner
On 30 May 2013, at 12:33, Jens Alfke wrote: > > On May 29, 2013, at 6:30 PM, Ian Joyner wrote: > >> That seems to come out of a belief that well-structured code is code that >> runs poorly > > No, it’s a paraphrase of a famous quote by Don Knuth ("We should forget about > small efficiencies,

Re: NSMapTable with C strings as keys

2013-05-30 Thread Jean-Daniel Dupas
Le 30 mai 2013 à 08:35, Eric Wing a écrit : > On 5/29/13, Jens Alfke wrote: >> >> On May 29, 2013, at 8:29 PM, Eric Wing wrote: >> >>> CFDictionary I did not formally do in the benchmark, but I did run on >>> the side for curiosity. I found that the C-string to CFString >>> conversion ended