Re: What changed in 10.10 scrollView / scrollPoint?

2014-11-19 Thread Gideon King
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 wrote: > > ... > > >> On 18 Nov 2014, at 12:58 am, Gideon King wrote: >> >> I have always done this using scrollPoint o

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

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

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 wrote: > After downloading the font, if you want to use it of

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 fon

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 w

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 s

Re: How do I debug weak_unregister_no_lock?

2014-01-15 Thread Gideon King
That makes sense. This particular inspector is fairly simple, but it does use one other Omni component on it: some OUIColorComponentSlider objects. If the crash that Omni have seen was also with inspectors using that class, then that would point towards that doing something wrong. I’m kind of t

Re: How do I debug weak_unregister_no_lock?

2014-01-15 Thread Gideon King
14, 2014, at 9:05 PM, Quincey Morris > wrote: >> >>> On Jan 14, 2014, at 18:34 , Gideon King 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

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 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 an OUII

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 wrote: > I tend to agree that it's problematic, but it is deliberate. From the > d

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 t

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 d

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

2013-10-21 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 22

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

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 t

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: com.apple.

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
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" wrote: > > Did you

Re: Sandboxing and ABAddressBook

2013-05-21 Thread Gideon King
#x27;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 >> s

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 inadvertentl

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 curren

Sandboxing and Apple System Log (asl) searches

2013-05-20 Thread Gideon King
Hi, In my application, I want to be able to collect Apple system log information about my application, and have been using asl_new(ASL_TYPE_QUERY); to do so. Unfortunately this needs to access any files in /private/var/log/asl/* I understand that there is no way to add an entitlement that will

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 do

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 wrote: > > Nope. I just tried it again, setting the layer-backed checkboxes all the way >

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 maili

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

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 the

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-03 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 Core

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 wrote: > > On Jul 25, 2012, at 6:57 PM, Gideon King wrote: > >> How can I get files from my zipped documents without having to run an NSTask? > > Link against l

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: 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 I'l

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 st

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 guessing

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 wrote: > Thanks Graham (Sigh…) > > I was beginning to think I'm stupid or something, strug

Re: Icon Overlay on Mac OSX

2012-07-17 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 Gid

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 usin

Re: Problem adding subview to NSScroller subclass

2012-07-07 Thread Gideon King
controls. At least I Regards Gideon On 08/07/2012, at 12:21 PM, Graham Cox wrote: > > On 08/07/2012, at 12:13 PM, Gideon King wrote: > >> Yes, I was using that type of code before too, but it didn't work with the >> new scrollbar styles (drawing artifacts on resi

Re: Problem adding subview to NSScroller subclass

2012-07-07 Thread Gideon King
style scrollers and not overlays as per my previous message. Regards Gideon On 08/07/2012, at 11:04 AM, Graham Cox 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 too

Re: Problem adding subview to NSScroller subclass

2012-07-07 Thread Gideon King
rview-subview relationship established? 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 wrote: >> >>> >>> I overrode the drawSelf: method and got it to d

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 overrod

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 wrote: > Try this: http://www.apptree.net/images/colourpanel.

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 =

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: /Volumes/E010E195-C798-4CF5-9D

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

2012-05-11 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 tu

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

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 d

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

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 curv

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

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 occa

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 content

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 h

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 events

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

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 availa

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 gues

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 fo

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 Gid

Re: willPresentError being called with NSDocumentErrorRecoveryAttempter object

2012-01-16 Thread Gideon King
le >reading method. On 17/01/2012, at 12:07 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 produ

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 duplica

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

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 willCh

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.

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 wr

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]; [op

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 wi

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 th

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 W

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 mai

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 dictio

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

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 wrote: > >> if (floor(NSAppKitVersionNumber) > NSAppKitVe

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) > NSAppKitVersionNumber10

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 bun

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

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

Re: Write to file Entitlement

2011-10-30 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 san

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 I

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 th

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 O

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

Re: Code signing issues

2011-10-17 Thread Gideon King
On 18/10/2011, at 11:16 AM, Graham Cox wrote: > > However, checking apps I build with Xcode versus those I have downloaded from > the App Store shows that indeed, my dev apps do not have a receipt. Why would > they, I didn't "receive" them, I made them. > > Maybe there's a method for obtaining

Re: Code signing issues

2011-10-17 Thread Gideon King
On 18/10/2011, at 10:40 AM, Graham Cox wrote: > > To actually submit an app to the App Store, it needs to be made into a signed > installer package. The Organizer performs this packaging and signing task. > > For running in the Finder for testing, you don't need to bother with it. > However, in

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 on

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

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 assumed

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 re

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

2011-08-31 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 whil

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 textStora

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 w

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 CTFontDescri

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

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

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

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

2011-07-29 Thread Gideon King
ect: one was it - I guess 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

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

2011-07-28 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 A

  1   2   3   4   >