Re: Determine encoding of file

2010-07-30 Thread John Pannell
]){ htmlString = [[NSString alloc] initWithData:_htmldata encoding:[[results objectAtIndex:i] unsignedIntValue]]; } I didn't write the original code, and couldn't track down the origination of it. Perhaps it will help! John On Jul 30, 2010, at 4:09 PM, Dave DeLong wrote: I have

Re: PMSessionBeginPage

2010-07-29 Thread John Joyce
Posting on multiple mailing-lists is considered cross-posting. Please keep a post to the appropriate list only. Thank you. On Jul 29, 2010, at 2:09 AM, Shilpi Aggarwal wrote: I posted this on these three mailing lists ONCE to get views from wider audience. -Shilpi -Original

Re: How to fastly get the active window's title?

2010-07-27 Thread John Joyce
Look into NSWorkspace class and methods... On Jul 26, 2010, at 4:54 PM, cocoa nick wrote: What is the fastest (in terms of execution) way to get the active window's (of arbitrary application, not necessarily mine) title? I have found only the way involving AppleScript which doesn't seem fast

Drag'n Drop Mail.app message to Cocoa app

2010-07-22 Thread John Ackert
); } return YES; } However, I don't have an idea what to do next? Scripting Bridge? Or is there another way how to accept and read email content? Thanks, John Ackert___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: Where did the icon come from?

2010-07-17 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 can

Re: Set Hierarchical NSUserDefaults Value

2010-07-16 Thread John Johnson
or use something like this category I wrote last year, when I got tired of uprooting and replanting entire trees in my User Defaults, every time I wanted to change a leaf: NSUserDefaults+KeyPaths.zip Very nice. I think I will find this useful. Thanks.

Re: 1. NSStream Questions (Jon Loeliger)

2010-07-16 Thread John MacMullin
? Thanks, jdl Best regards, John MacMullin Attorney at Law 1-602-943-5240 1-602-904-5426 1-800-924-8548 Email:john.macmul...@cox.net Skype: john_macmullin www.macmullin.info CONFIDENTIALITY - The information contained in this email is confidential information, may be legally privileged

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

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

NSTimer access to its -timerFireMethod

2010-07-14 Thread John Love
This is just out of academic curiosity because I can successfully use: [NSThread detachNewThreadSelector: toTarget: withObject:] to do what I want. Nevertheless, I have been trying to do the same thing in the main Thread with NSTimer and something is wrong that I just cannot figure out. So,

NSArchiverArchiveInconsistency

2010-07-08 Thread John MacMullin
pan fry would help. So, if you've seen something like this, please give me an idea of what you did to correct it. Any ideas would be welcome. Really frustrated at the moment, John MacMullin ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com

Re: Sanity Check

