Re: command line tool called from php

2011-08-23 Thread Jens Alfke
On Aug 22, 2011, at 10:45 PM, Rainer Standke wrote: > I have a command line tool that uses foundation. When I run that tool from > the command line it does what I need it to do. This includes sending an > NSNotification to a Cocoa application via the NSDistributedNotificationCenter. > > When I

Re: command line tool called from php

2011-08-23 Thread Scott Ribe
On Aug 23, 2011, at 1:15 AM, Jens Alfke wrote: > Probably the best approach is to have your Cocoa app listen on an IP port and > then the tool can send a message to that port. You’d have to either hardcode > the port number or find a way to communicate the number to the tool This is what UNIX d

Re: Transparency of textured controls

2011-08-23 Thread Leo
On 8/21/11 7:02:09 PM, Andreas Mayer wrote: Am 19.08.2011 um 21:36 schrieb Leo: Actually, I finally realized what the real issue is: Apple for some reason didn't "refresh" NSSegmentedControl Rounded style to match the new appearance of NSTabView controls on Lion. I guess that's intentional. T

Re: Not Receiving Distributed Notifications Unless in Focus

2011-08-23 Thread Benjamin Rister
We're seeing problems similar to this too, and have a Radar in to Apple about it. Ken's comment about the change to suspension behavior in Lion is an important one, but the problem still exists even after taking that into account. Our situation is a bit more complicated, so perhaps there are ot

Re: -drawRect when running a print operation

2011-08-23 Thread Fritz Anderson
On 22 Aug 2011, at 4:32 PM, koko wrote: > The rect I get in drawRect is not the same size as the rect I return in > rectForPage ... is this expected behavior? Assuming you mean -drawRect:, the NSRect parameter must be assumed never to cover the whole content of a view. It's a "dirty" rectangle

help trouble shooting...maybe with resume?

2011-08-23 Thread Jim Thomason
Gang, Unfortunately, this is a very vague question but I'm at a bit of a loss and hoping someone could provide some general technique or avenues to explore. Apple recently rejected a new app of mine, with this explanation: When saving a file, and reopening it by double-clicking the saved file in

Re: printDocument: hangs on Lion?

2011-08-23 Thread Kevin Perry
Hi Graham, First of all, -printShowingPrintPanel: is deprecated. I believe if you were to stop overriding that method and use -printOperationWithSettings:error: and -runModalPrintOperation:delegate:didRunSelector:contextInfo: instead the problem would go away. Otherwise, you've found the crux

Re: [SOLVED] Re: printDocument: hangs on Lion?

2011-08-23 Thread Kevin Perry
Whoops, found this too late. See my other reply about the actual cause of the deadlock though. Deprecation warnings are unfortunately only generated when calling a method, not when they are overridden. -KP On Aug 22, 2011, at 8:24 PM, Graham Cox wrote: > > On 23/08/2011, at 1:00 PM, Graham C

Re: command line tool called from php

2011-08-23 Thread Rainer Standke
That's an interesting find, the fact that you can post notifications across sessions - I wasn't aware of that. And it turns out that this was the solution. PHP does run as a separate user, but it doesn't seem to matter. Thanks, Daniel, and everyone, for your help! Rainer On Aug 23, 2011, at 1

Re: help trouble shooting...maybe with resume?

2011-08-23 Thread davelist
On Aug 23, 2011, at 11:00 AM, Jim Thomason wrote: > Gang, > > Unfortunately, this is a very vague question but I'm at a bit of a > loss and hoping someone could provide some general technique or > avenues to explore. > > Apple recently rejected a new app of mine, with this explanation: > > Whe

Re: Overriding Lion's SaveState

2011-08-23 Thread Sean McBride
On Mon, 22 Aug 2011 12:39:01 -0700, Matthew Weinstein said: >I'm working on updating my app for lion. For the time being, just to get >users able to proceed I need to disable Lion's restore savedstate >default. I don't want Lion opening any windows (other than the ones I >open programmatically) wh

Preventing lion from saving state...

2011-08-23 Thread Matthew Weinstein
My approach has landed up being just as kludgy, and I'm really annoyed that apple has made no way to opt out of this "feature." I have basically gone in (in the applicationWillFinishLaunching app delegate notification) and emptied and locked the saveState folder for just my application in the ~

