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: Customizing the Notarization Workflow fails

2020-04-25 Thread John Joyce via Cocoa-dev
The life hack for this is to have a Run Script Build Phase that just lists out the build variables and their values. Then you look them up in the help menu to confirm what they mean. > On Apr 26, 2020, at 10:29, Jack Brindle via Cocoa-dev > wrote: > > Before someone reminds me, be sure to u

Re: Need for Swift

2019-10-15 Thread John Joyce via Cocoa-dev
> > On Oct 15, 2019, at 22:58, Turtle Creek Software via Cocoa-dev > wrote: > > Nobody > is every going to write a full CAD, project management or business > accounting app in either Swift or Obj-C. > > TurtleSoft has a big investment in C++ source code that's full of > construction business

Re: Finder not responding to [NSRunningApplication activateWithOptions]

2015-04-08 Thread John Joyce
> On Apr 8, 2015, at 11:38 PM, Ken Thomases > wrote: > > On Apr 8, 2015, at 9:19 AM, Tomáš Znamenáček > wrote: > >> I should have mentioned that Finder behaves unlike other apps in this >> regard. If I do the same with any other a

Re: Unknown class ‘MyCustomView', using 'NSView' instead

2015-02-22 Thread John Joyce
Why not use a framework ? This is exactly why they exist. To hold resources that can't be in a lib. Xcode 6 makes frameworks easy. Thanks! John Joyce Sent from my iPhone > On 2015/02/22, at 20:17, Erwin Namal wrote: > > Thank you for your reply. > I already use both O

Re: system sounds in iOS

2014-12-21 Thread John Joyce
You could try the free download (or in-browser JavaScript version) of a simple sound fx generator called Bfxr at www.bfxr.net > On Dec 21, 2014, at 3:53 AM, Maxthon Chan wrote: > > There is nothing preventing you from pointing a microphone and hitting record > button. If

Re: A Stack of Editors

2014-10-04 Thread John Joyce
> On Oct 4, 2014, at 11:27 AM, Charles Jenkins wrote: > > I just asked a question about the NSStackView, but perhaps I’m looking at the > wrong control altogether. > > What I’m trying to make is a scroll view containing a vertical stack of > editors for RTF subdocuments. Each of the text vi

Re: Responder Chain Confusion

2014-09-07 Thread John Joyce
On 2014/09/08, at 8:49, dangerwillrobinsondan...@gmail.com wrote: > > > > >>> On 2014/09/08, at 3:16, Kyle Sluder wrote: >>> >>> On Sep 7, 2014, at 9:24 AM, dangerwillrobinsondan...@gmail.com wrote: >>> >>> Hi all >>> >>> I just spent a bit of time poking around the responder chain and ni

Re: Excessive open gui graphics files on Mavericks

2014-04-08 Thread John Joyce
On Apr 9, 2014, at 2:28 PM, ChanMaxthon wrote: > The SQLite DB thing is just like a tar archive, and if you dare to you can > even include a cramfs driver in your code and consolidate all your resources > into one optionally encrypted cramfs image. Every file archiving method that > allows in

Re: Display selectd sub-menuItem in NSPopUpButton

2014-03-17 Thread John Joyce
On Feb 15, 2014, at 12:29 AM, Keary Suska wrote: > On Feb 14, 2014, at 5:02 AM, Leonardo wrote: > >> I have filled my NSPopUpButton with menu and submenus. >> >> When I select a menuItem on the root menu (so, not a sub-menuItem), it >> propery displays the menuItem selected. And when I re-clic

Re: Display selectd sub-menuItem in NSPopUpButton

2014-02-15 Thread John Joyce
On Feb 15, 2014, at 6:29 AM, Leonardo wrote: > Hi John, > Thank you for the code. I suppose I missed something because it doesn’t work > as expected. > I did: > > I created a popUpMenu on IB and put it on the window and connected to the > outlet popUpButton. > I connected the popUp outlet to

Re: FlagsChanged while NSMenu is displayed

2014-01-25 Thread John Joyce
So, just to follow up. Timer approach works. It works quite well. Thanks for recommending it. In fact, far better than the CGEventTap approach in terms of reliability. CGEventTaps always seem to be a bit flaky. The NSTimer approach is very responsive and I can constrain it to just the time when t

CGDisplayIOServicePort

2013-12-24 Thread John Joyce
Hello all, CGDisplayIOServicePort is documented as deprecated but available in 10.9 with no replacement. Is there any known, non-deprecated alternative function? Thanks, JJ ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post adm

Re: Core Animation warning?

