Re: Prevent screen saver from starting, but don't prevent computer sleep

2020-06-29 Thread Gabriel Zachmann via Cocoa-dev
> > Otherwise, if sandboxing, refer to this discussion. > https://stackoverflow.com/questions/21956946/authenticate-user-objective-c-cocoa-sandboxing > > Thanks a lot for the link. After carefully rea

Re: Prevent screen saver from starting, but don't prevent computer sleep

2020-06-29 Thread Sandor Szatmari via Cocoa-dev
Gabriel, > On Jun 29, 2020, at 07:04, Gabriel Zachmann wrote: > >  >> I was hoping to convey to the OP that the goals of this question might have >> unintended consequences. > > > I realize there might be security concerns with what I am trying to do. > > Is there a way to lock the screen s

Re: Prevent screen saver from starting, but don't prevent computer sleep

2020-06-29 Thread Gabriel Zachmann via Cocoa-dev
> I was hoping to convey to the OP that the goals of this question might have > unintended consequences. I realize there might be security concerns with what I am trying to do. Is there a way to lock the screen such that the user has to provide their password to unlock it, and still have my a

Re: Prevent screen saver from starting, but don't prevent computer sleep

2020-06-29 Thread Sandor Szatmari via Cocoa-dev
> On Jun 29, 2020, at 02:46, じょいすじょん wrote: > >  > >>> On Jun 29, 2020, at 15:24, Sandor Szatmari >>> wrote: >>> >>> >>> On Jun 28, 2020, at 22:29, じょいすじょん via Cocoa-dev wrote: >>> >>> One way to do this is with the command line tool: >>> caffeinate >>> >>> You could run a

Re: Prevent screen saver from starting, but don't prevent computer sleep

2020-06-29 Thread Gabriel Zachmann via Cocoa-dev
Thanks! That seems rather what I need. Now, is there a way to check the user's password before my app quits or goes out of full-screen mode? Best regards, Gabriel smime.p7s Description: S/MIME cryptographic signature ___ Cocoa-dev mailing list

Re: Prevent screen saver from starting, but don't prevent computer sleep

2020-06-29 Thread John Joyce via Cocoa-dev
> > On Jun 29, 2020, at 10:53, Graham Cox via Cocoa-dev > wrote: > > In the “old days”, your app could periodically call UpdateSystemActivity( > UsrActivity ) to prevent the screensaver kicking in. This has been deprecated > since 10.8, but the header for that function says it can be replac

Re: Prevent screen saver from starting, but don't prevent computer sleep

2020-06-29 Thread Graham Cox via Cocoa-dev
Then look at some of the other options in that API, e.g. IOPMAssertionDeclareUserActivity AFACS, this is the supported way to do the kinds of things you want, of it can be done at all. > On 29 Jun 2020, at 4:51 pm, Gabriel Zachmann wrote: > >> but the header for that function says it can be

Re: Prevent screen saver from starting, but don't prevent computer sleep

2020-06-28 Thread Gabriel Zachmann via Cocoa-dev
Thanks for the hint. Can caffeinate be run such that it prevents ONLY the screensaver from kicking in, but does NOT prevent the system from sleeping? (I could not find that option in the man page.) Best regards, Gabriel > On 29. Jun 2020, at 04:28, じょいすじょん wrote: > > One way to do this is w

Re: Prevent screen saver from starting, but don't prevent computer sleep

2020-06-28 Thread Gabriel Zachmann via Cocoa-dev
> but the header for that function says it can be replaced by > IOPMAssertionCreateWithName(). I haven’t looked at that in detail or used it > myself, but one of the defines for that function is > ‘kIOPMAssertionTypePreventUserIdleDisplaySleep’, which appears to do the same > thing as the old

Re: Prevent screen saver from starting, but don't prevent computer sleep

2020-06-28 Thread じょいすじょん via Cocoa-dev
> On Jun 29, 2020, at 15:24, Sandor Szatmari > wrote: > > > >> On Jun 28, 2020, at 22:29, じょいすじょん via Cocoa-dev >> wrote: >> >> One way to do this is with the command line tool: >> caffeinate >> >> You could run a background task that starts it with something like >> caffeinate -dimsu

Re: Prevent screen saver from starting, but don't prevent computer sleep

2020-06-28 Thread Sandor Szatmari via Cocoa-dev
> On Jun 28, 2020, at 22:29, じょいすじょん via Cocoa-dev > wrote: > > One way to do this is with the command line tool: > caffeinate > > You could run a background task that starts it with something like > caffeinate -dimsu > > You can probably also find its source code on opensource.apple.com t

Re: Prevent screen saver from starting, but don't prevent computer sleep

