Re: What changed in 10.10 scrollView / scrollPoint?

2014-11-19 Thread Gideon King
by swipe scrolling or pinch zooming. Thanks again for the suggestions of places to look. Gideon On 18 Nov 2014, at 7:53 am, Graham Cox graham@bigpond.com wrote: ... On 18 Nov 2014, at 12:58 am, Gideon King gid...@novamind.com wrote: I have always done this using scrollPoint on my view

What changed in 10.10 scrollView / scrollPoint?

2014-11-17 Thread Gideon King
Hi, I have an app where I need to programmatically scroll the content of a full screen scroll view. I have always done this using scrollPoint on my view. I have been using this since 10.6. My view is not layer backed and has a single subview which is a layer *hosting* view. Now in Yosemite

Finding events

2014-01-26 Thread Gideon King
When users save a document, I want to save a reference to an event in the file. Then when they open the document on either the same machine or another one, I want them to have access to the same event. There appear to be three things that could be saved: - eventIdentifier -

Re: iOS 7 downloadable fonts

2014-01-21 Thread Gideon King
Cool, thanks for that. I thought there must be a step I was missing. I don’t have the 7.1 beta to test and see if there is a bug there - will try to find time do grab it... Regards Gideon On 21 Jan 2014, at 5:33 pm, Tualatrix Chou tualat...@gmail.com wrote: After downloading the font, if

System fonts on iOS 7

2014-01-18 Thread Gideon King
I am trying to display font information on the user interface of my application, and have come across some hidden fonts that are obviously there in the system, but not listed in the UIFont familyNames. This can happen when the user has pasted rich text into my application and it is in a hidden

Re: System fonts on iOS 7

2014-01-18 Thread Gideon King
Ah, interesting to know that, thanks Jens. Yes, I guess I could leave it unchecked. But also my files are used cross-platform, so I would prefer to store font information for standard fonts, so will probably do the translation to standard fonts during pasting anyway. Regards Gideon Fonts

iOS 7 downloadable fonts

2014-01-18 Thread Gideon King
Hi, I am trying to use CTFontDescriptorMatchFontDescriptorsWithProgressHandler to download a font. It appears to download fine, and I can display it in my application. [UIFont familyNames] includes that font. I restart my application, and [UIFont familyNames] does not include the downloaded

Re: How do I debug weak_unregister_no_lock?

2014-01-15 Thread Gideon King
: On Jan 14, 2014, at 9:05 PM, Quincey Morris quinceymor...@rivergatesoftware.com wrote: On Jan 14, 2014, at 18:34 , Gideon King gid...@novamind.com wrote: Although it is always happening at the same point in the code, I really have no idea where to look for debugging it. I have

Re: How do I debug weak_unregister_no_lock?

2014-01-14 Thread Gideon King
this would be very much appreciated. Thanks Gideon On 12 Jan 2014, at 11:54 am, Gideon King gid...@novamind.com wrote: I have seen this crash twice in running my code over 100 times, so it’s pretty hard to reproduce, but definitely there. It seems to be related to deallocating

Re: UIPopoverController and UIToolbar interactions

2014-01-13 Thread Gideon King
…or set your passthroughViews to nil *after* your presentPopover call and have it just dismiss the popover as normal when you tap something on the toolbar. Regards Gideon On 14 Jan 2014, at 8:28 am, Sixten Otto hims...@sfko.com wrote: I tend to agree that it's problematic, but it is

How do I debug weak_unregister_no_lock?

2014-01-11 Thread Gideon King
I have seen this crash twice in running my code over 100 times, so it’s pretty hard to reproduce, but definitely there. It seems to be related to deallocating an OUIInspectorPane object, but when I look in the debugger, it is actually my subclass of that object. I have zombies turned on, but

dataWithPDFInsideRect: subview positions when using layer backed views

2013-11-16 Thread Gideon King
Here’s the scenario: All views are flipped. OSX 10.9. I have a view with frame and bounds 0,0,2000,2000. The first subview has a frame 0,0,2000,2000 and bounds -1000,-1000,2000,2000. I set it to draw a solid color. On screen it covers the first view. It has a number of small 100,50 subviews at

Re: Helping Arc with: PerformSelector may cause a leak because its selector is unknown