2013-12-04 Thread John Joyce
On Dec 3, 2013, at 10:23 PM, Graham Cox wrote: > I’m seeing quite a few of these being logged: > >> CoreAnimation: warning, deleted thread with uncommitted CATransaction; set >> CA_DEBUG_TRANSACTIONS=1 in environment to log backtraces. > > I’m not directly using Core Animation anywhere in thi

Re: Window positioning and screen resizing

2013-05-14 Thread John Joyce
On 2013/05/14, at 9:57, Rick Mann wrote: > It seems that Cocoa or the OS or someone repositions my windows with some > rules when the screen resolution changes. Does anyone know what the rules > are? Stuff is kept in roughly the same quadrant of the screen, near as I can > tell, and perhaps t

Re: Cocoa equivalent of CFStringTransform()

2013-03-28 Thread John Joyce
> >> I am not able to locate one, but is there still no Cocoa method like >> CFStringTransform() ? >> I seem to recall there being one now, but it may be a simple NSString >> Category I wrote that I am thinking of. > > You can just call CFStringTransform on an NSMutableString by casting it to a

Cocoa equivalent of CFStringTransform()

2013-03-28 Thread John Joyce
Hi all, I am not able to locate one, but is there still no Cocoa method like CFStringTransform() ? I seem to recall there being one now, but it may be a simple NSString Category I wrote that I am thinking of. ___ Cocoa-dev mailing list (Cocoa-dev@li

Re: Turning off screen shot ability

2013-03-06 Thread John Joyce
Sounds like impossible requirements short of running root processes and heavily modifying software, but still being severely insecure at many levels. Sounds like you're saying you need to run an app, and also have kb and mouse input, potentially universal access as well. Sounds like you're also

Re: NSFileManager createDirectory… confusing docs.

2013-02-23 Thread John Joyce
On Feb 24, 2013, at 3:45 AM, Quincey Morris wrote: > On Feb 23, 2013, at 07:57 , John Joyce > wrote: > >> The docs do not seem clear on this. (not to me anyway). > > Yes, they're not clear on this. > >> If the directory you are creating is also con

NSFileManager createDirectory… confusing docs.

2013-02-23 Thread John Joyce
A bit of trouble with the NSFileManager docs for the methods: – createDirectoryAtURL:withIntermediateDirectories:attributes:error: – createDirectoryAtPath:withIntermediateDirectories:attributes:error: Both say: Return Value YES if the directory was created or already exists or NO if an error occu

Re: NSTask arguments

2013-02-20 Thread John Joyce
On Feb 21, 2013, at 9:46 AM, Greg Parker wrote: > On Feb 20, 2013, at 4:18 PM, dangerwillrobinsondan...@gmail.com wrote: >> Is there a way to feed an NSTask argument data when the command line tool in >> the task expects a file path argument? >> I would like to not actually create a file to use

Re: Binding a NSArrayController to a NSPopupButtonn & NSTextField

2013-02-17 Thread John Joyce
On Feb 16, 2013, at 1:21 AM, Keary Suska wrote: > On Feb 15, 2013, at 5:41 AM, Eric Gorr wrote: > >> I have a NSArrayController filled with an array of NSDictionaries. >> >> [[self controller] addObject:@{ @"name" : @"itemA", @"part" : @"partA" }]; >> [[self controller] addObject:@{ @"name" :

Re: Does codesigning or Dev ID ever avoid the quarantine dialog?

2012-07-12 Thread John Joyce
No. Only 2 ways: delivered through the app store. installer using authorization. Otherwise, simply codesigning with a known dev ID only allows you past one level of Gatekeeper.. Any executable download will always get the quarantine flag set. Notice the common thread, some form of authorizatio

Re: Localization based on location

2012-06-04 Thread John Joyce
The standard way to localize an app is based on the user's preferred language. (on mac os x, the preferred language order of priority/availability ) Above and beyond that, you might have some case where your app has a reason to enable setting the preferred language at the app preferences level, o

Re: Xcode - An Apple Embarrassment

2012-03-01 Thread John Joyce
> >> Man I don't know why there is soo much hate towards v4... but I personally >> love it. I think it's one of the best IDE's available on any platform. Yes >> there are bugs... but there are bugs in every IDE. Go try and use Visual >> Studio. Gah. >> >> To be honest, it seems that the majority

Re: iBook integration

2012-02-29 Thread John Joyce
On Mar 1, 2012, at 2:12 AM, Fritz Anderson wrote: > On 28 Feb 2012, at 11:12 PM, Jamie Daniel wrote: > >> Has anyone information on embedding iBook viewing in an iOS application? > > To my knowledge (and to the extent of my search of the documentation — try it > yourself), it's not possible. I

Re: NSTextArea - how to change the text programmatically?

2012-02-26 Thread John Joyce
> >>> >> Doesn't necessarily work quite that simply with Unicode and NSString and its >> family. >> From a file that is ASCII data you could create a C array like that ... > > Huh? William didn’t say anything about where the data came from. As long as > it’s already in a C byte array (or a

Re: NSTextArea - how to change the text programmatically?

2012-02-26 Thread John Joyce
> It's easy enough on an NSTextField (whether it's set up as a static label, > or as a data-entry-type field), but where's the .text property of an > NSTextArea? > Also, what would be the easiest way to implement a view that showed a memory > dump? i.e. The easiest way is to find out what you

Re: Was: Re: NSStepper - useless?

2012-02-26 Thread John Joyce
> > >> I'm just saying the stepper itself should not have a value, it should send >> actions to a controller so it can manipulate a numeric value in a model >> object, or it should be able (using bindings) to increment/decrement a >> model's value. Using the UI as a model isn't what MVC is al

Re: NSColorWell - controlling opacity

2012-02-25 Thread John Joyce
> > > >> I use numerous colour wells all over my app. Mostly, I want the user to be >> able to use different alpha values, so I have enabled the opacity control >> for NSColorPanel globally for the app. But there are one or two places where >> I don't want that - these are associated with s

Re: NSColorWell - controlling opacity

2012-02-25 Thread John Joyce
> I use numerous colour wells all over my app. Mostly, I want the user to be > able to use different alpha values, so I have enabled the opacity control for > NSColorPanel globally for the app. But there are one or two places where I > don't want that - these are associated with specific colo

Re: NSStepper - useless?

2012-02-23 Thread John Joyce
On Feb 19, 2012, at 6:11 PM, William Squires wrote: > Okay, 'nuther dumb question. How do I hook the different arrows in an > NSStepper to actions in my view controller? Or how do I ask (id)sender which > arrow was clicked? > Remember that classes tend to inherit from superclasses. Not checkin

Re: How to get bookmarks data for non-existing files

2012-02-09 Thread John Joyce
On Feb 9, 2012, at 7:06 AM, Gerriet M. Denkmann wrote: > > On 9 Feb 2012, at 10:33, Quincey Morris wrote: > >> On Feb 8, 2012, at 18:20 , Gerriet M. Denkmann wrote: >> >>> The only keys which seem to work for an non-existing file seem to be: >>> NSURLNameKey >>> NSURLIsDirectoryKey >>

Re: Loading Typeface from NSBundle

2012-02-03 Thread John Joyce
On Feb 3, 2012, at 6:13 PM, Pascal Harris wrote: > I'm trying to load a custom typeface from my application bundle (a TrueType > font of my own design). Hunting around on the web reveals only methods which > are deprecated to the extent of not working under OS X Lion (FMActivateFonts): > > #i

Re: NSDateFormatter not working on iOS 5.

2012-02-02 Thread John Joyce
On Feb 2, 2012, at 2:20 AM, Peter Edberg wrote: > > On Jan 31, 2012, at 2:35 PM, cocoa-dev-requ...@lists.apple.com wrote: >> -- >> >> Message: 1 >> Date: Tue, 31 Jan 2012 14:10:13 -0600 >> From: Heath Borders >> To: cocoa-dev

Re: How do you run an app on the device with Instruments?

2012-01-30 Thread John Joyce
On Jan 30, 2012, at 4:10 PM, G S wrote: > So... no one knows how to launch an app on the device with Instruments? > > Thanks anyway. > Assuming Xcode 4, look at schemes... in the Product menu. There are lots of ways to configure it. It takes time to update all of the documentation. There ar

Re: Programmatically create aliases to unmounted servers?

2012-01-24 Thread John Joyce
What you might want to do is create an AppleScript that is maybe run-only and is on the desktop. Way less pain. On Jan 24, 2012, at 4:24 PM, Zajkowski, James wrote: > All, > > I'm looking for a way to construct an alias file (a bookmark file) with a > specific but unmounted file server locatio

Re: Strange renaming of Documents folder

2012-01-21 Thread John Joyce
On Jan 21, 2012, at 6:09 PM, Ken Thomases wrote: > On Jan 21, 2012, at 7:32 AM, Martin Hewitson wrote: > >> I have a user that has been using a document based app of mine and they are >> reporting something very strange. >> >> The user is Spanish and so had a "Documentos" folder in his home di

Re: Times to not add a document to NSDocumentController?

2011-12-27 Thread John Joyce
> >> I'm working on a CAD app that has a library of parts that can be added to a >> document. Internally, I have a LibraryDoc to open library files, and present >> the library UI windows. But I don't really want it to behave like a >> "regular" document in my app. > > Can you be more specific

Re: Tabs Not Blue Under Lion

2011-12-23 Thread John Joyce
IG that the tabs in the illustration are grey. >> >> Grey doesn't look very nice if that's the default. >> >> Assuming no other issues, how do I change it to 'aqua' blue? >> >> On Dec 23, 2011, at 4:45 PM, John Joyce wrote: >> >>> The sty

Re: Tabs Not Blue Under Lion

2011-12-23 Thread John Joyce
The styles of the Cocoa-supplied Aqua interface elements have changed somewhat in Lion. (actually, they have changed with every major OS release) To see the latest, check out the HIG (Human Interface Guidelines) Also note, in System Preferences there are two color options under General > Appear

Re: How to get the phone number use ios sdk in iphone.

2011-12-22 Thread John Joyce
>> Thanks >> I will use the UUID or DeviceID instead of the phone number. > > The device ID (UIDevice's -uniqueIdentifier) is deprecated in iOS 5. > Don't use it. (As you can probably gather, Apple is rightfully keen on > preventing developers from trying to track users in non-anonymized ways.) >

Re: Account validation in CocoaTouch for the purchased app

2011-12-22 Thread John Joyce
> >> ...an AppleID is required to be formatted like an email address... > > No, it doesn't. I have an Apple ID with a space in it and no @ or host name > portion. This may be a requirement for new Apple IDs, but it wasn't always > that way nor is there any requirement that they be changed. > --

Re: Account validation in CocoaTouch for the purchased app

2011-12-22 Thread John Joyce
> >> given an app is sold on iTunes, is there a way for that app to find out >> which email address was used for the iTunes account when it was purchased? > > I don't believe so. As far as I know, the only way to find that out is to ask > the user. > Keep in mind that although an AppleID is re

Re: Updating an app's help

2011-12-16 Thread John Joyce
On Lion you cannot run any application from the Trash folder. Simply moving old versions there should be enough. On Dec 15, 2011, at 9:28 PM, Matt Neuburg wrote: > On Wed, 14 Dec 2011 05:14:36 -0500, Bill Cheeseman > said: >> Search the archives, and you will discover that you are likely expe

Fwd: Safari downloader-like behavior

2011-12-09 Thread John Joyce
how difficult >> would it be. It seems to be a very customized NSTableView. >> There's no existing components at the moment? >> >> >> 2011/12/7 John Joyce : >>> That is weird. Calling that a download is going to confuse users and >>> promote co

Re: Safari downloader-like behavior

2011-12-06 Thread John Joyce
That is weird. Calling that a download is going to confuse users and promote confusion. Copying a file from a local mounted drive is copying, maybe installing. That said, Uli Kulsterer has a control similar to The pre-lion Safari downloads window. Safari lion just puts it in an annoying popover

Re: How to force WebView to use a separate NSHTTPCookieStorage ?

2011-11-30 Thread John Joyce
On Nov 30, 2011, at 8:11 AM, Mike Abdullah wrote: > > On 30 Nov 2011, at 12:00, Ben wrote: > >> I am writing an app which opens up multiple WebView's of the same web site. >> The problem I'm having is that the website detects that I already have a >> page open and closes the previously opened

Re: Changing the appearance of buttons

2011-11-09 Thread John Joyce
On Nov 10, 2011, at 7:07 AM, Preston Sumner wrote: > On Nov 9, 2011, at 3:34 AM, Andreas Mayer wrote: > >> >> Am 08.11.2011 um 22:40 schrieb Tom Jeffries: >> >>> Mac. >> >> You will have to use your own subclass of NSButton. > > An NSButtonCell subclass is all that's required for a custom ap

Re: ObjC's flat and all-exported namespace, help!

2011-11-08 Thread John Joyce
This should be on the Obj-C list. This whole discussion is about the language implementation. The Obj-C list needs more love anyway. On Nov 9, 2011, at 10:30 AM, Jean-Daniel Dupas wrote: > > Le 9 nov. 2011 à 01:37, Ian Joyner a écrit : > >> On 9 Nov 2011, at 05:21, Greg Parker wrote: >> >>> On

Re: Detect Siri

2011-11-08 Thread John Joyce
Have you asked Siri? On Nov 9, 2011, at 12:08 AM, Manfred Schwind wrote: > Hi, > > is there a way to find out if the current device generally supports Siri? I'm > not interested if it's currently turned on or off. I just want to know if it > is generally possible to use Siri on the current dev

Re: Get my NSDocument-based application out from "Open With" menu?

2011-10-20 Thread John Joyce
>> Hello I have an application that is able to process .txt files, >> which can be opened using File->Open and saved with File->Save, >> File->Save As. The problem is that Finder thinks that my >> application is an app that the user may want to open by double >> clicking a t

Re: Get my NSDocument-based application out from "Open With" menu?

2011-10-20 Thread John Joyce
>>> Hello I have an application that is able to process .txt files, which can be opened using File->Open and saved with File->Save, File->Save As. The problem is that Finder thinks that my application is an app that the user may want to open by double clicking a text f

Re: ARC + return of autoreleased CFType

2011-10-19 Thread John Joyce
Check the nice clear tutorial at http://www.mikeash.com/pyblog/friday-qa-2011-09-30-automatic-reference-counting.html It spells out how to handle CF types in ARC. On Oct 19, 2011, at 9:52 AM, Wade Tregaskis wrote: >> Following Cocoa convention you'd want to cast it to what and autorelease it? >

Re: -viewDidUnload not always called?

2011-10-14 Thread John Joyce
Please also include URLs to actual pdfs in the ebook versions. Ebooks so often end up with very pixelated, hard to read images... On Oct 14, 2011, at 1:45 PM, Matt Neuburg wrote: > On Fri, 14 Oct 2011 09:33:01 -0700, David Rowland > said: >> Well, thank you. If you are interested, here is the c

Re: Give a menu keyboard focus – in code

2011-10-09 Thread John Joyce
On Oct 9, 2011, at 10:09 PM, Jerry Krinock wrote: > > On 2011 Oct 09, at 19:47, Graham Cox wrote: > >> This all sounds like a generally terrible idea. > > I think that my purpose of making my Status Item accessible from the keyboard > is quite noble, but I agree that the way I'm going about i

Re: Finder Integration

2011-09-30 Thread John Joyce
Please don't use SIMBL it causes grief for users and they don't know why. It messes with other applications. On Sep 30, 2011, at 3:21 AM, Matt Gough wrote: > Damon, > > Firstly there is no official way to do this, all the solutions you see in the > wild are hacks of one sort or another. > > Ha

Re: how to get rid of NSSavePanel's AccessoryView's border

2011-09-21 Thread John Joyce
Yes TextEdit uses NSDocument, it has long been the NSDocument sample app On Sep 21, 2011, at 1:41 PM, Jens Alfke wrote: > > On Sep 21, 2011, at 11:28 AM, Nick wrote: > >> do you know how did Apple developers make TextEdit display a custom sheet >> for notifying that the document that's being c

Re: how to get rid of NSSavePanel's AccessoryView's border

2011-09-21 Thread John Joyce
Based on the screenshot, "Save as Plain Text" This function would probably be better suited as a preference at the app or document level. Another option would be adding an item to the File menu for Save as Plain Text. There are a lot of options, but some would indeed involve moving toward a cus

Re: Template images in sidebars drawn in wrong color

2011-09-13 Thread John Joyce
will look at SourceLists in Xcode 4 to see if this addresses the issue. > We still want to be able to target pre-Lion OSes, so this may need to wait > before we can get all the behavior we are looking for. > > Thanks again for the insight -- you have been very helpful. >

Re: Template images in sidebars drawn in wrong color

2011-09-13 Thread John Joyce
Sidebar icons in Lion are grayscale. Are you referring to the highlight/selection color? If you look carefully when these are reversed (some zooming app like Grab might help) some apps such as Finder might use a slightly tweaked different image for the perfect alternate image, but not for all ima

Re: Problem with NSAppleScript execution

2011-09-13 Thread John Joyce
); > CFRelease(saveCommandDown); > CFRelease(source); > } > > But this doesn't work as expected always for some reason. > Can you point me to any examples with IMKit? > > On Sep 13, 2011, at 5:18 PM, John Joyce wrote: > >> Have you looked at building

Re: Problem with NSAppleScript execution

2011-09-13 Thread John Joyce
Have you looked at building an input method? IMKit On Sep 13, 2011, at 9:03 AM, Nava Carmon wrote: > They want services as an option, not as main workflow. > What about simulating keyboard events? Should it work better than apple > script? > > On Sep 13, 2011, at 4:48 PM, Jerry Krinock wrote: >

Re: compiling app for 10.6 and 10.7

2011-08-15 Thread John Joyce
Hi Martin, NSPopover is not present in the frameworks on 10.6 You will not be able to use it there. On Aug 16, 2011, at 2:38 AM, Martin Hewitson wrote: > Dear list, > > I guess this is a really simple question to answer, but somehow my googling > doesn't lead me to it. > > I have an app and

Re: Graphical Keyboard Map

2011-08-15 Thread John Joyce
On Aug 15, 2011, at 7:04 PM, Quincey Morris wrote: > On Aug 15, 2011, at 02:24 , John Joyce wrote: > >> Thanks, but I read that one. >> 10.5 + has no user readable xml layouts. >> But also, these xml files do not present any representation of how the >> key

Re: Graphical Keyboard Map

2011-08-15 Thread John Joyce
a very different position. They are not labeled differently, but in literally different shapes and positions. thanks, John Joyce On Aug 15, 2011, at 6:10 PM, Quincey Morris wrote: > On Aug 15, 2011, at 01:47 , John Joyce wrote: > >> I am a little more interested in Mac keyboards

Re: Graphical Keyboard Map

2011-08-15 Thread John Joyce
Thanks Vyacheslav, but I am a little more interested in Mac keyboards... On Aug 15, 2011, at 5:35 PM, Vyacheslav Karamov wrote: > http://msdn.microsoft.com/en-us/goglobal/bb964651 > > 15-Aug-11 11:07, John Joyce пишет: >> Does anybody know a programmatic way or a reference

Graphical Keyboard Map

2011-08-15 Thread John Joyce
Does anybody know a programmatic way or a reference resource to get graphical keyboard map or layout for the currently active keyboard? Are these documented anywhere anymore? I would like to provide an on-screen display that is at least a close approximation of the user's keyboard.__

Re: help with this error

2011-08-07 Thread John Joyce
On Aug 8, 2011, at 10:04 AM, Rick C. wrote: > Hi again, > > Does anyone know what could cause my app to trigger this error in Console: > > kernel: mcxalr{4} ** Denying execute for uid=504 appname > > Any insight would be much appreciated thanks! > __

Re: Lion's new "Resume" feature, document restoration, and splash screens

2011-07-27 Thread John Joyce
On Jul 28, 2011, at 7:29 AM, Sean McBride wrote: > Hi all, > > How can one support the new Resume feature and also show a splash screen at > app launch, before documents are opened? > > I've added logs to my NSApplicationDelegate and observed the launch sequence > and it goes like: > > awake

Re: Reading Adobe Photoshop header, Obj-C

2011-06-28 Thread John Joyce
On Jun 28, 2011, at 7:14 PM, Jens Alfke wrote: > > On Jun 28, 2011, at 4:53 PM, James Merkel wrote: > >>> Synalyzeit is a free hex editor that's fabulous. >> >> Thanks, I'll take a look at that. HexEdit is getting a little dated. > > Hex Fiend (open source) is nice too

Re: Reading Adobe Photoshop header, Obj-C

2011-06-28 Thread John Joyce
On Jun 28, 2011, at 6:18 PM, James Merkel wrote: > Kevin, > > As others have suggested you probably want to step down to more basic C > coding to handle this task. > You can just use C library functions to read data from the file: fopen(), > fseek(), fread(), fgetc(), fclose() etc. as discus

Re: inApp Purchases

2011-06-04 Thread John Joyce
File a bug, and consider using a DTS incident. On Jun 4, 2011, at 1:39 AM, Development wrote: > I found the answer to this after I found a json validator on google. > > The json object I was getting back IS INVALID > > it is missing the leading "{" character. > Add that to the returned object

Re: OS + iOS best practice

2011-06-03 Thread John Joyce
desktop > mac when I'm in the house, and I can't carry my iMac with me :) I do find > typing much easier on an actual keyboard. Maybe I should just get a keyboard > for the iPad? > > Many Thanks > > Amy > > > > On 3 Jun 2011, at 7:11PM, John Joy

