Re: Webview and dynamic content

2010-02-28 Thread Jere Gmail
:52 PM, Jens Alfke wrote: > > On Feb 27, 2010, at 2:39 AM, Jere Gmail wrote: > >> What's the better way to implement it. I've think two options: save >> the json files in the app resources folder, same way iPhoto stores the >> files. Or save them in the app support

Webview and dynamic content

2010-02-27 Thread Jere Gmail
Hi there, I'm developing an app that relies on a webpage. This page has to load local files (json or xml) that i save on the hard drive. What's the better way to implement it. I've think two options: save the json files in the app resources folder, same way iPhoto stores the files. Or save them in

Re: Prevent computer from going to sleep but _not_ disable dimming

2008-05-28 Thread Jere Gmail
Either you are doing something wrong or you have another app keeping your screen on, like quicktime or vlc. On Tue, May 27, 2008 at 11:26 AM, Manfred Schwind <[EMAIL PROTECTED]> wrote: >> You have to use IdleActivity, that's the one I use and it works. > > Are you sure? I tried all constants, but

Re: NSView Text Paint inversed

2008-05-21 Thread Jere Gmail
f you are drawing in some unusual way you might be > confusing it. > > G. > > > On 21 May 2008, at 1:40 am, Jere Gmail wrote: > >> Hi. I have an NSView where I paint some text and paths. >> The paths are drawn ok, but when I resize the window, sometimes the >

NSView Text Paint inversed

2008-05-20 Thread Jere Gmail
Hi. I have an NSView where I paint some text and paths. The paths are drawn ok, but when I resize the window, sometimes the text is written upside down. Anyone knows why? Thanks. -- http://zon7blog.wordpress.com/ And again we fall. ___ Cocoa-dev mailing

Re: Sleep Display

2008-05-11 Thread Jere Gmail
Hi. I've tryed this code and it works. The problem is that with some machines it causes a kernel panic. They are PPC machines. Isn't this code compatible? On Sun, Nov 4, 2007 at 8:45 AM, Andrew James <[EMAIL PROTECTED]> wrote: > Hi, > How far back is this compatible? is it only 10.5? > > On 11/4/0

Re: An Example NSStatusItem with a menu

2008-05-09 Thread Jere Gmail
it is easy. Just set the properties of the NSStatusItem. Then don't state setMenu. Instead call setAction with a method. [status_menu setAction:@selector(menuClick:)]; In that method you can add all the items you want. At the end of the method you have to call the popUpStatusItemMenu method to dis

Re: Update NSMenuItem while displaying

2008-05-06 Thread Jere Gmail
Thanks, it worked with this line: [[NSRunLoop currentRunLoop] addTimer:timer forMode:NSEventTrackingRunLoopMode]; On Sat, May 3, 2008 at 2:50 PM, Ricky Sharp <[EMAIL PROTECTED]> wrote: > > On May 3, 2008, at 7:31 AM, Jere Gmail wrote: > >> I have a NSMenuItem int a NSStatus

Re: List Running apps and windows

2008-05-05 Thread Jere Gmail
er if someone ask for it. There are lots of info to make and application accesible but no info to make an assistive app. On Mon, May 5, 2008 at 1:24 AM, Adam Leonard <[EMAIL PROTECTED]> wrote: > > On May 4, 2008, at 2:28 AM, Jere Gmail wrote: >> >> I have implemented this cod

Re: List Running apps and windows