2013-10-22 Thread Gideon King
You can tell it to ignore the warning like this: #pragma clang diagnostic push #pragma clang diagnostic ignored -Warc-performSelector-leaks NSNumber *status = [ self performSelector: aSelector withObject: a withObject: b ]; #pragma clang diagnostic pop Hope that helps. Gideon On

Re: Converting views to use layer backing

2013-10-17 Thread Gideon King
I knew I was going to want to do something like that myself so created a small test project. You need to have the scrollview, the clipview, and the document view all layer backed for it to work with the scrollview magnification. You shouldn't need to explicitly set the autoresizesSubviews on.

EventKit calendarItemIdentifier and calendarItemExternalIdentifier

2013-07-15 Thread Gideon King
I am converting some code from CalendarStore to EventKit, and see that there are now two identifiers. It looks as if it I want to enable access to events across multiple devices, I should always store the calendarItemExternalIdentifier - correct? It is not clear from the documentation whether

realizeClass crash

2013-07-12 Thread Gideon King
Hi, my application is crashing consistently for one user. The application is in use successfully by thousands of people, and this user has it installed on 3 machines but it only crashes on one of them. Any ideas what would cause this kind of crash? Crashed Thread: 0 Dispatch queue:

App store reject on asl log. How else do I get at the log messages?

2013-05-30 Thread Gideon King
Hi, My app was rejected from the store because I wanted the entitlement: com.apple.security.temporary-exception.files.absolute-path.read-only - /private/var/log/asl/ I need this so I can use the asl_new, asl_set_query, asl_search, aslresponse_next, asl_get, and aslresponse_free to be able to

Re: Sandboxing and ABAddressBook

2013-05-21 Thread Gideon King
the 'indexPlugins' method in your backtrace. Do you have anything in Library/Address Book Plug-Ins ? Sean On Mon, 20 May 2013 18:45:39 +1000, Gideon King said: I have address book data access enabled, but when I do a [ABAddressBook sharedAddressBook] in applicationDidFinishLaunching

Re: Sandboxing and ABAddressBook

2013-05-21 Thread Gideon King
I checked /Library, /System/Library and ~/Library. I presume by network you would be referring to some server config, since I don't have a /Network folder but I recall seeing one on another machine I worked on in another place. G. On 22/05/2013, at 6:43 AM, Sean McBride s...@rogue-research.com

Sandboxing and ABAddressBook

2013-05-20 Thread Gideon King
Hi, I have address book data access enabled, but when I do a [ABAddressBook sharedAddressBook] in applicationDidFinishLaunching, it generates a series of sandbox deny file-read-data messages. Interestingly, if I then ask it for me it returns correct data, so whatever the messages are, it

Widow / Orphan protection in text layout

2013-05-20 Thread Gideon King
Hi, I have inherited some code which has a subclass of NSATSTypesetter in it, and in the -willSetLineFragmentRect:forGlyphRange:usedRect:baselineOffset: method it works out whether it needs to put a page break in, and directly sets the currentTextContainer, currentTextContainerIndex, and

Re: Widow / Orphan protection in text layout

2013-05-20 Thread Gideon King
Thanks Kyle, This is actually a bit more than inconvenience - it causes my app to be rejected from the app store. It's all very well overriding -currentTextContainer and returning my ivar, but I have no way of knowing if it is used in different parts of the typesetter, so could be

Overlapping sibling views

2013-04-30 Thread Gideon King
Hi, I had to design my whole view system to work around the problems with overlapping sibling views not being guaranteed to be drawn in a specific order, but today I came across some posts that suggested that this was no longer the case. In the current 10.8 documentation it still says: Note:

Re: Overlapping sibling views