Re: OS + iOS best practice

2011-06-03 Thread John Joyce
On Jun 3, 2011, at 1:04 PM, Amy Heavey wrote: > I hope this appropriate for this list, if not please accept my apologies. > > I've got a fairly basic core data app that I've written for personal use on > my iMac. I'd like to have an iPad version as it would be very useful to have > whilst I wa

Re: What is the point of a host-reachability test that doesn't test the reachability of the host?

2011-06-01 Thread John Joyce
On Jun 1, 2011, at 7:52 PM, Conrad Shultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 6/1/11 5:34 PM, G S wrote: >> But since this test doesn't actually check the routes to these >> hosts, how would it be able to provide meaningful results even in >> these cases? > > Note: I

Re: What is the point of a host-reachability test that doesn't test the reachability of the host?

2011-06-01 Thread John Joyce
> Thanks for the response, Greg. > >> There are circumstances where a subset of the Internet's hosts may be >> reachable. For example, you may be able to reach link-local names without a >> broader Internet connection. Or you may be able to reach a host behind a VPN >> only when the VPN is acti

Re: Declaring and initialization of C array.

2011-06-01 Thread John Joyce
>> K&R says to declare and initialize an array in C: >> >> int myArray[2] = {1,2}; >> >> If the above is entered into the .h file > > > That's because a .h file is the HEADER. > > You need to put this in the BODY, which is the .c (pure C) or .m (Obj-C) > file. The reason is that the = {1