2010-07-08 Thread John Johnson
I have taken all advice and the code now looks like below which cleans up the pointed out controller leak and does not store [self window]: There still seems to be some problems with your code... - (IBAction)sewing:(id)sender { [[[SewingController alloc]

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 city/city state/state 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

Re: Accessing address bar data from Safari extension

2010-07-06 Thread John Joyce
/ ___ This is not actually a Cocoa question. Please take it to the Safari/Webkit lists or the Safari Developer forum. Thanks, John ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Re: Run application before Login starts?

2010-07-05 Thread John Joyce
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 at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe

Re: Custom bundle icon

2010-07-05 Thread John Johnson
You should do as Jean-Daniel says, but also, you should set the 'bundle bit' of your .ftplugin files. The system only knows to show .ftplugin folders as flat files if it can find your UTI somewhere. If the user has your app, then that's fine, but if not then he'll still see a folder.

Re: Custom bundle icon

2010-07-05 Thread John Johnson
You can't set a UTI on something. You provide a UTI declaration in your Info.plist, consisting of a set of attributes that define what it means for a file to conform to a UTI, and Launch Services uses that to match files against when it tries to determine their UTI. So, no, by definition you

Custom bundle icon

2010-07-02 Thread John Johnson
Just an aesthetic question. I've implemented an API for cocoa plugins in my app, and the plugins use a custom extension, ftplugin. These plugins show up as folders in the finder, even though I've set the app icon to an icns file. Is there something particular I have to do to have the plugin

Re: Custom bundle icon

2010-07-02 Thread John Johnson
:39 AM, John Johnson wrote: Just an aesthetic question. I've implemented an API for cocoa plugins in my app, and the plugins use a custom extension, ftplugin. These plugins show up as folders in the finder, even though I've set the app icon to an icns file. Is there something particular I

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. -- Michael

iOS: CFReadStreamCreateWithFile non-exclusive file access?

2010-06-29 Thread John Michael Zorko
-exclusive access to an already open file, or do I need to go down to the BSD open() call with SHLOCK to do this? Or is there another way? Any help is appreciated :-) Regards, John ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: using UTF-32 in NSString.

2010-06-29 Thread John Engelhart
On Sun, Jun 27, 2010 at 5:18 PM, Georg Seifert georg.seif...@gmx.de wrote: Hi, Does anyone has information on how to use Unicode code points higher than 0x. I need to add some supplementary multilingual plane code points to a NSString. I can use something like this: NSString

Re: C arrays as __block variables

2010-06-29 Thread John Engelhart
On Sun, Jun 27, 2010 at 12:19 AM, Bill Bumgarner b...@mac.com wrote: On Jun 26, 2010, at 9:14 PM, Tony Romano wrote: That's why I asked for an example of what the op question is http://lists.apple.com/archives/cocoa-dev/2010/Jun/msg01040.html This would seem to imply that a __block

Re: [UPDATE] Applications using RegexKitLite no longer being accepted at the AppStore

2010-06-29 Thread John Engelhart
On Mon, Jun 14, 2010 at 8:36 PM, John Engelhart john.engelh...@gmail.comwrote: Bad News, Everyone! -- Professor Farnsworth I've received nearly half a dozen reports that iOS4 applications using RegexKitLite are now being rejected when they are submitted for AppStore approval due to violating

closing a sheet from another controller

2010-06-24 Thread John Love
, John Love Touch the Future! Teach! ___ 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-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your

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 same

Problem with NavigationControllers in TabBar Options

2010-06-23 Thread John Duff
. If it helps here is the link to the blog post with the tutorial and comments http://jduff.github.com/2010/03/09/throwing-a-uinavigationcontroller-uitabbarcontroller-and-uisearchbar-together/ Thanks in advance for the help, -John ___ Cocoa-dev mailing list

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 a...@toomuchspace.com 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

Re: iOS4: CFReadStream and background operation

2010-06-23 Thread John Michael Zorko
they do / are? Is there something else I should be looking for that could cause this? Regards, John ___ 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: iOS4: CFReadStream and background operation

2010-06-23 Thread John Michael Zorko
if it calls AudioQueueStop() even if it's going to call AudioQueueStart() later), it suspends it. Regards, John ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

iOS4: CFReadStream and background operation

2010-06-22 Thread John Michael Zorko
this -- but the CFReadStream callback doesn't always get called, which makes this app appear to stop until the user brings it in the foreground again. Thoughts? If anyone could assist and help me understand why this happens (and how to fix it), i'd be quite appreciative :-) Regards, John

Re: AppleScript in a Cocoa app

2010-06-21 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

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 angelochen...@yahoo.com.hk 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

Async NSURLConnection and blocks (was: Running NSURLConnection from within an NSOperation?)

2010-06-21 Thread John Heitmann
On Feb 9, 2010, at 3:01 PM, Keith Duncan wrote: ...you should create a 'concurrent' NSOperation as described in the documentation, and schedule your NSURLConnection on +[NSRunLoop mainRunLoop]. This will allow your NSOperation -start method to exit immediately and the thread to return to

Re: Async NSURLConnection and blocks (was: Running NSURLConnection from within an NSOperation?)

2010-06-21 Thread John Heitmann
) and the connection (which needed the handler). Now that start is manually run I can clean that up too. Thanks again, John [1] http://developer.apple.com/iphone/library/samplecode/XMLPerformance/Listings/Classes_LibXMLParser_m.html#//apple_ref/doc/uid/DTS40008094-Classes_LibXMLParser_m

