Re: iCloud does not appear on open, save or move to dialogs for Mac Document based app

2018-11-19 Thread Jim McGowan
t; —Rob > > >> On Nov 19, 2018, at 1:16 AM, Jim McGowan wrote: >> >> Hi, >> >> I posted this on the Developer Forums a week ago, but unfortunately i didn’t >> receive any replies. Perhaps someone here can help. >> >> I have an existing Cor

iCloud does not appear on open, save or move to dialogs for Mac Document based app

2018-11-19 Thread Jim McGowan
Hi, I posted this on the Developer Forums a week ago, but unfortunately i didn’t receive any replies. Perhaps someone here can help. I have an existing Core Data document based app, my document class is a sublcass of NSPersistentDocument, and I use an XML store type. My next update will

Re: Cocoa-dev Digest, Vol 11, Issue 267

2014-05-14 Thread Jim McGowan
On 14 May, 2014, at 10:08:39 pm HKT, Jens Alfke j...@mooseyard.com On May 14, 2014, at 6:41 AM, Jonathan Mitchell jonat...@mugginsoft.com wrote: Is there a way to obtain an NSDate object from a casually entered user string, say: 1 1 2015 or 25 jul 15? There’s no easy way. You can

Re: ARC Retain Cycles

2014-04-26 Thread Jim McGowan
On 25 April, 2014 5:45:24 pm HKT, Dave d...@looktowindward.com wrote: It’s not dogma! autorealease meant my App peaked at 150MB, whereas it needed 10 MB! Autorelease caused 140 MB of data to be useless held in memory for the duration of the Thread for no good reason. ‘Autorelease’

Re: What are the conditions for NSManagedObjectContextObjectsDidChangeNotification to get posted?

2014-01-16 Thread Jim McGowan
On 17 Jan, 2014, at 12:02 am, Mike Abdullah mabdul...@karelia.com wrote: - Does NSManagedObjectContextObjectsDidChangeNotification ever get posted *not* as a result of -processPendingChanges? - When you start seeing the problematic behaviour, is -processPendingChanges still being called,

What are the conditions for NSManagedObjectContextObjectsDidChangeNotification to get posted?

2014-01-15 Thread Jim McGowan
Hi, I’ve noticed that NSManagedObjectContextObjectsDidChangeNotifications are not getting posted on every change to my ManagedObjectContext. The NSManagedObjectContext docs say it gets posted during -processPendingChanges, which is “invoked automatically at least once during the event loop

Re: NSPersistentDocument Migration with Sandbox

2013-05-15 Thread Jim McGowan
at their convenience. Jim On 11 May, 2013, at 10:40 AM, Jim McGowan jim_mcgo...@mac.com wrote: On 11 May, 2013 2:07:18 HKT, Quincey Morris quinceymor...@rivergatesoftware.com wrote: On May 10, 2013, at 07:12 , Jerry Krinock je...@ieee.org wrote: I think that it would help to have a higher-level

Re: NSPersistentDocument Migration with Sandbox

2013-05-10 Thread Jim McGowan
On 9 May, 2013, at 1:56:29 PM HKT, Jerry Krinock je...@ieee.org wrote: sandboxd gives this message on the console: deny file-write-create /Users/jimmcgowan/Desktop/.AGPS Examples.rtd.migrationdestination_41b5a6b5c6e848c462a8480cd24caef3 I've never worked with a sandboxed document, but

Re: NSPersistentDocument Migration with Sandbox

2013-05-10 Thread Jim McGowan
On 11 May, 2013 2:07:18 HKT, Quincey Morris quinceymor...@rivergatesoftware.com wrote: On May 10, 2013, at 07:12 , Jerry Krinock je...@ieee.org wrote: I think that it would help to have a higher-level understanding of the problem. How about this… You have a sandboxed app in which the

NSPersistentDocument Migration with Sandbox

2013-05-08 Thread Jim McGowan
Hi, I'm working on an update to a Core-Data document app, and have a new version of the document model. I've got automatic migration (with a mapping model) of documents in the old format working fine when the app is run without sandboxing. However, when running in the sandbox, migration

Re: How to enable the close window button while showing a modal sheet?

2013-01-10 Thread Jim McGowan
of NSApplication. Jim On 10 Jan, 2013, at 18:38 , Uli Kusterer witness.of.teacht...@gmx.net wrote: On Jan 10, 2013, at 2:25 AM, Jim McGowan jim_mcgo...@mac.com wrote: On 9 Jan, 2013, at 6:11, Oleg Krupnov oleg.krup...@gmail.com wrote: I don't want to start a HIG flame on this, but just want to know if it's

Re: How to enable the close window button while showing a modal sheet?

2013-01-09 Thread Jim McGowan
On 9 Jan, 2013, at 6:11, Oleg Krupnov oleg.krup...@gmail.com wrote: I don't want to start a HIG flame on this, but just want to know if it's technically possible to enable the close button of a window while showing a modal sheet (NSApp beginSheet:modalForWindow:…) on it? The answer is in the