Re: Using WebKit for UI instead of Cocoa in cross-platform app

2011-05-23 Thread John Joyce
On May 23, 2011, at 4:23 AM, Matt Gough wrote: > There is some discussion that our cross-platform app should switch to using > WebKit for its UI (using embedded HTML/CSS/JavaScript), instead of the > current divergent code paths of Cocoa on Mac and native Windows stuff on PC. > Our app doesn't

Re: How to start a Dashboard widget as soon as the user logs in?

2011-05-22 Thread John Joyce
> Hi, > > I want to write a dashboard widget that starts up working in the > background as soon as the user logs in to his account and that plays a > chime whenever a specific event occurs (i.e it should be always running > in the background). Is this possible at all? > > Cheers, > > > -- > C

Re: A long, convoluted path... made shorter?

2011-05-10 Thread John Joyce
On May 10, 2011, at 8:26 PM, William Squires wrote: > 5) Along with #1 above, a way to encrypt/decrypt the .m part so that the > whole shebang could be sold to other developers without exposing the > 'how-does-it-work' underneath (unless they pay extra for the right to view > the source!) Ther

Re: libraries for flashing a message

2011-05-01 Thread John Joyce
People often use Growl for this. However, please be careful how you use it. Provide options to turn it off. On May 1, 2011, at 5:46 PM, Jason Harris wrote: > Hi All, > > Before I roll my own, I am wondering if there are any libraries around which > can briefly display a nice notification bubbl