Re: [SOLVED] Re: printDocument: hangs on Lion?

2011-08-23 Thread Jerry Krinock
On 2011 Aug 22, at 20:24, Graham Cox wrote: > there seems to still be a compatibility code path that supports this within > NSDocument, but that compatibility code path is not in itself compatible with > the new document saving malarkey. So, it's Apple's bug, but perhaps not one > they would c

Large over 100K pixel high ruler scroll view

2011-08-23 Thread Julie Porter
I work with scans of 10 tune Nickelodeon player piano rolls. These can be over 100 yards long when unrolled. My roll images when uncompressed can be 100,000 plus pixels by 2800 pixels. In actual practice the images are made of lines, not pixels. To read these I have programs written in posts

Re: Large over 100K pixel high ruler scroll view

2011-08-23 Thread Evadne Wu
I think, if you can use CATiledLayer, things will be a lot more easier. -ev On Aug 24, 2011, at 5:18 AM, Julie Porter wrote: > I work with scans of 10 tune Nickelodeon player piano rolls. These can be > over 100 yards long when unrolled. My roll images when uncompressed can be > 100,000 plus

Re: Large over 100K pixel high ruler scroll view

2011-08-23 Thread Thomas Davie
if (*ra4 != 0xffc78948) { return false; } On 23 Aug 2011, at 22:18, Julie Porter wrote: > I work with scans of 10 tune Nickelodeon player piano rolls. These can be > over 100 yards long when unrolled. My roll images when uncompressed can be > 100,000 plus pixels by 2800 pixels. In actual pra

Re: help trouble shooting...maybe with resume?

2011-08-23 Thread Sean McBride
On Tue, 23 Aug 2011 10:00:06 -0500, Jim Thomason said: >I'm guessing it's due to Lion's resume window features somehow getting >confused. Have you read the comments about how to works in the AppKit release notes? They are quite informative. -- __

Re: Preventing lion from saving state...

2011-08-23 Thread Graham Cox
On 24/08/2011, at 4:25 AM, Matthew Weinstein wrote: > My approach has landed up being just as kludgy, and I'm really annoyed that > apple has made no way to opt out of this "feature." In Xcode 4, you can configure your scheme to have "disable state restoration" checked. This suggests that the

Re: Large over 100K pixel high ruler scroll view

2011-08-23 Thread Julie Porter
On 23 Aug 2011, at 22:18, Julie Porter wrote: How do I do setup the ruler and scrollviews programetically without interface builder? On 8/23/11 2:30 PM, Thomas Davie wrote: Your best bet is to not completely dump IB, but to simply set the contentSize programatically as soon as you load you

Re: Large over 100K pixel high ruler scroll view

2011-08-23 Thread Conrad Shultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 8/23/11 4:19 PM, Julie Porter wrote: > This is what I am having issue with.How and where to put the > delegates? Specifically what file would I place them into? Or do > I create a new file for the delegate that does this? Sorry to jump in a

Re: Large over 100K pixel high ruler scroll view

2011-08-23 Thread Jens Alfke
On Aug 23, 2011, at 4:19 PM, Julie Porter wrote: >> Your best bet is to not completely dump IB, but to simply set the >> contentSize programatically as soon as you load your document. >> > This is what I am having issue with.How and where to put the delegates? > Specifically what file wou

Re: Large over 100K pixel high ruler scroll view

2011-08-23 Thread Graham Cox
On 24/08/2011, at 9:56 AM, Conrad Shultz wrote: > You are right about the coordinate space, but remember that > NSScrollView does not handle zooming (scaling?) - that is up to you. I have a view subclass that simplifies this task http://apptre.net/gczoomview.htm Drop this into a NSScrollView

Re: Large over 100K pixel high ruler scroll view

2011-08-23 Thread Julie Porter
I don't see how bindings come into this. I'm also unclear by what you mean by "setup wizards" - are you referring to Xcode templates, or...? - -- Conrad Shultz This is actually a graphical interface on top of a coredata database (XML) So I used the core data tools and bindings to define

Re: Large over 100K pixel high ruler scroll view

2011-08-23 Thread Graham Cox
On 24/08/2011, at 10:21 AM, Graham Cox wrote: > I'm not sure about the 10,000 pixel limit - I've never run into it. But I > believe that pertains to the view's frame, not its bounds. > Note that when you zoom a view, the frame and the bounds have a further > difference, which not only describ

