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: 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: 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: 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: 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: Auto Install Login Item

2009-10-03 Thread John Joyce
Please don't do that without asking users first. To do so would be Microsoftian iPhoneから送信 ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-d

Re: Checking whether a file is a genuine PDF file

2009-10-05 Thread John Joyce
Google magic number This is unix and there is a ver nifty tool for such things. Ultimately u just have to ask yourself how you will handle files that seem wrong. You could also ask yourself how you would handle an unreasonably large PDF file... Then u can ask yourself if it is really necessar

Re: Language based scanning

2009-10-13 Thread John Joyce
Language based scanning To: "cocoa-dev@lists.apple.com" Message-ID: <21331617-f39c-4f3b-8f4b-795be101a...@gmail.com> Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes Hi, Is there is a way to figure out the occurance of Arabic chars so the label's alignment woul

Re: Textured sheet with tabview

2009-10-22 Thread John Joyce
Don't know if I did something wrong or this is a bug. [Leopard + Xcode 3.1.3] I thought I would make a (modal) sheet textured because it provided a nice contrast with its non-textured parent window. The sheet contains one Please review the HIG (human interface guidelines) in the docs. Th

Re: WebView in a layer view hierarchy - not working on Snow Leopard

2009-10-25 Thread John Joyce
Pleases do not encourage use or attempted use of private functions and methods. This is bad practice. Encouraging others to do so is irresponsible and unethical. If you worked for me, you would stand a very large chance to lose your job. It is also not permitted to discuss private API o

Create an NSCharacterSet constant

2009-11-01 Thread John Joyce
Hi All, Is it possible to create an NSCharacterSet constant? Attempting to do so with the methods for creating an NSCharacterSet naturally fails to compile with "initializer element is not constant" I would ideally like to be able to do this. Is it best just to declare a global constant string

Re: Create an NSCharacterSet constant

2009-11-01 Thread John Joyce
On Nov 1, 2009, at 11:32 PM, Graham Cox wrote: On 02/11/2009, at 4:19 PM, John Joyce wrote: Is it possible to create an NSCharacterSet constant? Attempting to do so with the methods for creating an NSCharacterSet naturally fails to compile with "initializer element is not constan

Re: Create an NSCharacterSet constant

2009-11-01 Thread John Joyce
On Nov 2, 2009, at 12:04 AM, Graham Cox wrote: On 02/11/2009, at 4:50 PM, John Joyce wrote: Category, yeah, that's totally one way I thought about, but I was thinking more of an enhancement request in Radar. I figured the nature of it inheriting from NSObject implies there are some

Re: Create an NSCharacterSet constant

2009-11-01 Thread John Joyce
On Nov 1, 2009, at 11:59 PM, Kyle Sluder wrote: On Sun, Nov 1, 2009 at 9:50 PM, John Joyce wrote: Category, yeah, that's totally one way I thought about, but I was thinking more of an enhancement request in Radar. I figured the nature of it inheriting from NSObject implies there are

Re: Lock a file in cocoa

2010-03-19 Thread John Joyce
> > > This seems like a case where it might be good to know why you need to > prevent a file from being trashed. There is probably a better way to > accomplish what you need. > > _murat > > O It's not even Cocoa. What you are looking for is either file permissions (bad idea) OR keeping dat

Re: [iPhone] File coping application

2010-04-26 Thread John Joyce
> Subject: Re: [iPhone] File coping application > To: Arun > Cc: cocoa-dev@lists.apple.com > Message-ID: <59e8cb02-f49c-4bfb-bffb-fa4fcfb21...@gmail.com> > Content-Type: text/plain; charset=us-ascii > > > On 26.04.2010, at 18:04, Arun wrote: > >> Is it possible to copy files form iPhone on to

Re: Matching the style of a HUD?

2010-05-01 Thread John Joyce
On Apr 30, 2010, at 5:50 PM, cocoa-dev-requ...@lists.apple.com wrote: > Date: Fri, 30 Apr 2010 16:52:56 -0400 > From: Izak van Langevelde > Subject: Re: Matching the style of a HUD? > To: Murat Konar > Cc: list-cocoa-dev List > Message-ID: <09e1717e-7378-4704-99c3-6366c295e...@xs4all.nl> > Con

Re: (solved?) baseURL problem with +fileURLWithPath:

2010-05-18 Thread John Joyce
On May 18, 2010, at 12:39 PM, cocoa-dev-requ...@lists.apple.com wrote: > Content-Type: text/plain; charset=us-ascii > > First, the first 2 characters need to be // and not / for it to be a valid > resource specifier. The 10.6 Overview states it will fail to create a NSURL. > Look at the clas

Re: -[NSMutableSet randomObject]