Re: Arbitrary Shaped Windows

2011-04-29 Thread John Joyce
On Apr 29, 2011, at 11:46 AM, Abhinav K Tyagi wrote: > Hi, > > How can i create an arbitrary shaped window? Mouse events should be > handled in the shape only and not the rectangular window portion. > For Ex. If my window is circular, then outside the circle, any mouse should > go to desktop or

Re: BSD TCP Programming on iPad

2011-04-25 Thread John Joyce
Have you looked at the sample code? https://developer.apple.com/library/ios/#samplecode/SimpleNetworkStreams/Listings/Read_Me_About_SimpleNetworkStreams_txt.html%23//apple_ref/doc/uid/DTS40008979-Read_Me_About_SimpleNetworkStreams_txt-DontLinkElementID_8 On Apr 25, 2011, at 10:00 AM, Bing Li wrot

Re: diable localization

2011-04-06 Thread John Joyce
On Apr 6, 2011, at 4:43 PM, Felix Franz wrote: > > On Apr 5, 2011, at 3:55 PM, Georg Seifert wrote: > >> Hi, >> >> I what to give my users the possibility to disable the localization of my >> app. Is there a way to tell the system (NSBundle?) to always load the >> english nibs? > > Just rea

Re: Remove characters from string

2011-03-18 Thread John Joyce
You might also consider using HTML entities for those, as you never know what the browser/user-agent has set for encoding... On Mar 18, 2011, at 11:24 PM, Gary L. Wade wrote: > In that case, you should determine what encoding your web page is being > displayed in and convert your NSString to th