Re: Is there any API to detect the WIFI/CELL Signal Strength

2011-08-23 Thread Sasikumar JP
Kyle, Thanks for the info. For my education, could you let me know,if there is any API to get the WIFI/CELL signal strength. Thanks Sasikumar JP Sent from my iPad On 23-Aug-2011, at 10:54 AM, Kyle Sluder wrote: > On Aug 22, 2011, at 9:26 PM, Sasikumar JP wrote: > >> Hi, >> I am worki

Re: Large over 100K pixel high ruler scroll view

2011-08-23 Thread Graham Cox
whoops, sorry... http://apptree.net/gczoomview.htm (note - handling zoom isn't difficult, but this class makes it easier and adds some useful UI-level actions that can be directly hooked to menu commands if you wish). --G. On 24/08/2011, at 10:36 AM, Julie Porter wrote: > On 8/23/11 5:21 PM

Re: [SOLVED]Preventing lion from saving state...

2011-08-23 Thread Matthew Weinstein
Graham, that works like a charm. I just put this in my delegate applicationwillfinishlaunching method: #define NSDEF [NSUserDefaults standardUserDefaults] if([NSDEF objectForKey: @"ApplePersistenceIgnoreState"] == nil) [NSDEF setBool: YES forKey:@"ApplePersistenceIgnoreSt

Odd error logged when coming back from 'Browse All Versions'

2011-08-23 Thread Graham Cox
My app has floating palettes. When I go to 'Browse All Versions...', these palettes get moved beyond the edges of the screen. When I come back from browsing the versions, the palettes are not there until I force then to show again using the controller's -showWindow: method - they come back in t

Re: Is there any API to detect the WIFI/CELL Signal Strength

2011-08-23 Thread Jens Alfke
On Aug 23, 2011, at 5:38 PM, Sasikumar JP wrote: > For my education, could you let me know,if there is any API to get the > WIFI/CELL signal strength. At some level there probably is. I have no idea whether it’s private or not. (Particularly on iOS, which exposes a lot fewer system-level APIs

Advice: Which drawing API to use?

2011-08-23 Thread John Pannell
Hi all- I'm preparing to develop a view remarkably similar to the drawing canvas of Quartz Composer or Xcode's core data modeler: the view features a grid background, draggable nodes featuring a header and multiple rows of elements, and the elements can be connected to elements in other nodes w

Re: Advice: Which drawing API to use?

2011-08-23 Thread Graham Cox
On 24/08/2011, at 1:36 PM, John Pannell wrote: > 1. View is zoomable and looks good at all zoom levels. > 2. Text looks good and is antialiased. > 3. All elements support subtle transparency. > 4. Animation (i.e. flow in pipes) is a bonus. > > My gut is to go with Core Animation: items 1, 3,

CocoaHeads Aachen (Germany) - August Meeting

2011-08-23 Thread Michael Plagge
Dear CocoaHeads, our next CocoaHeads Aachen meeting will be this Thursday (2011/08/25) featuring the following interesting topic: - [Talk] Thorsten Karrer, Moritz Wittenhagen: "OpenGL Core Profile" This *free* event starts at 7 p.m. in room 2010 of the Aachen University Computer Science Campus

Matching output color from Preview with PDFKit

2011-08-23 Thread Chris Backas
Hello all, I am trying to setup an internal application that prints PDF documents in an automated fashion to a set of known internal printers. I have played with the various vendor settings in the Print dialog in Preview long enough to get a saved set of print options that produce the color

Re: command line tool called from php

2011-08-23 Thread Daniel Acosta
On Aug 23, 2011, at 12:15 AM, Jens Alfke wrote: > > On Aug 22, 2011, at 10:45 PM, Rainer Standke wrote: > >> I have a command line tool that uses foundation. When I run that tool from >> the command line it does what I need it to do. This includes sending an >> NSNotification to a Cocoa applic

Incomplete Wake on LAN

2011-08-23 Thread Robert Douglas
Is there a way to wake up the display or to come out of idle sleep? I have a central computer communicating with several satellite Macs that generate and display our patterns. The satellites get no user input and I keep them awake with UpdateSystemActivity(). That all works great until there