2020-06-28 Thread じょいすじょん via Cocoa-dev
One way to do this is with the command line tool: caffeinate You could run a background task that starts it with something like caffeinate -dimsu You can probably also find its source code on opensource.apple.com to understand what it does and how. Like here is a version: https://opensource.a

Re: Prevent screen saver from starting, but don't prevent computer sleep

2020-06-28 Thread Graham Cox via Cocoa-dev
In the “old days”, your app could periodically call UpdateSystemActivity( UsrActivity ) to prevent the screensaver kicking in. This has been deprecated since 10.8, but the header for that function says it can be replaced by IOPMAssertionCreateWithName(). I haven’t looked at that in detail or use

Re: Prevent screen saver from starting, but don't prevent computer sleep

2020-06-28 Thread Sandor Szatmari via Cocoa-dev
G, > On Jun 28, 2020, at 15:31, Gabriel Zachmann wrote: > >  >>> Does anyone know how to programmatically disable macOS from launching the >>> screen saver on macOS? >>> I would like to do that in one of my apps. >> >> Not sure in general, but in a managed host situation this type of system

Re: Prevent screen saver from starting, but don't prevent computer sleep

2020-06-28 Thread Gabriel Zachmann via Cocoa-dev
>> Does anyone know how to programmatically disable macOS from launching the >> screen saver on macOS? >> I would like to do that in one of my apps. > > Not sure in general, but in a managed host situation this type of system > modification could be disallowed by policy. Even admin users of a

Re: Prevent screen saver from starting, but don't prevent computer sleep

2020-06-27 Thread Graham Cox via Cocoa-dev
You can make your app trigger a command-line program and pass params using NSTask. It’s not difficult to use. But in this case you might want to negotiate this with the user - apps that just go ahead and change MY system preferences are being user-hostile to say the least. —Graham > On 28 Ju

Re: Prevent screen saver from starting, but don't prevent computer sleep

2020-06-27 Thread Sandor Szatmari via Cocoa-dev
G, > On Jun 27, 2020, at 12:47, Gabriel Zachmann via Cocoa-dev > wrote: > > Does anyone know how to programmatically disable macOS from launching the > screen saver on macOS? > I would like to do that in one of my apps. Not sure in general, but in a managed host situation this type of system

Prevent screen saver from starting, but don't prevent computer sleep

2020-06-27 Thread Gabriel Zachmann via Cocoa-dev
Does anyone know how to programmatically disable macOS from launching the screen saver on macOS? I would like to do that in one of my apps. Note that I do NOT want to disable screen sleep, nor system sleep. I just want to set the idle time to "Never" , which you would do manually by going to Sy

Re: Starting out with storyboards (on Mac)

2016-03-05 Thread Luther Baker
Thanks for posting those great references Bill! Luther On Sat, Mar 5, 2016 at 1:04 PM Bill Cheeseman wrote: > > > On Mar 5, 2016, at 1:35 PM, Gary L. Wade > wrote: > > > > On Mar 2, 2016, at 11:20 AM, Bill Cheeseman > wrote: > > > >> Broadening my horizons is *alw

Re: Starting out with storyboards (on Mac)

2016-03-05 Thread Bill Cheeseman
> On Mar 5, 2016, at 1:35 PM, Gary L. Wade wrote: > > On Mar 2, 2016, at 11:20 AM, Bill Cheeseman > wrote: > >> Broadening my horizons is *always* one of my purposes. > > Sounds like your book will be getting a sequel by the end of it? Swift Cocoa > Recipes for

Re: Starting out with storyboards (on Mac)

2016-03-05 Thread Gary L. Wade
> On Mar 2, 2016, at 11:20 AM, Bill Cheeseman wrote: > > Broadening my horizons is *always* one of my purposes. Sounds like your book will be getting a sequel by the end of it? Swift Cocoa Recipes for Apple Platforms? -- Gary L. Wade (Sent from my iPad) http://www.garywade.com/ ___

Re: Starting out with storyboards (on Mac)

2016-03-05 Thread Bill Cheeseman
> On Mar 5, 2016, at 4:26 AM, Daryle Walker wrote: > > What sites did you find via web-search? The ones I found weren’t that great. The OS X storyboard websites I found helpful include those listed below. The first few are general overviews, and the rest are more narrowly focused on specific

Re: Starting out with storyboards (on Mac)

2016-03-05 Thread Daryle Walker
> On Mar 2, 2016, at 2:20 PM, Bill Cheeseman wrote: > > I started playing with OS X storyboards a few weeks ago. It took more time > than it should to figure them out because the documentation is inadequate, > but Google searches led me to lots of helpful third-party articles. At this > point,