Re: Debugging a sleepless Mac

2011-03-16 Thread John Joyce
> I've just been adding code to support NSWorkspaceWillSleepNotification. > Having lowered my Computer sleep time right down and left the Mac untouched > for several minutes, my code never fires and the Mac doesn't actually go to > sleep. Even without my app running and leaving the Mac for seve

Re: Brushed/Polished Metal in 10.5/10.6?

2011-03-15 Thread John Joyce
> >> I've been needing an interface similar to the polished metal in Mac OS X >> 10.4 in my 10.6 app. First of all, is there a way to get back the brushed >> metal using an API call, or how would I implement this? I've accomplished >> rendering the metal on the window itself, but the little 'sh

Re: Reading RGBA pixel values from image on disk

2011-03-10 Thread John Joyce
On Mar 11, 2011, at 6:46 AM, Paul M wrote: > > On 11/03/2011, at 8:00 AM, Kyle Sluder wrote: > >> On Thu, Mar 10, 2011 at 10:47 AM, Leonardo wrote: >>> I forgot: if I save the TIF from Photoshop marking the check-box "Save >>> Transparency", on my App I can quite read the alpha channel, and th

Re: Inconsistent Data in Webkit

2011-02-24 Thread John Joyce
On Feb 25, 2011, at 12:24 PM, Bruce Cresanta wrote: > Hello, > > I've noticed that certain webpages render fine in WebView, but that the > data in the dataSource remains nil.Is this a bug in webkit? Is there a > way to get consistent data? For example, http://www.php.net renders