Re: NSTextView and -becomeFirstResponder

2012-02-23 Thread Jim McGowan
On 23 Feb 2012, at 05:47, Kyle Sluder kyle.slu...@gmail.com wrote: On Sun, Feb 19, 2012 at 9:29 PM, Jim McGowan jim_mcgo...@mac.com wrote: However, I'm a bit confused by the docs. -becomeFirstResponder is marked as being deprecated for NSTextView, but not deprecated in its superclass

Re: NSTextView and -becomeFirstResponder

2012-02-23 Thread Jim McGowan
On 23 Feb 2012, at 08:31, Conrad Shultz con...@synthetiqsolutions.com wrote: On 2/19/12 9:29 PM, Jim McGowan wrote: Hi, I have an NSTextView subclass and I need it to inform another object of when it becomes first responder - along the lines of overriding -becomeFirstResponder something

NSTextView and -becomeFirstResponder

2012-02-22 Thread Jim McGowan
Hi, I have an NSTextView subclass and I need it to inform another object of when it becomes first responder - along the lines of overriding -becomeFirstResponder something along the lines of this: - (BOOL)becomeFirstResponder { [someOtherObject textViewBecameFirstResponer:self];

Re: Playing Music in Objective C

2012-02-13 Thread Jim McGowan
On 13 February, 2012 4:38, Jens Alfke j...@mooseyard.com wrote: On Feb 12, 2012, at 10:35 AM, Conrad Shultz wrote: The simplest (and therefore least customizable) approach would be to use NSSound. But I think it will do everything you stipulate. A minor issue with NSSound in games is

Re: I think I'm ready to throw in the towel - I really need help here

2012-01-25 Thread Jim McGowan
(1) John, use this graphics app, do these 3-or-whatever things on your png graphics and bingo! You might want to try (re)creating your graphics with Opacity (http://likethought.com/opacity), it's a great graphics app designed for developers and has multi resolution support built right in,

Re: How to get rid of blinking?

2011-10-19 Thread Jim McGowan
-(void)mouseDragged:(NSEvent *)theEvent { NSPoint locationOnCanvas = [self convertPoint:[theEvent locationInWindow] fromView:nil]; if(currentMouseMode == MMZooming) { *[self display]; //clear the previous rectangle [self lockFocus]; [self

Re: JSON Parser

2011-09-08 Thread Jim McGowan
I'm using the YAJL framework (yajl-objc) in a 10.6/10.7 project at the moment, and it works great. Nice clean API. http://gabriel.github.com/yajl-objc/ Jim On 9 Sep 2011, at 1:25:37 , Tom Hohensee wrote: I have recently come across the need to handle JSON in an application I am working on

Getting mouse cursor position

2011-05-07 Thread Jim McGowan
On 7 May 2011, at 0:29 , Nick eveningn...@gmail.com wrote: May this is just a wrong function to retrieve the cursor's position? Or it doesnt work for some older builds of OX X 10.6.x ? -hotSpot returns a point within in the cursor image, used to determine which part of the cursor is it's

Re: About notification NSWindowDidMiniaturizeNotification

2011-03-08 Thread Jim McGowan
I write the following code and try to observe the window miniaturized notification, it doesn't work, can anyone tell me why? ... // Observing window status [self registerDefaultNotification:NSWindowDidMiniaturizeNotification withSelector:@selector(windowMiniaturized:)

Re: About notification NSWindowDidMiniaturizeNotification

2011-03-08 Thread Jim McGowan
with onObject:nil you are not providing an NSWindow instance to observe Not so - passing nil means observe all windows. Ah yes, of course it does ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or

Re: How is 'truncate last visible line' accomplished?

2010-07-03 Thread Jim McGowan
On 3 Jul 2010, at 21:17, Graham Cox wrote: How is 'truncate last visible line' accomplished for wrapped text? I have a custom cell that I would like to have this behaviour in. Most of the system controls/cells support this but it's not clear how it's done for custom cells. I thought it

Re: window controller question

2010-06-28 Thread Jim McGowan
On 29 Jun 2010, at 3:40, Rainer Standke wrote: trying to clarify another newbie question. I have an app that has multiple windows per document. I'd like to be able to open and close those windows independently from each-other. I understand that I should use NSWindowControllers. So what I

Re: Cocoa-dev Digest, Vol 7, Issue 684

2010-06-27 Thread Jim McGowan
On 27 Jun 2010, at 3:19, Richard Somers wrote: With an NSButton the pdf file works great and looks great when scaling set to none. When the pdf file is used as the image for the toolbar item, it gets asymmetrically stretched and looks horrible. Thus the reason for converting the pdf to an

Re: Problem with setting a cursor

2010-06-07 Thread Jim McGowan
-resetCursorRects: method and add cursor rects there, rather than try to force a change when an event is being handled. Jim McGowan smime.p7s Description: S/MIME cryptographic signature ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do