Re: Starting out with storyboards (on Mac)

2016-03-02 Thread Bill Cheeseman
I started playing with OS X storyboards a few weeks ago. It took more time than it should to figure them out because the documentation is inadequate, but Google searches led me to lots of helpful third-party articles. At this point, they are working well for me. I think they are better than pure

Re: Starting out with storyboards (on Mac)

2016-03-02 Thread Richard Charles
> On Mar 1, 2016, at 8:20 AM, Jerry Krinock wrote: > > If: > > • Your primary experience is in OS X> > • You know nibs. > • Your purpose is to ship OS X apps, not broaden your horizons. > > Is there any reason to learn and use storyboards? No. I tried Mac storyboards a while back. My conclus

Re: Starting out with storyboards (on Mac)

2016-03-01 Thread Luther Baker
> But where does the default one come from? Here are some steps for an iOS project - maybe it will be in the same area. Select and open the storyboard in the IDE. Find the View Controller scene you think is showing up by default. Open the scene (click the arrow) and select the actual view control

Re: Starting out with storyboards (on Mac)

2016-03-01 Thread Jerry Krinock
> On 2016 Mar 01, at 10:06, Quincey Morris > wrote: > > open TextEdit, open the storyboard, and choose File -> Revert To Saved -> > Browse All Versions… Very cool. I never realized that the Versions Browser would work across the edge case of document types (a text file, in this case) which

Re: Starting out with storyboards (on Mac)

2016-03-01 Thread Quincey Morris
On Mar 1, 2016, at 07:20 , Jerry Krinock wrote: > > If: > > • Your primary experience is in OS X> > • You know nibs. > • Your purpose is to ship OS X apps, not broaden your horizons. > > Is there any reason to learn and use storyboards? There is one good (though mystical) reason. As we’ve see

Re: Starting out with storyboards (on Mac)

2016-03-01 Thread Alex Zavatone
On Mar 1, 2016, at 10:40 AM, Charles Jenkins wrote: > Thank you for that, Jerry. I started to reply in a similar way this morning, > but deleted my draft because I thought I might just be making unhelpful noise. > > I am in Storyboards 101 right along with Daryle, and as I typed in example > c

Re: Starting out with storyboards (on Mac)

2016-03-01 Thread Charles Jenkins
Thank you for that, Jerry. I started to reply in a similar way this morning, but deleted my draft because I thought I might just be making unhelpful noise. I am in Storyboards 101 right along with Daryle, and as I typed in example code from a tutorial project, my fumbling around with autolayout

Re: Starting out with storyboards (on Mac)

2016-03-01 Thread Jerry Krinock
> On 2016 Mar 01, at 01:33, Daryle Walker wrote: > > Tried out Mac programming … turned on … storyboards. If: • Your primary experience is in OS X> • You know nibs. • Your purpose is to ship OS X apps, not broaden your horizons. Is there any reason to learn and use storyboards?

Re: Starting out with storyboards (on Mac)

2016-03-01 Thread dangerwillrobinsondanger
This doc covers it. https://developer.apple.com/library/mac/documentation/General/Conceptual/MOSXAppProgrammingGuide/CoreAppDesign/CoreAppDesign.html#//apple_ref/doc/uid/TP40010543-CH3-SW1 Sent from my iPhone > On Mar 1, 2016, at 6:33 PM, Daryle Walker wrote: > > Apologies for this 101 questi

Re: Starting out with storyboards (on Mac)

2016-03-01 Thread dangerwillrobinsondanger
In a non document based app template there is a window in MainMenu.nib hooked up and configured to display at launch. There is a certain amount of seeming magic that happens when an app launches. It's better exposed in main.m in Objective-C where a function is called that kicks things off. Th

Starting out with storyboards (on Mac)