Re: Getting Computer Name

2010-06-20 Thread John Joyce
. Hope that helps, 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 at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your

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 that's not tied to the hardware

Re: DnD International No symbol

2010-06-19 Thread John Johnson
On Wed, Jun 16, 2010 at 7:19 PM, Tony Romano tony...@hotmail.com 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 drop which is correct. When I have a valid selection, I get the

raising NSException between Controllers

2010-06-19 Thread John Love
?? it is because I am bouncing between separate Controllers and am causing mayhem. Any psychic premonitions would be welcomed. John Love ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

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 angelochen...@yahoo.com.hk 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

Re: Problem running CocoaDVDPlayer sample

2010-06-17 Thread John Johnson
Didn't there used to be a technote on how to circumvent this behavior? iTunes pulls some of the same trickery. I doubt Apple would build in a way to circumvent this behavior. That would defeat the purpose of having it there in the first place. That said, you can build a kernel extension that

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

Re: NSButton with image

2010-06-14 Thread John Johnson
If all I want is an image that acts like a button, do I need to subclass NSButton? I just want my button to show only my image and no Apple style button backgrounds. All this is easily found in the NSButton and NSButtonCell documentation. I believe what you are looking for is

How to Create Auto-resize TableView or NSTextField?

2010-06-14 Thread John Gordon
All, I am tasked with creating a receipt for printing purposes, imagine a grocery receipt: Item 1$5 Item 2$5.95 Given that the list of items on a receipt can be as long as needed, I need a way to add the items to the NSView and have the items properly size

Applications using RegexKitLite no longer being accepted at the AppStore

2010-06-14 Thread John Engelhart
Bad News, Everyone! -- Professor Farnsworth I've received nearly half a dozen reports that iOS4 applications using RegexKitLite are now being rejected when they are submitted for AppStore approval due to violating section 3.3.1. I don't wish to speculate publicly as to why at this point due to

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

2010-06-08 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 graham@bigpond.com 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

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/sbin, etc).

Re: PDFSelection question

2010-06-07 Thread John Calhoun
to do though. John Calhoun—___ 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-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your

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 taomaili...@gmail.com 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

Spotlight-Style search menu

2010-06-02 Thread John Johnson
So I know how to set a view in an NSMenuItem, but my question is how to get it to look similar to the Spotlight search menu. For example, if I set the first item in a popup menu to a custom view, there is still a thin strip of white across the top. I want the gradient from the view to fill up

Re: The Unadopted Protocol

2010-06-02 Thread John Johnson
This compiles and runs fine, even though MyClass never adopted the protocol Unadopted. It take it that by casting mc to an id, I cause the compiler to grasp at the only signature for testing that it knows about, namely the one in the protocol. So it happily uses that signature without

Re: Spotlight-Style search menu

2010-06-02 Thread John Johnson
Currently there is not. You should file an enhancement request at http://bugreport.apple.com asking for this feature. You're certainly not the only one who would like it. :) --Kyle Sluder Hmm that is slightly disappointing. Another couple of subclasses and dozens of lines of code for

Re: Spotlight-Style search menu (SOLVED)

