Re: Apple Sample Code WWDC 2010 session 114 (2551)

2013-11-08 Thread 2551
For all those interested: https://www.dropbox.com/s/nqdsguiap4qs9ec/WWDC_2010_114.zip Best Phil http://applehelpwriter.com On 9 Nov 2013, at 01:54, Brian Clark wrote: > > On Nov 8, 2013, at 11:18 AM, 2551 <2551p...@gmail.com> wrote: > >> I have now been fortunate to receive a copy of the co

NSStackView basics

2013-11-08 Thread Tom Harrington
I'm trying to use NSStackView in what should be the most basic way possible. I create the stack view and add two subviews. But only one of them is ever visible. I'm creating the stack view in code (in my app delegate, for purposes of a test project): NSStackView *stackView = [NSStackView stac

CGAffineTransformScale does not send it's scale when using UIDynamicAnimator

2013-11-08 Thread colo0logo
I am simply trying to understand the way to use updateItemUsingCurrentState and how to send a scaled UIView or UIImageView to the animator so I can have a large box and small box for physics tests on viewDidLoad. I want to learn how to pass it this info so I can dynamically change the size later in

Re: Resolving a file reference from the iTunes plist

2013-11-08 Thread Jens Alfke
On Nov 2, 2013, at 10:39 AM, Charles Constant wrote: > In previous versions, iTunes stored its library location as an 'alias ref', > in the iTunes plist, with the key 'alis:1:iTunes Library Location'. In the > new version, iTunes 11, it stores the location with the key > 'RDoc:132:Documents' usi

Re: Getting mouse clicks when the main loop is busy

2013-11-08 Thread Graham Cox
Hi Fritz, Kyle. First off, Kyle is quite right, it’s the -nextEventMatchingMask: I needed. In fact that’s where I started, but didn’t quite get all the pieces lined up. I was only fetching mouse down events, and passing them directly to the button for tracking. That worked, except that the high

Re: Apple Sample Code WWDC 2010 session 114 (2551)

2013-11-08 Thread Brian Clark
On Nov 8, 2013, at 11:18 AM, 2551 <2551p...@gmail.com> wrote: > I have now been fortunate to receive a copy of the code from a list member. > I’m also grateful to several others that also kindly offered me the code. I'm sure there are others interested in this code, if not now than for future

Re: Getting mouse clicks when the main loop is busy

2013-11-08 Thread Fritz Anderson
On 8 Nov 2013, at 11:16 AM, Graham Cox wrote: > What’s the proper way to do this? I *can* open the file on another thread and > let the main thread run normally, and that’s fine, but I do need a solution > that works for when the file is opened on the main thread. With the humblest intention i

Re: Getting mouse clicks when the main loop is busy

2013-11-08 Thread Kyle Sluder
> On Nov 8, 2013, at 9:16 AM, Graham Cox wrote: > > Unfortunately, it doesn’t work: the mouse clicks are not received and/or > processed (I’m not sure which). The Cancel button is just an ordinary button, > and if the dialog is displayed as a window without doing any work, I can > click the bu

Getting mouse clicks when the main loop is busy

2013-11-08 Thread Graham Cox
Hi all, I have the need to display a progress dialog while I open a huge file. The file may be opened on the main thread, and the progress notifications are sent synchronously. Since the main thread is blocked doing the file opening work, I force the window to redraw by directly calling its -d

Re: NSCustomImageRep and NSImage setSize

2013-11-08 Thread Graham Cox
Hi Mathew, I think you need to set it to NSImageCacheNever. This turns off all of the internal caching mechanism, so your rep, if it’s the only rep in the image, will always be the one to draw. It’ll only be as pixellated as your implementation allows, which should be not at all, right? —Graha

How to tell if a file is writable in sandboxed mode?

2013-11-08 Thread Oleg Krupnov
I’m trying to use -[NSFileManager isWritableFileAtPath:], but when it returns NO, I’d like to know if it’s “no” because the app simply doesn’t have access to this path due to sandboxing, or is it “no" because the file doesn’t have write permissions set in its file attributes? Is there a way to dis

Re: Why IBOutlet don't work under NSTableCellView?

2013-11-08 Thread Kyle Sluder
On Nov 8, 2013, at 8:06 AM, Charles Srstka wrote: > > Views inside view-based table views can't have references, whether through > outlets or bindings, with anything but the table view's delegate. If you give > your object an outlet to the table's delegate, and then give the table's > delegat

Re: Why IBOutlet don't work under NSTableCellView?

2013-11-08 Thread Charles Srstka
On Oct 30, 2013, at 4:49 AM, 周章林 wrote: > Hi, all, > > I am trying to use NSTableView in our project, and I customized class which > inherit NSImageView, that's MyImage. In MyImage, I declared a property > (IBOutlet) "ref". Then I insert this customized view to NSTableCellView in > Interface Bui

Re: Why IBOutlet don't work under NSTableCellView?

2013-11-08 Thread Bryan Vines
Hello, I'm just beginning to explore view-based tableviews myself. When I build and run this project, Xcode shows two warnings of interest: - Outlet 'ref' of 'My Image' is connected to 'My Reference,' an invalid destination (Objects inside view based table views may only be connected to the t

Re: SKIndexAddDocument crashing

2013-11-08 Thread Mark Wright
FWIW it crashes on mine too (not too surprising, same Xcode and OS). It doesn’t crash if you replace the crashing line with: SKIndexAddDocumentWithText(searchIndexFile, doc, NULL, false); I don’t know if that’s any use to you (never used the framework). I think it’s failing because it’s not

Re: Apple Sample Code WWDC 2010 session 114

2013-11-08 Thread 2551
I have now been fortunate to receive a copy of the code from a list member. I’m also grateful to several others that also kindly offered me the code. I’d been banging my head on the desk over this problem for nearly a week. It took 28 minutes for the list to answer my wishes. It took me about t

Re: NSCustomImageRep and NSImage setSize

2013-11-08 Thread Graham Cox
On 30 Oct 2013, at 5:14 am, Mathew Eis wrote: > I am trying to get an NSCustomImageRep to properly “react” (e.g. redraw) > after a NSImage setSize call. My understanding is that the size property of an image is not directly related to the sizes of the reps within it. Initially, the reps that

Re: Mutually exclusive item filtering-comparing

2013-11-08 Thread Joseph Dixon
Let’s assume the data source sorts items with one handed weapons at the top of the list and two handed weapons at the bottom. Also assume the data source knows the row index of the first two handed weapon. Now we can test for one or two handed weapons by comparing the row index to that of the fi

NSScrollView and autolayout

2013-11-08 Thread Jozef Dransfield
I have seen a previous discussion about this topic in the archives but I seem to be having a new problem related to Mavericks. I have a View Based NSTableView set as the document view of an NSScrollView with everything using auto layout. After upgrading to mavericks my scrollview no longer scro

Resolving a file reference from the iTunes plist

2013-11-08 Thread Charles Constant
Hello gang, I noticed upon upgrading to iTunes 11, that iTunes has changed the manner in which it remembers the path to its library. This is a bummer, as I wrote myself a script to juggle my multiple iTunes Libraries, and it does''t work anymore. In previous versions, iTunes stored its library lo

NSCustomImageRep and NSImage setSize

2013-11-08 Thread Mathew Eis
Hello List, I am trying to get an NSCustomImageRep to properly “react” (e.g. redraw) after a NSImage setSize call. I am writing a NSCustomImageRep class for a resolution independent image format (e.g. like NSPDFImageRep and NSEPSImageRep). However, I can’t get it to properly account when the s

Apple Sample Code WWDC 2010 session 114

2013-11-08 Thread 2551
Hi folks I’m desperately trying to track down some Apple sample code that was featured at the WWDC 2010, related to session 114, entitle d ‘Advanced Cocoa Text Tips and Tricks. The video is available on Apple’s Developer forum and iTunes University, but the sample project used in the video is