2013-04-30 Thread Gideon King
So it sounds as if as long as I have all my views in the entire hierarchy layer backed, my sibling views should always draw in order. This makes me happy :) … and the documentation wrong :( - I'll report that. Regards Gideon ___ Cocoa-dev

Re: Overlapping sibling views

2013-04-30 Thread Gideon King
How did you test it? Did you sort the views at all, or just leave them in the order they were instantiated? Did you try Sean's workaround? Regards Gideon On 01/05/2013, at 4:39 AM, Quincey Morris quinceymor...@rivergatesoftware.com wrote: Nope. I just tried it again, setting the

Automatic document duplication

2012-11-29 Thread Gideon King
I have an application where documents are created which can have other files attached to them. A user can open the file in its native application. I copy the original file to a temporary folder (using NSTemporaryDirectory() and adding the file name to it) and ask NSWorkspace to open it. If

Debugging a spotlight importer problem

2012-08-06 Thread Gideon King
I have a spotlight importer that works just fine when I run mdimport from the command line, but it fails with a sig11 when it runs automatically. I've tested it on two machines under 10.7 and 10.8, with the same results. Can anyone give any tips on how to debug this situation? Thanks Gideon

Closing connections nicely when DO server crashes

2012-08-04 Thread Gideon King
Hi, I am trying to implement LinkBack in my application, and it creates a Distributed Objects connection to send the info to and fro. It all works fine, but if the server application crashes, I get a crash in my application with this backtrace: * thread #1: tid = 0x2203, 0x7fff8aed5b3e

spotlight importer extract file from zip archive

2012-07-25 Thread Gideon King
Hi, I am trying to create a spotlight importer, but my files that I want to index are zip files, and NSTask will not run from the mdimporter process, since it is not blocked by the sandbox. How can I get files from my zipped documents without having to run an NSTask? Thanks Gideon

Re: spotlight importer extract file from zip archive

2012-07-25 Thread Gideon King
Cool, got it working thanks. Gideon On 26/07/2012, at 12:46 PM, Jens Alfke j...@mooseyard.com wrote: On Jul 25, 2012, at 6:57 PM, Gideon King gid...@novamind.com wrote: How can I get files from my zipped documents without having to run an NSTask? Link against libz.dylib? —Jens

Trying to track down a core animation issue

2012-07-19 Thread Gideon King
Hi, I have a problem where it appears that a core animation task is being run on something created in a background thread, but the thread is being removed before the animation has finished. I have checked through my code and don't see anything that could be doing this explicitly, so am

NSWindow styleMask and full screen

2012-07-19 Thread Gideon King
I have an application where sometimes I need to go full screen. While in full screen mode, I need to change the presentation mode so that sometimes the menubar and toolbar are autohiding, and sometimes just not shown. Then when I exit full screen, I reset the values to what they were before I

Re: NSWindow styleMask and full screen

2012-07-19 Thread Gideon King
It turns out that on 10.6+ at least, just setting the button cell to enabled does the trick: NSButton *button = [window standardWindowButton:NSWindowMiniaturizeButton]; NSButtonCell *buttonCell = [button cell]; [buttonCell setEnabled:YES]; Still, it's definitely an Apple bug, and

Re: Icon Overlay on Mac OSX

2012-07-18 Thread Gideon King
You might like to check out CTBadge - there are a couple of minor memory issues in the current release which will be picked up in Xcode's analyze function, but apart from that, it will probably point you in the right direction. http://blog.oofn.net/2006/01/08/badging-for-everyone/ Regards

Re: NSSplitView question - how to implement my own adjustViews style method

2012-07-18 Thread Gideon King
I always use RBSplitView - has all that stuff built in and more… http://brockerhoff.net/blog/tag/rbsplitview/ Seems to work fine for my needs. Regards Gideon On 03/07/2012, at 2:40 PM, Motti Shneor su...@bezeqint.net wrote: Thanks Graham (Sigh…) I was beginning to think I'm stupid or

Re: Problem adding subview to NSScroller subclass

2012-07-08 Thread Gideon King
Excellent, thanks Lee Ann. From the look of the code, the accessory view will be shown all the time. I guess I have a UI decision to make as to whether to have just my zoom controls showing all the time and overlay scrollers (which may look a bit funny, but gives you maximum room), or using

Problem adding subview to NSScroller subclass

2012-07-07 Thread Gideon King
Hi all, I am creating a subclass of NSScroller so that I can add an accessory view. I have worked out the position to add it, and added it as a subview, but it is never drawn. I have overridden the rectForPart: method to adjust the scroller size, and that leaves the gap as it should. I

Re: Problem adding subview to NSScroller subclass

2012-07-07 Thread Gideon King
? Is *that* code getting called? --Andy On Jul 7, 2012, at 4:23 PM, Kyle Sluder wrote: On Jul 7, 2012, at 1:38 AM, Gideon King gid...@novamind.com wrote: I overrode the drawSelf: method and got it to draw the frame of the accessory view, to make sure it was positioned correctly

Re: Problem adding subview to NSScroller subclass

2012-07-07 Thread Gideon King
scrollers and not overlays as per my previous message. Regards Gideon On 08/07/2012, at 11:04 AM, Graham Cox graham@bigpond.com wrote: On 07/07/2012, at 6:38 PM, Gideon King wrote: Has anybody successfully added a subview to an NSScroller? Yes, but more recently I took it out again

Re: Color Panel oddity

2012-06-08 Thread Gideon King
I believe that's what you get if you specify the NSColorPanelWheelModeMask for the picker mask. Since there is only one mode available it doesn't need to display the toolbar. Regards Gideon On 09/06/2012, at 12:12 PM, Dave DeLong davedel...@me.com wrote: Try this:

NSFileManager copyItemAtPath:toPath:error: error on 10.6

2012-05-14 Thread Gideon King
Hi, I am having a problem with using NSFileManager's copyItemAtPath:toPath:error: in OSX 10.6 - this does not cause a problem on 10.7. The code being executed is part of the current version of Sparkle. The following logs show items successfully copied: copy from:

Re: NSFileManager copyItemAtPath:toPath:error: error on 10.6

2012-05-14 Thread Gideon King
OK, I have looked at the user info dictionary of the error, and see the file that is causing the problem: UserInfo: { NSDestinationFilePath = /Users/gideon/Library/Application Support/NovaMind 5/NovaMind 5 5.3.0/NovaMind5.app/Contents/Resources/ruby/lib/libruby-static.a; NSFilePath =

Re: Need help filtering mouse events in an overlay child window

2012-05-12 Thread Gideon King
Hi Michael I have had to do this same thing, and have encountered the same problem. In my case the main thing I wanted to accomplish was to get the scroll view in the main window to reflect the scroll position of my overlay window. It was not working very well, but then in my main window, I

Using services to email file in document based app

2012-05-11 Thread Gideon King
Hi, I would like my document based app to be able to send its files as email attachments. I notice that the Finder has the services option to send a file as an attachment, and kind of thought that something like that might have been built in to the document architecture, but apparently not. It

Re: Using services to email file in document based app

2012-05-11 Thread Gideon King
Thanks Ken, moving it to my window controller got my validRequestorForSendType called, but the services menu now shows up with just one item: Notebook Clipping Setup. So as it stands, this is my code: + (void)initialize { [NSApp registerServicesMenuSendTypes:[NSArray

Converting CGPathAddArcToPoint (or NSBezierPath equivalent) to a fixed number of CGPathAddCurveToPoint calls

2012-04-30 Thread Gideon King
Hi, I am using the CAShapeLayer's ability to animate a path, but the start and end path need to have the same number of segments. I have been using CGPathAddArcToPoint to add the curves to my path. That translates to CGPathAddCurveToPoint calls behind the scenes, but sometimes it adds one

Any clues on what could cause this crash?

2012-04-30 Thread Gideon King
I received this crash report from a user, and have no idea where to look in my code for a cause. I'm assuming from the method names etc that it's having trouble when drawing a CALayer using OpenGL. I really do nothing strange in my code with CALayers. I have a whole bunch of CALayers in a layer

Problem with capturing view contents

2012-04-24 Thread Gideon King
Hi, I have a view I am trying to capture using the following code: NSBitmapImageRep *rep = [view bitmapImageRepForCachingDisplayInRect:[view bounds]]; [view cacheDisplayInRect:[view bounds] toBitmapImageRep:rep]; My view coordinates in a typical test case are as follows: 01_frame =

Re: Example implementation of NSAnimatablePropertyContainer?

2012-03-27 Thread Gideon King
I'd be interested in this too. In the past, I have created a subclass of NSView and just used the animation capabilities without ever inserting it in a view hierarchy, and that worked, but that was just a quick and dirty hack project - I'd like to know how to do it properly… Regards Gideon

notAKeyMarker crash

2012-03-05 Thread Gideon King
Hi, I am getting occasional reports of an exception from users of my software, but they are not able to reproduce it, and nor am I. I have a sheet which has an NSCollectionView on it and a couple of buttons and a slider. The NIB also instantiates an array controller which is used as the

Re: notAKeyMarker crash

2012-03-05 Thread Gideon King
: -[OAApplication beginSheet:modalForWindow:modalDelegate:didEndSelector:contextInfo:] That's definitely not part of Cocoa! You have the source. Dig in to find the problem. On 5 Mar 2012, at 15:15, Gideon King wrote: Hi, I am getting occasional reports of an exception from users of my

Re: iCal Integration

2012-02-24 Thread Gideon King
I don't see anything in the API to detect it - I have encountered calendars that don't support tasks, and if I try to save a task to them, I get an error with code 1025 (CalCalendarNotEditableError), and deal with that in my code. isEditable returns YES for a calendar which only supports

Re: Dumb question about radio buttons

2012-02-24 Thread Gideon King
Not sure about your number of items in your matrix, but you are wanting [sender selectedTag] to get the user's choice. Regards Gideon On 23/02/2012, at 11:58 PM, William Squires wrote: -(IBAction)baseChanged:(id)sender { int choice = [sender tag]; } I always get, user chose

Can't create window context…crash

2012-02-22 Thread Gideon King
Hi all, I am seeing quite a number of reports from users of my software where on the console, there are errors like the ones below, but I haven't been able to reproduce the problem here: 2012-02-21 23:49:05 +0800[3]: kCGErrorIllegalArgument: CGSDeviceCreate: Invalid window 2012-02-21 23:49:05

Re: CGContextSaveGState

2012-02-15 Thread Gideon King
The documentation says it pushes it on to a stack: Pushes a copy of the current graphics state onto the graphics state stack for the context. It also says: To restore your drawing environment to a previously saved state, you can use CGContextRestoreGState. with the clear implication that you

iCal syncing on multiple computers

2012-02-13 Thread Gideon King
Hi, I have some data that is synced with iCal by my application. I get the calendars, and the user selects which one to sync to, and in my data, I save the UID for the calendar we have synced with. Now the user moves to a different computer and can't sync, since the same calendar is not

Re: copy isEqual nightmares

2012-02-12 Thread Gideon King
On 13/02/2012, at 11:54 AM, James Maxwell wrote: But it does beg the question: is there an easy way to test the **identity** of an object? That is, to NSLog the identity of an object, to see if (and how) it's different to a copy that returns YES to isEqual and has the same hash? I guess I

NSDateFormatter, timezones and early dates

2012-01-31 Thread Gideon King
I have just come across a really unexpected thing. I have a date formatter like so: NSDateFormatter *formatter = [[[NSDateFormatter alloc] init] autorelease]; [formatter setDateFormat:@-MM-dd'T'HH:mm:ss.SSSZ]; Now when I use: [formatter stringFromDate:aDate]; It works fine for

willPresentError being called with NSDocumentErrorRecoveryAttempter object

2012-01-16 Thread Gideon King
Hi everyone, I'm trying to resolve a very strange problem. In my document I have implemented willPresentError:, and on Lion when someone opens a locked document and tries to edit it, an error is produced, which I forward to super, which gives people the option of unlocking, canceling, or

Re: willPresentError being called with NSDocumentErrorRecoveryAttempter object

2012-01-16 Thread Gideon King
PM, Gideon King wrote: Hi everyone, I'm trying to resolve a very strange problem. In my document I have implemented willPresentError:, and on Lion when someone opens a locked document and tries to edit it, an error is produced, which I forward to super, which gives people the option

Re: willPresentError being called with NSDocumentErrorRecoveryAttempter object

2012-01-16 Thread Gideon King
Ah, I see. OK, I will create my own internal NSError object pointing to nil, and if I encounter an error in any of my called methods, I'll create an NSError for ti, and if I'm going to return NO, then I'll assign it to the pointer. Thanks for the quick and helpful response Quincey. Regards

KVO willChange and didChange

2012-01-15 Thread Gideon King
Hi all, when I declare a property, something like: @property(readwrite, copy, nonatomic) NSString *foo; I will synthesize it with: @synthesize foo; But then I want to do some special processing when the value is set, so I implement my setter: - (void)setFoo:(NSString *)aFoo { [self

Re: KVO willChange and didChange

2012-01-15 Thread Gideon King
Cool, thanks everybody. Nice that there is such a simple solution. Regards Gideon On 16/01/2012, at 4:41 PM, Gordon Henriksen wrote: Try overriding +[NSObject(NSKeyValueObserving) automaticallyNotifiesObserversForKey:] to return NO for the properties you want to handle manually.

Forcing autosave

2012-01-12 Thread Gideon King
I have a situation where I need my document's contents on disk, even if it's a new document with no changes, so I thought I would just make sure that the document had autosaved before I complete my action on the file, and just pick up the URL of the last autosave from the document and use that.

NSOpenPanel and finding files

2012-01-01 Thread Gideon King
Hi, I'm trying to use an open panel to open a particular type of file (.nmcset). I create an open panel and run it like this: NSOpenPanel *openPanel = [NSOpenPanel openPanel]; [openPanel setCanChooseFiles:YES]; [openPanel setCanChooseDirectories:NO]; [openPanel setAllowsMultipleSelection:NO];

Re: NSOpenPanel and finding files

2012-01-01 Thread Gideon King
Thanks for the suggestion Ken. The file is found in a Spotlight search, and if I search from within the Finder. It is in a folder ~/Temp and is not hidden or otherwise non-indexed. Regards Gideon On 02/01/2012, at 4:58 PM, Ken Thomases wrote: On Jan 1, 2012, at 11:52 PM, Gideon King wrote

CGContextDrawTiledImage crash on 10.5

2011-12-02 Thread Gideon King
I'm hoping someone can remember back to 10.5 days… I am using CGContextDrawTiledImage, and it works absolutely fine on 10.6 and 10.7, but sometimes crashes on 10.5. If anyone else has seen this, and worked out what is going on, I'd love to hear. I can resize the image that I am using to tile

Code signature problem

2011-11-29 Thread Gideon King
Hi, I'm having a problem with code signatures. My app has about 20 executables in it, all of which I sign using the codesign -f -s command. All of them are signed in exactly the same way, and when I run codesign --verify --verbose, it says they are all valid. When I submit the application to

Re: Validating dictionary strings file

2011-11-21 Thread Gideon King
I have filed a report on this. The problem originally exhibited itself in a strings file that was used for localization, and the error report gave no indication which file it was that had the problem, so I included that in the bug report too. Regards Gideon On 21/11/2011, at 5:05 PM, Joar

Validating dictionary strings file

2011-11-20 Thread Gideon King
Hi, I'm trying to use NSDictionary's dictionaryWithContentsOfFile: method and am getting an error: CFPropertyListCreateFromXMLData(): Old-style plist parser: missing semicolon in dictionary. The entire file is of the format: /*some comment */ Some string = Some other string; Clearly there is

Re: Validating dictionary strings file

2011-11-20 Thread Gideon King
Thanks for the plutil tip Brian. It's not supposed to be an old style dictionary - it's just a strings file, and I have the whole thing in English and Spanish - the English one loads fine, and the Spanish one doesn't. Unfortunately seeing as plutil thinks it's supposed to be an old style

Re: Validating dictionary strings file

2011-11-20 Thread Gideon King
Thanks for the suggestions guys - I have found the issues by a binary search process (there were some quotes in the wrong places). I'll keep those ideas in my bag of tricks for if I encounter something similar again. Regards Gideon ___ Cocoa-dev

Re: Implementing Full Screen for 10.7 but app should also run on 10.6

2011-11-14 Thread Gideon King
You could do something like this: #ifndef NSAppKitVersionNumber10_6 #define NSAppKitVersionNumber10_6 1038 #endif #ifndef NSWindowCollectionBehaviorFullScreenPrimary #define NSWindowCollectionBehaviorFullScreenPrimary 1 7 #endif if (floor(NSAppKitVersionNumber)

Re: Implementing Full Screen for 10.7 but app should also run on 10.6

2011-11-14 Thread Gideon King
NSAppKitVersionNumber10_5_2 949.27 #define NSAppKitVersionNumber10_5_3 949.33 #define NSAppKitVersionNumber10_6 1038 Regards Gideon On 15/11/2011, at 3:16 AM, Kyle Sluder wrote: On Nov 14, 2011, at 7:30 AM, Gideon King gid...@novamind.com wrote: if (floor(NSAppKitVersionNumber

App store receipt checking - getting a new receipt

2011-11-12 Thread Gideon King
Hi, I have implemented app store receipt checking, and it all seemed to be going OK, but I needed to change the bundle version number and check a new version, but when I run the application, it seems to download the previously generated receipt from the app store, which of course has the old

Re: Write to file Entitlement

2011-10-31 Thread Gideon King
If you are writing to somewhere inside the sandbox, you can read and write freely, but if outside, then you have to go through the save panel, which behind the scenes stretches your sandbox to include that file. Regards Gideon On 31/10/2011, at 3:27 PM, James Merkel wrote: Reading the

Re: Sandbox issues

2011-10-31 Thread Gideon King
Thanks for the reply Kyle. On 31/10/2011, at 11:21 AM, Kyle Sluder wrote: On Sun, Oct 30, 2011 at 4:46 PM, Gideon King gid...@novamind.com wrote: Further to my previous questions about sandboxing, I have now done more research and experimentation, and the more I find out about it the more

Re: Future for Mac applications

2011-10-31 Thread Gideon King
sandboxing clearly hasn't been nailed down yet. It's also worth remembering that the Mac App Store is not required either, unlike on iOS devices. If you can't or don't want to sandbox, you can distribute elsewhere. Yes, but the App store is a huge publicity opportunity and

Sandbox issues

2011-10-30 Thread Gideon King
Further to my previous questions about sandboxing, I have now done more research and experimentation, and the more I find out about it the more questions it throws up. 1. I have a folder in the Application Support folder that my apps have been using to store and retrieve log data, but even if

Sandboxing question

2011-10-28 Thread Gideon King
Hi All I have an application that I am just moving to using sandboxing, and it currently (before sandboxing) writes log files to a folder in the Application Support folder, then if the program crashes, or the user wants to submit a defect report, it launches another application that picks up

Re: Core Data: Determine if managed object is deleted

2011-10-20 Thread Gideon King
Ooh, I had never noticed that - I just assumed that the method did what you would think. That may be the cause of an issue in my code. Thanks for the heads up. I would tend to try to avoid processPendingChanges if possible since it appears to be a rather expensive operation. Regards Gideon

Re: Code signing issues

2011-10-19 Thread Gideon King
I had not, but now I have - it made no difference - I still got the same cryptic error message. Regards Gideon On 18/10/2011, at 11:29 AM, Graham Cox wrote: On 18/10/2011, at 12:27 PM, Gideon King wrote: • The system interprets the exit status and attempts to obtain a valid receipt

Code signing issues

2011-10-17 Thread Gideon King
Hi, I'm trying to build App store receipt verification into my app. I went through the certificate setup process and believe I have all three keys and certificates successfully installed in my keychain. I then went into my build settings for my project to set the code signing identity. I

Re: Code signing issues

2011-10-17 Thread Gideon King
Thanks for the reply Graham. I'm using Xcode 4.2. Please see comments inline On 18/10/2011, at 9:55 AM, Graham Cox wrote: On 18/10/2011, at 10:34 AM, Gideon King wrote: So I have the following questions: 1. When creating the certificates, 3 certs are created and added to the keychain

Re: Code signing issues

2011-10-17 Thread Gideon King
For Mac development, it appears you need a Mac Developer cert, a 3rd Party Mac Developer Installer cert, and a 3rd Party Mac Developer Application cert. I have these in my keychain, however only 3rd Party Mac Developer Application shows up in Xcode. I can understand that the installer one

Re: Possible causes of attempted layout while textStorage is editing?

2011-09-01 Thread Gideon King
Here is the complete stack trace 2011-08-31 15:25:11 -0400[5]: ERROR - 14764064ms (NMApplication.m:81) -[NMApplication handleRunException:] - NSException Exception encountered: -[AAMainEditingLayoutManager _fillLayoutHoleForCharacterRange:desiredNumberOfLines:isSoft:] *** attempted layout

Re: Possible causes of attempted layout while textStorage is editing?

2011-09-01 Thread Gideon King
Hmmm, I see that there is a place in my code where they can be editing the text view, and then they mouse down in its containing view, and that triggers an event to be posted through NSApp at the end of the event queue and an autorelease being sent to the enclosing view which would eventually

Possible causes of attempted layout while textStorage is editing?

2011-08-30 Thread Gideon King
I am receiving occasional reports from customers who are seeing this error: _fillLayoutHoleForChar acterRange:desiredNumberOfLines:isSoft: *** attempted layout while textStorage is editing. It is not valid to cause the layoutManager to do layout while the textStorage is editing (ie the

Exception getting shared font panel

2011-08-22 Thread Gideon King
I've had a report from a user of the following segv exception on 10.7.1: Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 com.apple.CoreText 0x7fff94955f89 _ZL39CTFontDescriptorsCopyAttributesInternalPK9__CFArrayPK7__CFSetjb + 270 1 com.apple.CoreText 0x7fff94955e5a

Re: Exception getting shared font panel

2011-08-22 Thread Gideon King
Thanks, Peter. How did you work out which was corrupted? Was it just a matter of elimination? Binary search? On 22/08/2011, at 11:02 PM, P Teeson wrote: Does your user have a corrupted Font? I had something somewhat similar with FreeSans.ttf and LibreOffice. Took a while to track down

Save panel exception: parentForItemsInColumn: is not supported for browsers with matrix delegates

2011-08-14 Thread Gideon King
Hi, I have the following code to run a save panel: NSSavePanel *sp = [NSSavePanel savePanel]; [sp setExtensionHidden:NO]; [sp setTitle:NSLocalizedString(@Export image to PNG file, @)]; [sp setRequiredFileType:@png]; [sp

Re: recomendations for creating a beta with date to expire

2011-08-14 Thread Gideon King
I agree, and would like to add that I have done this, and did encounter an issue where people had an expired beta and therefore couldn't use the program until they had downloaded an update, and were annoyed by that - especially if they were on the road and had no internet connection. Although I

What could cause a fast enumeration mutation error in updating tracking areas?

2011-07-29 Thread Gideon King
Hi, I have a problem where a few users of my program are getting the following exception: 0 CoreFoundation 0x7fff862df7b4 __exceptionPreprocess + 180 1 libobjc.A.dylib 0x7fff84b0ff03 objc_exception_throw + 45 2 CoreFoundation 0x7fff863375bf __NSFastEnumerationMutationHandler + 303 3

Re: What could cause a fast enumeration mutation error in updating tracking areas?

2011-07-29 Thread Gideon King
I'll know in a few days when I roll it out to my testers and see if I get the error again. Regards Gideon On 30/07/2011, at 2:14 AM, Raleigh Ledet wrote: Do you have another thread that is doing something with tracking areas? -raleigh On Jul 28, 2011, at 11:33 PM, Gideon King wrote: Hi

Re: A trap with full screen in Lion

2011-07-29 Thread Gideon King
Thanks for that suggestion Martin - I hadn't thought of looking at parent window. I kind of think that is an implementation detail behind the scenes that we shouldn't have to worry about in our code, so will file a bug report about it as Corbin suggested, and hopefully it will either be made to

A trap with full screen in Lion

2011-07-28 Thread Gideon King
I just came across a bit of an issue with the full screen mode in Lion: if you have a view and use [[self window] windowController] to get at your window controller, it will return nil in full screen mode. The window gets swapped out with an NSToolbarFullScreenWindow, which doesn't have a

Re: A trap with full screen in Lion

2011-07-28 Thread Gideon King
Sorry - missed an important bit of info - this applies for a view that is in the toolbar. So far as I am aware, it doesn't apply to views in your main window (at least my views in my main window still appear to always return the right thing). On 29/07/2011, at 12:38 PM, Gideon King wrote: I

NSView trackingAreas and fast enumeration mutation

2011-07-22 Thread Gideon King
Hi All, I'm not sure how to track down this issue. A few users of my application have reported the following crash. 0 CoreFoundation 0x7fff8045e7b4 __exceptionPreprocess + 180 1 libobjc.A.dylib 0x7fff8354cf03 objc_exception_throw + 45 2 CoreFoundation 0x7fff804b65bf

Re: Why are these objects still faults?

2011-07-19 Thread Gideon King
Interesting idea. The structure is that I have a grandparent with just a single attribute, a parent which has parent and children (self referential) relationships, and a couple of one way to-one self referential relationships on the topic node object itself, so there are a few things going on

Why are these objects still faults?

2011-07-18 Thread Gideon King
Hi, I'm doing a fetch of some objects like this: entity = [NSEntityDescription entityForName:kNMTopicNodeEntityKey inManagedObjectContext:[self managedObjectContext]]; request = [[NSFetchRequest alloc] init]; [request setEntity:entity]; [request setRelationshipKeyPathsForPrefetching:[NSArray

  1   2   3   4   >