2016-03-01 Thread Daryle Walker
Apologies for this 101 question. Tried out Mac programming a couple of years ago, pre-Swift and when storyboards were about to come out for the Mac. I used XIBs back then. Forward to a couple months ago, and I tried out a Mac programming book. I started a new Xcode (7) default project (no docs,

Re: NSWindow displaying asynchronously starting in 10.11

2015-11-30 Thread Quincey Morris
On Nov 30, 2015, at 21:53 , Jerry Krinock wrote: >> The correct approach has always been to retrieve the result URL(s) you want, >> then orderOut: the panel before doing something else in the completion >> handler > > I just tried adding an -orderOut before the 5-second sleep in my demo. Stil

Re: NSWindow displaying asynchronously starting in 10.11

2015-11-30 Thread Jerry Krinock
more about changes in the way CALayers behave**. When I restart my > elderly iMac 27”, I frequently see black Finder windows during the time that > iTunes starting up seems to put a stranglehold on the system. Yes, I’ll buy that. White Rectangles = s

Re: Looking for a good starting point to create a shared data resource between iOS apps

2013-06-20 Thread Jens Alfke
On Jun 20, 2013, at 11:01 AM, Michael Crawford wrote: > Do localhost (127.0.0.1) TCP sockets work between two different apps? Yes, and there are systems like Audiobus (http://audiob.us) that use it for live audio streaming between apps. The tricky part, I think, is keeping both apps running a

Re: Looking for a good starting point to create a shared data resource between iOS apps

2013-06-20 Thread Michael Crawford
Do you have to be able to get at the data when you're not connected to the Internet? If not, you could store it on an HTTP server. Do shared memory segments work on iOS? I would expect not because of the sandbox, but maybe they do. Do localhost (127.0.0.1) TCP sockets work between two different

Re: Looking for a good starting point to create a shared data resource between iOS apps

2013-06-20 Thread Ben Kennedy
On 2013-06-20, at 10:37 am, Alex Zavatone wrote: > I've reviewed the AppPrefs source on developer.apple.com and am interested in > creating a small set of shared data accessible for all apps on our iOS > devices. I have resorted to Keychain Services for achieving this kind of thing on a micro

Looking for a good starting point to create a shared data resource between iOS apps

2013-06-20 Thread Alex Zavatone
I've reviewed the AppPrefs source on developer.apple.com and am interested in creating a small set of shared data accessible for all apps on our iOS devices. With this in mind, it would be nice to have a little app that has a preference pane that contains some specifics, but have these items als

Re: starting with Cocoa!

2011-01-24 Thread Rita
rad Shultz wrote: > >> Janos Syd Nepthali Pao wrote: >>> Hi all! >>> >>> I'm glad to find this mailing list. I'm starting with Cocoa (side by >>> side with iOS development), i wanted to learn software development (this >>> totally r

Re: starting with Cocoa!

2011-01-23 Thread Rita
sorts of information and reference materials at: http://www.daleisphere.com/iphone-app-development-where-to-start/ Hope it helps! Rita On Jan 22, 2011, at 2:30, Conrad Shultz wrote: > Janos Syd Nepthali Pao wrote: >> Hi all! >> >> I'm glad to find this mailing list

Re: starting with Cocoa!

2011-01-23 Thread Simone D'Amico
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Il giorno 22/gen/2011, alle ore 21.41, Matt Neuburg ha scritto: > This is probably a reasonable moment for me to reveal that I've been writing > a Cocoa / iOS programming book for O'Reilly since last May. I buy this in book on early release and it

Re: starting with Cocoa!

2011-01-23 Thread Jimmy
ntent Mode > Layers >View and Layer >Layers and Sublayers >Drawing in a Layer >Transforms >Shadows, Borders, and More >Layers and Key-Value Coding > Animation >Drawing, Animation, and Threading >UIImageView Animation >View Animation >

Re: starting with Cocoa!

2011-01-22 Thread Rob Ross
On Jan 22, 2011, at 9:47 AM, Uli Kusterer wrote: > On 21.01.11 07:55, Janos Syd Nepthali Pao wrote: >> I'm glad to find this mailing list. I'm starting with Cocoa (side by >> side with iOS development), i wanted to learn software development (this >> totally rock

Re: starting with Cocoa!

2011-01-22 Thread Matt Neuburg
, Animation, and Threading UIImageView Animation View Animation Implicit Layer Animation Core Animation Actions Touches Touch Events and Views Receiving Touches Restricting Touches Interpreting Touches Gesture Recognizers Touch Delivery View Controllers Sta

Re: starting with Cocoa!

2011-01-22 Thread Uli Kusterer
On 21.01.11 07:55, Janos Syd Nepthali Pao wrote: I'm glad to find this mailing list. I'm starting with Cocoa (side by side with iOS development), i wanted to learn software development (this totally rocks!). I'd like to ask for your hints, advice and words of wisdom --anything yo

Re: starting with Cocoa!

2011-01-21 Thread Conrad Shultz
Janos Syd Nepthali Pao wrote: > Hi all! > > I'm glad to find this mailing list. I'm starting with Cocoa (side by > side with iOS development), i wanted to learn software development (this > totally rocks!). > > I'd like to ask for your hints, advice and words

Re: starting with Cocoa!

2011-01-21 Thread Seth Willits
On Jan 20, 2011, at 10:55 PM, Janos Syd Nepthali Pao wrote: > I own an old Macbook (this is the first generation macbook, 13inch white), > it's still running on Tiger (i haven't updated to Leopard yet). I think the > XCode that came with this OS is already obsolete? Completely. The latest tools

starting with Cocoa!

2011-01-21 Thread Janos Syd Nepthali Pao
Hi all! I'm glad to find this mailing list. I'm starting with Cocoa (side by side with iOS development), i wanted to learn software development (this totally rocks!). I'd like to ask for your hints, advice and words of wisdom --anything you can share for someone jus

Re: Get iphoto scripting bridge handle without starting iphoto?

2011-01-17 Thread Kyle Sluder
On Mon, Jan 17, 2011 at 3:34 AM, Gabriel Zachmann wrote: > I was just wondering who Mail.app does it with its photo browser ... Mail.app is an Apple app, so it's free to use whatever undocumented private stuff it wants. It probably uses the private iLife media browser framework. Which, in turn,

Re: Get iphoto scripting bridge handle without starting iphoto?

2011-01-17 Thread Gabriel Zachmann
> >> My question is: can I get a scripting bridge handle on iPhoto without making >> iPhoto launch? > > Scripting Bridge is about sending Apple events to an application. That > application must be running or you can't send it Apple events. That is Thanks a lot for these insights. (Thanks also

Re: Get iphoto scripting bridge handle without starting iphoto?

2011-01-16 Thread Kyle Sluder
On Sun, Jan 16, 2011 at 5:43 PM, Ken Ferry wrote: > Poor change management in what sense?  If the file is not intended for 3rd > party use, then how is it wrong to change it?  Do you worry about changing > your file formats?  It is really not possible for you to be aware of what > might cause that

Re: Get iphoto scripting bridge handle without starting iphoto?

2011-01-16 Thread Matt Neuburg
On Fri, 14 Jan 2011 19:10:03 +0100, Gabriel Zachmann said: >My question is: can I get a scripting bridge handle on iPhoto without making >iPhoto launch? Scripting Bridge is about sending Apple events to an application. That application must be running or you can't send it Apple events. That is

Re: Get iphoto scripting bridge handle without starting iphoto?

2011-01-16 Thread Ken Ferry
On Sun, Jan 16, 2011 at 4:53 PM, Graham Cox wrote: > > On 17/01/2011, at 10:20 AM, Ken Ferry wrote: > > > Apple is certainly able to do a dot rev of all the iLife apps > simultaneously. > > > But they cannot guarantee that a user would upgrade them all > simultaneously, and seems unlikely they'd

Re: Get iphoto scripting bridge handle without starting iphoto?

2011-01-16 Thread Graham Cox
On 17/01/2011, at 10:20 AM, Ken Ferry wrote: > Apple is certainly able to do a dot rev of all the iLife apps simultaneously. But they cannot guarantee that a user would upgrade them all simultaneously, and seems unlikely they'd accept a situation where upgrading one would break all the other

Re: Get iphoto scripting bridge handle without starting iphoto?

2011-01-16 Thread Ken Ferry
My point was really that a developer should at the least be aware if he's using a hack. Unless this is a published interface, it's a hack that might break. Apple is certainly able to do a dot rev of all the iLife apps simultaneously. -Ken On Jan 16, 2011, at 1:48 PM, Graham Cox wrote: > I us

Re: Get iphoto scripting bridge handle without starting iphoto?

2011-01-16 Thread Graham Cox
I used parts of the iMedia browser (the objects that retrieve the images from the iPhoto database) in an app that has been accepted on the App Store. While I guess that the layout of the iPhoto database on disk could change, all the iApps access it so if it changed they'd have to all be revved a

Re: Get iphoto scripting bridge handle without starting iphoto?

2011-01-16 Thread Ken Ferry
The project page does not make it clear whether or not that is a hack. Is that supported, or, for example, would you get rejected from the mac app store for depending on stuff that changes between OS versions? -Ken On Sun, Jan 16, 2011 at 4:07 AM, Mike Abdullah wrote: > Use the iMedia Browser t

Re: Get iphoto scripting bridge handle without starting iphoto?

2011-01-16 Thread Mike Abdullah
Use the iMedia Browser to parse the library without launching iPhoto. http://code.google.com/p/imedia/ On 14 Jan 2011, at 18:10, Gabriel Zachmann wrote: > My question is: can I get a scripting bridge handle on iPhoto without making > iPhoto launch? > And can I retrieve a list of iPhoto albums an

Re: Get iphoto scripting bridge handle without starting iphoto?

2011-01-15 Thread Ken Ferry
Hi Gabriel, No, you cannot. Scripting Bridge works by sending messages back and forth with a target process. If there is no process running, there isn't anything to communicate with. A scripting dictionary does not (and cannot) include information about how to access the on disk data iPhoto use

Get iphoto scripting bridge handle without starting iphoto?

2011-01-15 Thread Gabriel Zachmann
My question is: can I get a scripting bridge handle on iPhoto without making iPhoto launch? And can I retrieve a list of iPhoto albums and a list of images in an album without making iPhoto launch? Right now, I am using iPhoto_ = [[SBApplication applicationWithBundleIdentifier:@"com.apple.iP

Re: Execute a pre-starting script first, when the App bundle is launched, then the main executable

2011-01-10 Thread Scott Ribe
On Jan 8, 2011, at 4:46 PM, eveningnick eveningnick wrote: > As far as i understand, this "drag to dock" issue is basically sending > "odoc" apple event as well? > Are there any possible pitfalls? Maybe, I don't know. I haven't done this, just thought about it, so I don't know what other issues

Re: Execute a pre-starting script first, when the App bundle is launched, then the main executable

2011-01-08 Thread eveningnick eveningnick
> The one that comes to my mind immediately, is that if the user is > double-clicking a document in the Finder to open it, or trying to print from > the Finder, then the event for that goes to your script, not the real > application. So the script would need to pass that on. > > Assuming your ap

Re: Execute a pre-starting script first, when the App bundle is launched, then the main executable

2011-01-06 Thread Kyle Sluder
On Thu, Jan 6, 2011 at 9:27 AM, eveningnick eveningnick wrote: >> You can't do this. The Info.plist needs to refer to the main app's >> binary. Instead, put your checks into the main app's startup code. >> -[ applicationDidFinishLaunching:] would be a >> good place. >> >> This will require changes

Re: Execute a pre-starting script first, when the App bundle is launched, then the main executable

2011-01-06 Thread Scott Ribe
On Jan 6, 2011, at 10:27 AM, eveningnick eveningnick wrote: > i know It looks like a dirty hack, but is it possible to do this way, > without modifying the main application (except simple renaming of its > binary)? What pitfalls could i run into, doing that? The one that comes to my mind immediat

Re: Execute a pre-starting script first, when the App bundle is launched, then the main executable

2011-01-06 Thread eveningnick eveningnick
> You can't do this. The Info.plist needs to refer to the main app's > binary. Instead, put your checks into the main app's startup code. > -[ applicationDidFinishLaunching:] would be a > good place. > > This will require changes to the main app. What if i rename the Main Application's executable

Re: Execute a pre-starting script first, when the App bundle is launched, then the main executable

2011-01-06 Thread Kyle Sluder
On Thu, Jan 6, 2011 at 8:12 AM, eveningnick eveningnick wrote: > I came up with the following, which seems reasonable to me: > i will copy the pkg installer of my Addin-application into the Main > application's bundle. The user will be able to drag the bundle to > /Applications as usual, but after

Execute a pre-starting script first, when the App bundle is launched, then the main executable

2011-01-06 Thread eveningnick eveningnick
Hi I have an application, which is located in a bundle (like any other cocoa app) and can be installed in a mac-way: by dragging its bundle to /Applications (or elsewhere). I have been asked to create an "addition" to this application, that adds some functionality, but needs to be installed using

Problems with starting editing outline view with Chinese marked text and diacriticals

2010-09-27 Thread Gideon King
Hi everyone, I have an outline view where I want to set things up so that when the user starts typing, it both starts editing and replaces the contents of the selected row with the typed character. Here is what I have been using: - (void)insertText:(id)aString { if ([self selectedRow] ==

Re: Need a launch/loading screen to be displayed while app is starting/initializing?

2009-09-04 Thread Steven Degutis
Generally the idea of a splash screen (as this is called) in Mac apps is frowned upon, by developers and users alike (though users seem to mind slightly less than developers, from my experience). What you should instead do, from my advise, is to asynchronously load your data on a background thread,

Re: Need a launch/loading screen to be displayed while app is starting/initializing?

2009-09-04 Thread Jens Alfke
On Sep 4, 2009, at 11:18 AM, Michael A. Crawford wrote: -[[NSApplication sharedApplication] mainWindow] returns nil! -mainWindow returns the frontmost visible document window. It will never return a hidden window. So, when I call -[window makeKeyAndOrderFront] I'm doing so with a nil o

Re: Need a launch/loading screen to be displayed while app is starting/initializing?

2009-09-04 Thread Michael A. Crawford
Graham, I followed your advice. However, there just one minor hitch. I neglected to emphasize that I want the main window to be invisible until the startup processing finished. At that time I would remove the startup window and display the main window. To this end, I unchecked the 'Visib

Re: Need a launch/loading screen to be displayed while app is starting/initializing?

2009-09-02 Thread Graham Cox
On 03/09/2009, at 1:28 AM, Michael A. Crawford wrote: Anyway, I thought of changing the structure of my app so that the main nib displays the startup and then loads what used to be my main nib with my primary view, menu, etc. I'm not experienced enough with AppKit to know whether or not t

Need a launch/loading screen to be displayed while app is starting/initializing?

2009-09-02 Thread Michael A. Crawford
I'm looking for techniques on how to display a startup or loading panel for my app. There is some initial processing that needs to be done and it can sometimes be moderately lengthy in terms of making the user wait. What I'd like to do is display a startup graphic with licensing and copy

Re: Starting editing for a Row as soon as it is Added.

2009-08-28 Thread Joshua Garnham
>Subject: Re: Starting editing for a Row as soon as it is Added. > >On 8/27/09 4:42 PM, Joshua Garnham said: > >>I have an NSOutlineView and what I want to happen is that when a row is >>added I want the row that has been added to Start Editing immediately >>like when you

Re: Starting editing for a Row as soon as it is Added.

2009-08-27 Thread Sean McBride
On 8/27/09 4:42 PM, Joshua Garnham said: >I have an NSOutlineView and what I want to happen is that when a row is >added I want the row that has been added to Start Editing immediately >like when you double click on a row. @implementation NSTableView (RRExtra) - (void)makeEditableSelectedCellOfC

Starting editing for a Row as soon as it is Added.

2009-08-27 Thread Joshua Garnham
I have an NSOutlineView and what I want to happen is that when a row is added I want the row that has been added to Start Editing immediately like when you double click on a row. Cheers, Josh. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Re: Starting editing for a Row as soon as it is Added. (More Detail)

2009-08-19 Thread Kyle Sluder
On Wed, Aug 19, 2009 at 10:31 AM, Joshua Garnham wrote: > The line ->    [outlineView rowForItem:(id)@"New Item"]; > Is supposed to give the row number of the added row to the next line If you believe this to be the case, you need to go back over the language basics. This isn't even specifically

Starting editing for a Row as soon as it is Added. (More Detail)

2009-08-19 Thread Joshua Garnham
Hi There, I have an NSOutlineView and what I want to happen is that when a row is added I want the row that has been added to Start Editing immediately like when you double click on a row. I have had a go using the code below (but as I'm not that Confident with Cocoa) it did not work. - (IBActi

Re: Starting editing for a Row as soon as it is Added.

2009-08-19 Thread I. Savant
On Aug 19, 2009, at 10:30 AM, Joshua Garnham wrote: I have an NSOutlineView and what I want to happen is that when a row is added I want the row that has been added to Start Editing immediately like when you double click on a row. ... - (IBAction)add:(id)sender { [treeController add:@"New

Starting editing for a Row as soon as it is Added.

2009-08-19 Thread Joshua Garnham
Hi There, I have an NSOutlineView and what I want to happen is that when a row is added I want the row that has been added to Start Editing immediately like when you double click on a row. I have had a go using the code below (but as I'm not that Confident with Cocoa) it did not work. - (IBActi

Re: starting positions of the windows

2009-04-27 Thread Jonathan Hess
Hey Tony - Here's a link the Interface Builder User Guide which explains the sizing of NSWindow's and where they appear at runtime. http://tuvix.apple.com/documentation/DeveloperTools/Conceptual/IB_UserGuide/Layout/Layout.html#//apple_ref/doc/uid/TP40005344-CH19-SW14 ) Hopefully you'll fin

starting positions of the windows

2009-04-27 Thread Tony Wong
Hi: I am writing an app with several windows. It seems that they are randomly located when I start the app. Is it possible to line them up nicely? Thanks. Tony Wong _ Windows Live™ Hotmail®:…more than just e-mail.

Re: starting point for screen-sharing

2009-04-17 Thread Greg Guerin
Stefan Schütz wrote: i'm need some kind of screen or window sharing for my application. Why not use the system-supplied screen-sharing? On Leopard, launch System Preferences and click Sharing. Select Screen Sharing in the Service list, then configure and enable it. Go to the other machi

Re: starting point for screen-sharing

2009-04-17 Thread Scott Ribe
-- Scott Ribe scott_r...@killerbytes.com http://www.killerbytes.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or mode

starting point for screen-sharing

2009-04-17 Thread Stefan Schütz
rs of searching i doesn't have any starting point and have no idea or approach nor what to try or where to look. (which framework, quartz, OpenGL, etc.) Can anybody give me a hint what's generally possible and/or where i can search? Th

Re: Starting Cocoa apps from the command line

2008-12-11 Thread Michael Ash
On Thu, Dec 11, 2008 at 2:00 PM, Shayne Wissler wrote: > On Thu, Dec 11, 2008 at 11:55 AM, Eric Schlegel wrote: > >>> Can you perhaps suggest a book from which I would have learned this >>> and other architectural nuances of systems programming on the Mac? >> >> I can't, partly because I haven't

Re: Starting Cocoa apps from the command line

2008-12-11 Thread Shayne Wissler
On Thu, Dec 11, 2008 at 12:03 PM, Sherm Pendley wrote: > On Dec 11, 2008, at 1:42 PM, Shayne Wissler wrote: > >> Just like an X application would work on Linux. I >> don't want for it to be required to have a .app directory with plists >> or nibs or anything other than just my binary. > > If you w

Re: Starting Cocoa apps from the command line

2008-12-11 Thread Sherm Pendley
On Dec 11, 2008, at 1:42 PM, Shayne Wissler wrote: Just like an X application would work on Linux. I don't want for it to be required to have a .app directory with plists or nibs or anything other than just my binary. If you want something that looks and acts like an X11 app, why bother port

Re: Starting Cocoa apps from the command line

2008-12-11 Thread Shayne Wissler
On Thu, Dec 11, 2008 at 11:55 AM, Eric Schlegel wrote: >> Can you perhaps suggest a book from which I would have learned this >> and other architectural nuances of systems programming on the Mac? > > I can't, partly because I haven't done an exhaustive survey of all > programming books on Mac OS

Re: Starting Cocoa apps from the command line

2008-12-11 Thread Eric Schlegel
On Dec 11, 2008, at 10:35 AM, Shayne Wissler wrote: Yes, that is exactly what I want, and your solution worked brilliantly! Thanks! Great! Can you perhaps suggest a book from which I would have learned this and other architectural nuances of systems programming on the Mac? I can't, partl

Re: Starting Cocoa apps from the command line

2008-12-11 Thread Sherm Pendley
On Dec 11, 2008, at 1:35 PM, Shayne Wissler wrote: On Thu, Dec 11, 2008 at 11:18 AM, Eric Schlegel wrote: Jumping in late here... It sounds like what you want to create is just a flat-file binary that does not use the bundle hierarchy that is typical for a Mac OS X app. I.e., you want yo

Re: Starting Cocoa apps from the command line

2008-12-11 Thread Jason Stephenson
Shayne Wissler wrote: I've got an application that isn't specifically for the Mac, and I want the same standard user-experience whether they are on the Mac or on Windows or on Linux. I want them to be able to run this program from the command line by directly using the binary (without calling "o

Re: Starting Cocoa apps from the command line

2008-12-11 Thread Bruce Martin
If it has an interface then I would suggest following the HIG. However it sounds like you have a tool for the commandline and there is an option to create that in Xcode, AFAIK. Bruce Martin The Martin Solution br...@martinsolution.com http://www.martinsolution.com http://externals.martinsolut

Re: Starting Cocoa apps from the command line

2008-12-11 Thread Shayne Wissler
Hi Bill, I've got an application that isn't specifically for the Mac, and I want the same standard user-experience whether they are on the Mac or on Windows or on Linux. I want them to be able to run this program from the command line by directly using the binary (without calling "open"), to have

Re: Starting Cocoa apps from the command line

2008-12-11 Thread Shayne Wissler
On Thu, Dec 11, 2008 at 11:18 AM, Eric Schlegel wrote: > Jumping in late here... > > It sounds like what you want to create is just a flat-file binary that does > not use the bundle hierarchy that is typical for a Mac OS X app. I.e., you > want your app to just be a single file "MyApp" rather than

Re: Starting Cocoa apps from the command line

2008-12-11 Thread Bill Bumgarner
per correctly. Either you didn't correctly set up the Info.plist or your application, itself, isn't starting up the GUI bits correctly. Or maybe you are trying to eliminate the .app part. Definitely neither supported nor encouraged, but it can be done. In any case, you didn't

Re: Starting Cocoa apps from the command line

2008-12-11 Thread Eric Schlegel
Jumping in late here... It sounds like what you want to create is just a flat-file binary that does not use the bundle hierarchy that is typical for a Mac OS X app. I.e., you want your app to just be a single file "MyApp" rather than a hierarchy "MyApp.app/Contents/MacOS/MyApp". Is that cor

Re: Starting Cocoa apps from the command line

2008-12-11 Thread Shayne Wissler
Thanks for all the varied answers! It sounds like no one actually knows architecturally what is going on here or why! Is there perhaps some "dissonance" between the UNIX design aspects and the Apple design aspects of OSX? But it sounds like I can hack my way through given your suggestions, thanks

  1   2   >