2010-06-02 Thread John Johnson
Well, you can have the custom view in the status bar to be a NSButton, it's action will compute the location and make the window key and visible at that location and when the window resigns key, just fade it away Brilliant! Seems the only way to go. Anyhow, thanks for the help

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 *magic number* for file types... (the magic file does get

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 Applescript

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 releases Apple didn't

NSTreeNode and NSCoding

2010-05-31 Thread John Velman
NSTreeNode doesn't seem to be NSCoding compliant. How does one archive a tree when using NSTreeNode? Does one, when saving, extract the represented objects for archiving, then rebuild with NSTreeNodes when unarchiving? Can't seem to find any examples or information. Thanks, John Velman

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 types... (the magic file does get

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

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. This protects your software from a change

Re: Question about how to make a custom sheet

2010-05-29 Thread John Johnson
Perhaps NSWindowController subclass is what you're looking for. A sheet is just another window. Then set the File's Owner of the NIB file that houses the sheet to this subclass. My problem is how to get a custom class attached to the sheet, so controls on the sheet can be controlled during

Changing cursors in window's bounds

2010-05-28 Thread John Love
to it. So, how do I effect cursor tracking just in this window without creating a custom NSView in IB? John Love Touch the Future! Teach! ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

Re: Creating a PDFSelection...

2010-05-26 Thread John Calhoun
the original selection and the unarchived one. If you know the range of the original text selected, PDFPage's -[selectionForRange:] is unambiguously specified. John Calhoun—___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: initializing a pdfview

2010-05-26 Thread John Calhoun
doesn't seem to get called--as it does in nsview. Are you loading the PDFView subclass from a NIB or creating it programmatically? From the NIB I believe -(id) initWithCoder: (NSCoder *) coder is called. John Calhoun—___ Cocoa-dev mailing list (Cocoa

Re: PDFKit cpSelections?

2010-05-26 Thread John Calhoun
with a different color than when the focus is elsewhere I offer this just as an explanation for what is happening — I can't say why you are seeing doesNotRecognizeSelector or referecnes to cpSelection. John Calhoun—___ Cocoa-dev mailing list (Cocoa

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: reformat drive to HFS via API

2010-05-25 Thread John Johnson
The DiskManagement.framework is a private framework. Short of creating your own API using low-level disk access, diskutil may be your best bet. I would like to be able to reformat a flash drive from control application, but it appears that there is no public API that allows this kind access.

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 class

selecting a sub icon from an icns file

2010-05-13 Thread John Stoneham
With Icon Composer, you can have 5 separate images for the 5 icon sizes. Cool. So I've got an icns file set up as my application icon, and I'd like to use of the smaller sub icons in it for an NSAlert message. Problem is I can't seem to figure out a way to do this. Anyone have any suggestions?

Re: theme sets with NSUserDefaults

2010-05-04 Thread John Stoneham
, and Core Data looks like a good fit. I've never used it before and I'm finding the learning curve is a bit steep, but maybe it will be worth the effort in the long run. -- John ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

ScriptingBridge Commands

2010-05-04 Thread John Nairn
) someResult=gedit.myCommandArgument_(arg1) should both work. For me the AppleScript method works (verifying my command is defined correctly), but the python one does not work. Is this a bug in the ScriptingBridge framework? John Nairn http://www.geditcom.com Genealogy Software

theme sets with NSUserDefaults

2010-05-03 Thread John Stoneham
in NSUserDefaults. Is this possible, or do I just need to forget it and use plists? -- John ___ 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

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 eezac...@xs4all.nl Subject: Re: Matching the style of a HUD? To: Murat Konar mu...@pixar.com Cc: list-cocoa-dev List cocoa-dev@lists.apple.com Message-ID:

Re: XCode 3.2.2 Hangs after Clean All but Previous Version Doesn't

2010-04-26 Thread John Pannell
Hi Brad I have no solutions, but can confirm that I have the same issue. I've ended up quitting after all cleans, relaunching, and then building (which works, but is clearly a workaround, not a fix). John Positive Spin Media http://www.positivespinmedia.com On Apr 26, 2010, at 7:18 AM, Brad

Re: [iPhone] File coping application

2010-04-26 Thread John Joyce
Subject: Re: [iPhone] File coping application To: Arun arun...@gmail.com 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

'Build and Analyze' with XCODE 3.2.2

2010-04-24 Thread John Love
options:0]; [offset release]; return result; By the way, identical gotchas are picked up by B A for gregorian. John Love John Love Touch the Future! Teach! ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