Re: How can I make a window just like the Anxiety App?

2011-02-20 Thread John Joyce
On Feb 20, 2011, at 7:51 PM, 23Labs wrote: > You can see the screenshot > here > . > Anxiety app has a window title which can be clicked and then popups a menu > list. > I can't find any clue in IB. There seems no way we can customize the window

Re: Setting a color in a NSBitmapImageRep to white or black

2011-02-17 Thread John Joyce
On Feb 18, 2011, at 9:55 AM, Graham Cox wrote: > > On 18/02/2011, at 11:40 AM, John Joyce wrote: > >> Instead of -whiteColor is it not possible to simply create a color using 255 >> a.k.a. FF for R, G and B respectively? >> This is white in RGB. > > A

Re: Setting a color in a NSBitmapImageRep to white or black

2011-02-17 Thread John Joyce
On Feb 18, 2011, at 9:47 AM, Graham Cox wrote: > > On 18/02/2011, at 11:40 AM, John Joyce wrote: > >> Why would whiteColor not be RGB? > > > Because it's not. It uses the NSCalibratedWhiteColorSpace, and has two > components - the gray level and alpha. >

Re: Setting a color in a NSBitmapImageRep to white or black

2011-02-17 Thread John Joyce
On Feb 18, 2011, at 9:35 AM, Graham Cox wrote: > > On 18/02/2011, at 8:09 AM, Eric Gorr wrote: > >> So, why can I not use [NSColor whiteColor]? >> >> >> I'm sure I'm missing something simple, but what that is, I do not know... > > > It may be that the colour has to match the colorspace of t