2008-05-04 Thread Jere Gmail
this happening? On Sun, May 4, 2008 at 11:28 AM, Jere Gmail <[EMAIL PROTECTED]> wrote: > I have implemented this code: > if(!AXAPIEnabled ()) > { > NSLog(@"API not enabled"); > return; >

Re: List Running apps and windows

2008-05-04 Thread Jere Gmail
: > > > On May 3, 2008, at 3:52 PM, Jere Gmail wrote: > > I want to list all the running apps and their windows. > Running apps is easy with [ws launchedApplications] but I cant find a > way for listing their windows. > I have tried NSWindowList(win_c

List Running apps and windows

2008-05-03 Thread Jere Gmail
I want to list all the running apps and their windows. Running apps is easy with [ws launchedApplications] but I cant find a way for listing their windows. I have tried NSWindowList(win_count,arr_win) but then [[NSApplication sharedApplication] windowWithWindowNumber:arr_win[i]] in a bucle will gi

Update NSMenuItem while displaying

2008-05-03 Thread Jere Gmail
I have a NSMenuItem int a NSStatusBarItem that displays the remaining time of a timer. It is only updated when I'm not viewing the menu. When I click in the menu, I can see in the debug console that no there are no calls to the timer loop function. How can I solve it? -- http://zon7blog.wordpress

Disabling screen turning off

2008-05-02 Thread Jere Gmail
Hi. I know I can stop the machine from going to sleep through calling the function UpdateSystemActivity ( UInt8 activity ); But I also want to stop it from turning off the screen, as quicktime or vlc do. How can I do this? -- http://zon7blog.wordpress.com/ And again we fall. _

Re: Problem with Memory Leaks

2008-04-26 Thread Jere Gmail
, Jere Gmail <[EMAIL PROTECTED]> wrote: > The call is done with click on a toolbar item, so it's not in a thread. > > With the copying and releasing m_image thing you are right. Your way > is better. Thanks > > Btw. I found someone with the same problem here, but th

Re: Problem with Memory Leaks

2008-04-26 Thread Jere Gmail
m_image and use it as the input, not > using a copy. Same result with less time and memory. > > > > On Apr 26, 2008, at 2:32 PM, Jere Gmail wrote: > > > > I've an image loaded into memory and I want to flip it. The problem is > > that when I do it some memory i

Problem with Memory Leaks

2008-04-26 Thread Jere Gmail
I've an image loaded into memory and I want to flip it. The problem is that when I do it some memory is leaked. I've searched and sliced the code but can't find where it is. Maybe someone can help. The function I call is flip. If I call flip_v or needsDisplay only no leak happens, but when both a

Re: Not showing window at Document-Based application

2008-04-26 Thread Jere Gmail
Thanks. It worked. On Sat, Apr 26, 2008 at 1:34 PM, Jean-Daniel Dupas <[EMAIL PROTECTED]> wrote: > > > Le 26 avr. 08 à 11:57, Jere Gmail a écrit : > > I have created Document-Based application. The problem is that every > time I run the application an empty document is

Not showing window at Document-Based application

2008-04-26 Thread Jere Gmail
I have created Document-Based application. The problem is that every time I run the application an empty document is created. I don't want this to happen. I want the user to have to open a new one. How can I disable this behaviour? -- http://zon7blog.wordpress.com/ And again we fall.

Re: Hide application from dock

2008-04-09 Thread Jere Gmail
t;[EMAIL PROTECTED]> wrote: > On Apr 9, 2008, at 3:10 PM, Jere Gmail wrote: > > > I know I can hide my app from dock simply changing the value > > NSUIElement in the Info.plist > > But I want to do it from inside the application. Is there an easy way > > to modify this

Hide application from dock

2008-04-09 Thread Jere Gmail
I know I can hide my app from dock simply changing the value NSUIElement in the Info.plist But I want to do it from inside the application. Is there an easy way to modify this file? -- http://zon7blog.wordpress.com/ And again we fall. ___ Cocoa-dev mai

Menu on system bar

2008-04-08 Thread Jere Gmail
I know I can place a menu on the system bar to make my application accesible when on background, but right now I can't find it. I did it last year but totally forgot. Anyone can help? -- http://zon7blog.wordpress.com/ And again we fall. ___ Cocoa-dev m

Re: NSString format parameter order

2008-04-08 Thread Jere Gmail
Woo. If that's true is just what I was looking for. Thank you. I'll try it when I get back home On Tue, Apr 8, 2008 at 12:10 PM, <[EMAIL PROTECTED]> wrote: > > On 8 Apr 2008, at 11:33, Jere Gmail wrote: > > > I'm looking for a way to switch parameter

Re: NSString format parameter order

2008-04-08 Thread Jere Gmail
ring you want. > > > > On Apr 8, 2008, at 3:48 AM, Jere Gmail wrote: > > > > Well, it's not a language thing at this moment but it started this way. > > Right now I have a txt file with one string with the places where the > > fields should be. I use it as

Re: NSString format parameter order

2008-04-08 Thread Jere Gmail
ng1 = @"you", * string2 = @"hello"; > > ... > > if([language isEqualToString:@"Backwards Latin"]) > { > NSString * temp = string1; > > string1 = string2; > string2 = temp; > } > > NSString * str = [NSString

NSString format parameter order

2008-04-08 Thread Jere Gmail
I'm looking for a way to switch parameters order in order to use the same parameters for different languages. something like NSString string1=@"you" NSString string1=@"hello" NSString str=[NSString stringWithFormat:@"%2 %1", string1,string2]; will make str value "hello you". I have been working w