2010-05-25 Thread John Joyce
Implementation should probably include various options for what kind of pseudo randomness is desired. On May 25, 2010, at 11:52 AM, Dave DeLong wrote: > What about something like: > > @implementation NSSet (Random) > > - (id) randomObject { > NSArray * allObjects = [self allObjects]; > if ([

Re: UTI strings

2010-05-30 Thread John Joyce
That's not how these constants work. These are intended to be constants that return the correct type for the current build of the system. This protects your software from a change in the actual UTI of a common type. On May 30, 2010, at 1:04 PM, julius wrote: > Mike > Thanks, that's a great dia

Re: UTI strings

2010-05-30 Thread John Joyce
On May 30, 2010, at 5:15 PM, julius wrote: > John hi > On 30 May 2010, at 19:47, John Joyce wrote: > >> That's not how these constants work. >> These are intended to be constants that return the correct type for the >> current build of the system. >> Thi

Re: UTI strings

2010-05-31 Thread John Joyce
On May 31, 2010, at 4:28 AM, julius wrote: > > On 31 May 2010, at 10:06, Jean-Daniel Dupas wrote: >>> >>> Can you perhaps tell me which UTI maps onto NSPlainTextDocumentType >> >> You would guess on kUTTypePlainText >> >>> and which onto NSMacSimpleTextDocumentType ? >> >> In 3 major rel

Re: UTI strings

2010-05-31 Thread John Joyce
On May 31, 2010, at 4:58 PM, Sean McBride wrote: > On Mon, 31 May 2010 10:39:38 -0500, John Joyce said: > >> Remember, that although creator codes are out, extensions *seem* to be >> recognized, >> and... being a BSD, there is still also the *magic number* for file typ

Re: UTI strings

2010-06-01 Thread John Joyce
On Jun 1, 2010, at 9:26 AM, Sean McBride wrote: > On Tue, 1 Jun 2010 00:29:54 -0500, John Joyce said: > >>>> Remember, that although creator codes are out, extensions *seem* to be >>>> recognized, >>>> and... being a BSD, there is still also the *ma

Re: Simulating app termination

2010-06-01 Thread John Joyce
On Jun 1, 2010, at 2:09 PM, has wrote: > lorenzo7620 wrote: > >> My question at this point is not about the dialog not displaying, not yet >> anyway, but how to tell my app to quit without actually restarting or >> shutting down the computer. Years ago under Classic, I would write an >> Ap

Re: Change the background colour of a window and toolbar

2010-06-03 Thread John Joyce
On Jun 3, 2010, at 10:38 AM, Kyle Sluder wrote: > On Jun 3, 2010, at 8:29 AM, Michael Hanna wrote: > >> How do I customize the background colour of a window, including the >> toolbar? I did this a long time ago and vaguely recall that you can do >> this by setting it as a "textured window" and

Re: OK, break it down for me... (question about gzip)

2010-06-07 Thread John Joyce
On Jun 8, 2010, at 1:16 AM, Stephen J. Butler wrote: > On Tue, Jun 8, 2010 at 1:04 AM, Graham Cox wrote: >> I need to be able to make a .gzip file from a FOLDER on my hard disk >> programatically. > > a) You can't gzip a folder. That's why people tar the folders, then > gzip the tar file (or j

Re: OK, break it down for me... (question about gzip)

2010-06-08 Thread John Joyce
On Jun 8, 2010, at 5:40 AM, Alastair Houghton wrote: > On 8 Jun 2010, at 07:25, Graham Cox wrote: > >> On 08/06/2010, at 4:16 PM, Stephen J. Butler wrote: >> >>> b) In a working OS X system, the unix executables will always be where >>> they're supposed to be (ie: /bin, /sbin, /usr/bin, /usr/sb

Re: DnD International No symbol

2010-06-16 Thread John Joyce
The common behavior is that it will not drop and will (very quickly) snap back to origin. On Jun 16, 2010, at 9:19 PM, Tony Romano wrote: > Hmm... I'm returning the NSDragOperationNone now, all I get is an image of > what is being dragged no other symbol and the outlineview won't accept the >

Re: Add button to Finder

2010-06-16 Thread John Joyce
There is nothing wrong with a popup button. You probably should *not* add buttons to other applications if there is not an API provided to do so for that application. You definitely should never do so without making it an opt-in situation for the user before adding a button to another applicatio

Re: terminates app when main window closes

2010-06-18 Thread John Joyce
On Jun 18, 2010, at 2:02 AM, Kyle Sluder wrote: > On Thu, Jun 17, 2010 at 11:41 PM, Angelo Chen > wrote: >> I have a non document based application, I quit the app by sending terminate >> to NSApplication(file owner). if I close the main window, application will >> not be closed, what I'd like

Re: Getting Computer Name

2010-06-20 Thread John Joyce
On Jun 20, 2010, at 8:46 AM, Steve Steinitz wrote: > Hi Paul, > > On 20/6/10, Paul Sanders wrote: > Are you #including ? >> >>> I wasn't. I added it. Were you wondering if it would make a difference? >> >> Well, yes. Default return type is int. In fact I'm suprised you >> didn't get

Re: Getting Computer Name

2010-06-20 Thread John Joyce
On Jun 20, 2010, at 6:26 PM, Steve Steinitz wrote: > Thanks Jonathan Mitchell, John Joyce, Paul Sanders and Jens Alfke. > > > John: > > Bingo! CSCopyMachineName() works perfectly. > > To answer your question, I want a human-readable machine identifier, but one

Re: AppleScript in a Cocoa app

2010-06-20 Thread John Joyce
On Jun 21, 2010, at 12:53 AM, Angelo Chen wrote: > Hi, > I need to create an AppleScript and run it inside the app to activate another > program, the applescript should call 'add' function the the other program > with different file names, any idea how to achieve this? Thanks, > Angelo One app

Re: AppleScript in a Co

2010-06-21 Thread John Joyce
On Jun 21, 2010, at 10:16 AM, Matt Neuburg wrote: > On Mon, 21 Jun 2010 13:53:31 +0800 (HKT), Angelo Chen > said: >> Hi, >> I need to create an AppleScript and run it inside the app to activate another > program, the applescript should call 'add' function the the other program with > different f

Re: Problem with stopModalWithCode on a different thread

2010-06-23 Thread John Joyce
On Jun 23, 2010, at 9:16 AM, Bill Appleton wrote: >> Plugins don’t impose themselves, nor are they invoked by a user; they’re > always invoked by content on a web page. The user might go to that web page > specifically to use the plugin, or it might be a side effect, but the > mechanism is the sa

Re: changes to NSView's frame in its window

2010-06-23 Thread John Joyce
On Jun 23, 2010, at 1:28 PM, Kyle Sluder wrote: > On Wed, Jun 23, 2010 at 10:33 AM, Alexander Cohen > wrote: >> I have a view in an NSScrollView's document view that has a small child >> window attached to it, meaning the window follows that view wherever it >> goes. But when i scroll the scr

Re: Bypass Network System Preferences for DNS lookup

2010-07-02 Thread John Joyce
On Jul 1, 2010, at 9:42 PM, Michael Jackson wrote: > Is there any way to bypass the system network preferences for DNS > servers to perform all DNS lookups from within a Cocoa app? For > example, I would like my app to always make DNS queries to a > particular pair of DNS servers. > > -- > Micha

Re: Run application before Login starts?

2010-07-05 Thread John Joyce
ion. Also make it clear to users whether this app is running for all users on a system. Regards, John Joyce ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators

Re: Accessing address bar data from Safari extension

2010-07-06 Thread John Joyce
On Jul 6, 2010, at 6:21 AM, cocoa learner wrote: > Hi All, > > Can we access address bar text box and bookmark data from Safari extension? > If yes, please share some thoughts or APIs. > > -- > Thanks > Cocoa.learner > http://rajeshmaclabs.com/ > ___

Re: NSXMLParser parses line feeds in attribute strings as spaces

2010-07-08 Thread John Joyce
You may need to escape it first if it is CDATA. You might benefit from growing the schema to have Then you can insert new line characters as you wish for presentation of the data elsewhere. New lines would often be considered presentational stuff. On Jul 8, 2010, at 9:18 PM, Jeff Johnson wrot

Re: Where did the icon come from?

2010-07-16 Thread John Joyce
On Jul 16, 2010, at 4:28 PM, Eric Gorr wrote: > Is there a unix tool to which I can pass a file and have it tell me where the > icon for the file is coming from? > > Thank you.___ You can build one fairly quickly. Here is the salient part from NSAppli

Re: Where did the icon come from?

2010-07-16 Thread John Joyce
On Jul 16, 2010, at 4:28 PM, Eric Gorr wrote: > Is there a unix tool to which I can pass a file and have it tell me where the > icon for the file is coming from? > > Thank you.___ > Also see NSWorkspace Class Reference iconForFile: Returns an image

Re: Where did the icon come from?

2010-07-16 Thread John Joyce
You might be going about it wrong. A user can, in Finder's Get Info window, set the application they prefer for all files of a given "type". On my system I've set some text file types to always open in TextMate, for example. TextMate the app provides custom file icons for all the file types it ca

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! > __

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: 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

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
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: 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: 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: 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: 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: 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: 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: 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: 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: 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: -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: 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: 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: 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: 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: 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: 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: 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: 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

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: 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

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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: what are the disadvantages in keeping libraries and input files inside app bundle

2011-02-01 Thread John Joyce
/usr/local/lib is intended for command line tools. Not for applications with a UI. On Feb 1, 2011, at 7:05 AM, Paul M wrote: > > On 29/01/2011, at 2:08 AM, Dave Carrigan wrote: > >> This is the preferred method of deployment. Experienced Mac users hate it >> when an installation scatters crud

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

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: 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: 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: 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: 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: 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: 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: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: 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

  1   2   3   >