Re: Key equivalents for non-menu items

2011-02-16 Thread John Joyce
On Feb 16, 2011, at 1:58 PM, Randy Widell wrote: > On 2/15/11 8:20 PM, mlist0...@gmail.com wrote: >> On Feb 15, 2011, at 7:36 PM, Randy Widell wrote: >> >>> I would like to have a keyboard shortcut that tags a location on the >>> waveforms at the location of the mouse cursor. These commands do

Re: origin: lower left vs lower right

2011-02-03 Thread John Joyce
True, you can do the affine transform, but that doesn't cover all cases of alternate glyphs that should be used for different scripts in different directions. It also doesn't really alter the way the cursor appears or how input methods appear. For many languages, this becomes a complicated user

Re: origin: lower left vs lower right

2011-02-03 Thread John Joyce
On Feb 3, 2011, at 8:51 PM, Uli Kusterer wrote: > On 03.02.2011, at 04:19, Todd Heberlein wrote: >> During the recent text orientation/position thread a couple of things caught >> my attention: (1) the text system seemed designed to have a flipped view >> (origin in the upper left), and (2) the

Re: inherited implicitly created member is no member?

2011-02-01 Thread John Joyce
Actually, the last bit on the same page I linked to seems to indicate that there should be a synthesized ivar... Maybe it depends on the Project Build Settings...? They talk about the legacy runtime versus the modern runtime. But I think it is much more readable to have declarations in the @inte

Re: inherited implicitly created member is no member?

2011-02-01 Thread John Joyce
On Feb 2, 2011, at 12:14 PM, Matt Neuburg wrote: > I got a little surprise today: > > @interface MySuperClass : NSObject { > } > @property (nonatomic, copy) NSString* text; > @end > > @implementation MySuperClass > @synthesize text; > @end > > @interface MySubClass : MySuperClass... > > And n

Re: Sending email with attachments

2011-02-01 Thread John Joyce
On Feb 2, 2011, at 7:13 AM, lorenzo7...@gmail.com wrote: > How can one go about doing this and support 10.4-10.6? There are links all > over the place pointing to deprecated API's (NSMailDelivery) or frameworks > that are 10.5+ (EDMessage, Scripting Bridge), but nothing I can use. All I > want

  1   2   3   >