appscript project gives warning with XCODE 3.2.2

2010-04-21 Thread John Love
hardly remember Tiger sdk's being on my hard drive. Building with 3.2.1 gives no error. John Love Touch the Future! Teach! ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list

Re: [ANN]: RegexKitLite 4.0

2010-04-21 Thread John Engelhart
On Wed, Apr 21, 2010 at 4:33 PM, Matt Neuburg m...@tidbits.com wrote: On Tue, 20 Apr 2010 15:45:13 -0400, John Engelhart john.engelh...@gmail.com said: There are an awful lot of Top 10 applications that use RegexKitLite that don't acknowledge their use An awful lot? Ex hypothesi

[ANN]: RegexKitLite 4.0

2010-04-20 Thread John Engelhart
RegexKitLite 4.0 has been released.  Links: Download: http://downloads.sourceforge.net/regexkit/RegexKitLite-4.0.tar.bz2 (139.1K) Documentation: http://regexkit.sourceforge.net/RegexKitLite/index.html PDF Documentation: http://downloads.sourceforge.net/regexkit/RegexKitLite-4.0.pdf (1.1M) On a

initWithObject Confusion

2010-04-08 Thread John Nairn
of my custom classes defines an initWithObject: method) 2. Even if it compiles, how can it run in Snow Leopard when there is no initWithObject: selector for NSArray (or at least according to the NSArray docmentation there isn't one)? --- John Nairn (1-541-737-4265, FAX:1-541-737

Re: initWithObject Confusion

2010-04-08 Thread John Nairn
Leopard, however, there was no message and it worked fine as if Snow Leopard read my mind and realized I wanted to create an array with a single object. But, I am nervous about relying on the OS to read my mind (or even have an idea of how it did that)? --- John Nairn (1-541-737

Re: How to subclass UIButton?

2010-04-07 Thread john chen
I think UIButton is not designed for subclassing. You can try composition, or create UIButton category method for custom-build button. Apple has sample code in UICatalog to create custom-build button. On Wed, Apr 7, 2010 at 2:26 PM, WT jrca...@gmail.com wrote: Hello all, I need to create a

Re: Multi Window cocoa application

2010-04-05 Thread John Baldwin
Depending on what you need to communicate and why, you might be able to use the NSNotificationCenter to meet your needs. John On Saturday Apr 3 4:22 PM, at 4:22 PM, Bharadwaj Parthasarathy wrote: Hi, I am currently working on porting an existing open source windows application to mac

Re: Detecting which MKAnnotation Detail Disclosure was touched

2010-04-02 Thread John Baldwin
You can use view.annotation in - (void)mapView:(MKMapView *)mapView annotationView:(MKAnnotationView *)view calloutAccessoryControlTapped:(UIControl *)control John On Thursday Apr 1 6:16 PM, at 6:16 PM, Roger Dalal wrote: Help All (please)! I have approximately 80 map annotations

Re: Terminating subtasks reliably

2010-03-31 Thread John Harte
On Mar 31, 2010, at 4:28 AM, Jean-Daniel Dupas wrote: What does getppid() returns if the parent dies before the child reach this point ? Look like a race condition. The man page says getppid() will not fail, but not what happens after the parent dies. I will test this. Thanks John

Re: Terminating subtasks reliably

2010-03-31 Thread John Harte
On Mar 31, 2010, at 9:13 AM, John Harte wrote: What does getppid() returns if the parent dies before the child reach this point ? Look like a race condition. The man page says getppid() will not fail, but not what happens after the parent dies. I will test this. If the parent dies

Saving jpeg data

2010-03-30 Thread John Nairn
representationUsingType:properties] has been available since 10.0. I don't know what NSCachedImageRep is and I did not think I created or accessed one either? --- John Nairn (1-541-737-4265, FAX:1-541-737-3385) Professor and Richardson Chair Web Page: http://www.cof.orst.edu/cof/wse/faculty

Re: Terminating subtasks reliably

2010-03-30 Thread John Harte
On Mar 30, 2010, at 4:01 PM, McLaughlin, Michael P. wrote: I have a Cocoa app (Leopard) which launches several Foundation Tool subtasks (since threads are not sufficient in this case). Currently, I terminate these subtasks via the app-delegate method

Re: NSTask and pseudo TTY

2010-03-28 Thread John Pannell
Hi James- Depending on your use case, you might be able to shut the buffering off by something like this... setvbuf(stdout, NULL, _IONBF, 0); Hope this helps! John On Mar 28, 2010, at 12:56 PM, James W. Walker wrote: I've been running NSTask and reading the output using -[NSFileHandle

iPhone movie timestamp

2010-03-25 Thread John Wright
file or inside the iphone backup directory on the desktop? Thanks, John Wright ___ 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-dev-admins

Allowing incoming connections.

2010-03-24 Thread John C. Randolph
So, I've got this app that connects to RTSP streams, and I'd rather not nag the user every time it's launched with that Do you wan the application to accept incoming network connections? dialog box. Anyway to have the user authorize it once and have that authorization stick, or is this a

Re: Printing an NSDocument

2010-03-19 Thread John Velman
Topics for Cocoa. And once I got it set up it was easy to tweak. I also found the printing chapter in Hillegass' Cocoa Programming for Mac OS X helpful. John V. On Thu, Mar 18, 2010 at 03:47:48PM -0400, Brian Postow wrote: I'm trying to print a document. The document is an array

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 data in an

Re: Core Animation and interaction

2010-03-17 Thread john fogg
There's a CoreAnimation sample project that does just this, called LightBoard. --Kyle Sluder Thank you and thanks everyone else. I didn't find the LightBoard sample but I found GeekGameBoard which helped me a lot. John. ___ Cocoa-dev mailing list

Core Animation and interaction

2010-03-16 Thread john fogg
Hi there, in my app I want to have a light table to sort photos. Basically it's just a huge view with lots of photos in it and you can drag the photos around. Photos can overlap, they don't fall into a grid like in iPhoto. So every photo needs to respond to mouse events. Do I make every photo

Can you obtain the NSRuleEditor localized display?

2010-03-10 Thread John C. Daub
there's a nice trick I could use. I need to run on 10.5, but if there's a 10.6-and-later-only solution that could be acceptable. Thank you. -- John C. Daub }:-)= mailto:h...@hsoi.com http://www.hsoi.com/hsoi/blog/ We live thinking we will never die. We die thinking we had never lived. Cut it out

Accessing the contextual menu of a QTMovieView?

2010-03-10 Thread John C. Randolph
I'd like to add an item to the menu that comes up when you right-click on a QTMovieView. I want to copy the URL of the movie it's showing into the pasteboard. I'm not finding any obvious API to get hold of that menu. Any suggestions? Thanks, -jcr

Re: Can you obtain the NSRuleEditor localized display?

2010-03-10 Thread John C. Daub
on 3/10/10 6:01 PM, Peter Ammon at pam...@apple.com wrote: On Mar 10, 2010, at 11:30 AM, John C. Daub wrote: Can you obtain the localized display of an NSRuleEditor? [...] I can't see any way to extract the actual displayed GUI (post-formatting), other than obtaining the criteria

Re: NSImageRep simple code

2010-03-04 Thread John Horigan
, but Snow Leopard lazily copies the data planes to a CGImage. Once that copy happens, changes to pixel[] will have no affect on aSimpleBitmap. -- john On Mar 3, 2010, at 8:54 PM, Martin Beroiz wrote: Hello everyone, I'm trying to understand how NSImageRep works, so I read the docs and came up

<    1   2   3   4   5   6   7   8   9   10   >