Re: Disabling menu items

2017-10-06 Thread Kevin Perry
This should be handled automatically by NSDocumentController’s implementation of -validateUserInterfaceItem: / -validateMenuItem:. Any chance you’re overriding either of those methods and returning YES for menu items you don’t own (instead of calling super)? > On Oct 6, 2017, at 4:13 PM, Shane

Re: Repository of older (outdated) PDF Guides?

2017-05-19 Thread Kevin Brock
I’ve got a collection here: https://www.dropbox.com/sh/dlhxh9birw1lhp9/AABA3_yvSRwjOBA84LxD3RzIa?dl=0 Ranging from 2010-2014. Kevin > On May 11, 2017, at 00:32, Nimesh Neema wrote: > > I have a few lying around here: > > https://www.dropbox.com/sh/

Re: Cocoa-dev Digest, Vol 14, Issue 124

2017-04-11 Thread Kevin Hardman
might also check out the developer forum discussion <https://forums.developer.apple.com/message/79226>. —kevin > On Apr 5, 2017, at 5:33 PM, cocoa-dev-requ...@lists.apple.com wrote: > > Since switching to macOS 10.12 Sierra I am getting tons of document handling > messages

Re: Document drafts

2017-03-13 Thread Kevin Perry
Drafts are documents that have been autosaved in a user-visible location (i.e. the app’s iCloud container) and therefore aren’t typical “Untitled” documents from the programmer’s perspective as their fileURL property is not nil. However, they still behave like “Untitled” documents in that they w

Re: UTI and/or bundle-IDs with small letters

2017-03-03 Thread Kevin Hardman
, conFormsToType: String). —kevin 2.3.3. Character Case For all parts of the DNS that are part of the official protocol, all comparisons between character strings (e.g., labels, domain names, etc.) are done in a case-insensitive manner. At present, this rule is in force throughout the domain system without

Re: Intercept Save when closing NSDocument

2017-02-10 Thread Kevin Perry
NSSavePanelDelegate is probably the approach you want to take, with -[NSDocument prepareSavePanel:] being the most convenient means of inserting your delegate. > On Feb 10, 2017, at 9:41 AM, Quincey Morris > wrote: > > On Feb 10, 2017, at 08:12 , Trygve Inda wrote: >> >> I would like to dis

View Confusions

2016-10-26 Thread Kevin W Pitcher
Hi All, Simple problem of NSDocument with a Storyboard NSDocument loads fine but in the NSWindowController windowDidLoad self.document is NULL Where and when can I get at my document data to pass it onto the NSTabViewController and it’s NSViewController for Binding? Any Dev Videos to explain th

Re: Codesign broken in 10.11.4

2016-04-07 Thread Kevin Meaney
This may be relevant, though it does talk about issues with pref panes as well. http://mjtsai.com/blog/2016/03/31/gatekeeper-bug-in-mac-os-x-10-11-4/ > On 7 Apr 2016, at 15:13, Trygve Inda wrote: > > My app is built on 10.11.3. It is a prefPane with one command line tool and > three app bundles

Re: Caching CIContext?

2015-11-27 Thread Kevin Meaney
. But that might be slower than just recreating the CIContext each time. Kevin > On 27 Nov 2015, at 13:39, thatsanicehatyouh...@me.com wrote: > > Hi, > > I have an NSImageView with a custom drawing routine. It works as expected > most of the time, but sometimes the image is not

Re: How to get a condensed San Francisco UIFont?

2015-10-07 Thread Kevin Meaney
I believe the CoreText attributes should work. The attribute key of kCTFontTraitsAttribute with a value of TraitCondensed might do the trick. Kevin > On 8 Oct 2015, at 00:01, David Hoerl wrote: > > I'd like to do is get a condensed - or better yet - a bold (semi-bold) > con

Re: Lost memory, GCD, dispatch sources, ?Cocoa bindings & User interface

2015-09-16 Thread Kevin Meaney
t and collecting data to stay running even if the app displaying the results dies. When the user restarts the application it connects to the still running service. Kevin Sent from my iPad > On 16 Sep 2015, at 22:28, Jean Suisse wrote: > > >> But I agree that this all (meaning th

Re: Nullability annotation "best practice"

2015-08-16 Thread Kevin Meaney
might not annotate private methods, but I think a blanket ruling does not make sense. Kevin > On 16 Aug 2015, at 18:47, Quincey Morris > wrote: > > On Aug 16, 2015, at 09:10 , Seth Willits wrote: >> >> Really? This list has no opinions? That's hard to imagine :-)

Re: XPC Services & non-Sandboxed Applications

2015-07-18 Thread Kevin Meaney
http://blog.yvs.eu.com/2013/07/cocoa-interprocess-communication-with-xpc/ <http://blog.yvs.eu.com/2013/07/cocoa-interprocess-communication-with-xpc/> But I think you will still get value from watching the video. Kevin Kevin Meaney Zukini Ltd Sheffield S2 3LN Company no: 9491832 > On 18 Jul 2015, at 1

Re: Problem having a framework working in one of my targets (a screensaver)

2015-07-03 Thread Kevin Meaney
ke Ash article. But if I do otool -D on the framework then I see @executable_path … etc. Making me conclude the rpath information was stored separately in the binary to the install name so my thinking was that modifying the install name wouldn’t help. Kevin __

Re: Problem having a framework working in one of my targets (a screensaver)

2015-07-03 Thread Kevin Meaney
First result is the mike ash article I included in my first e-mail to this thread. Kevin > On 3 Jul 2015, at 10:48, Roland King wrote: > > www.google.com <http://www.google.com/> > > "mike ash install_name_tool” > > >> On 3 Jul 2015, at 17:45, Juanjo C

Re: Problem having a framework working in one of my targets (a screensaver)

2015-07-03 Thread Kevin Meaney
stion will be the screen saver process that loads Juanjo’s screensaver plugin. There is possibly one solution. Modify the name using install_name_tool to /Library/Frameworks and install the Framework to /Library/Frameworks. I still think going to the developers of the framework is t

Re: Problem having a framework working in one of my targets (a screensaver)

2015-07-03 Thread Kevin Meaney
framework and be clear in release notes that the Runpath Search paths will need to be updated in their customers applications. Kevin > On 3 Jul 2015, at 09:44, Juanjo Conti wrote: > > I can do that. What do I ask, to change installation directory to @rpath? > Would that break th

Re: Problem having a framework working in one of my targets (a screensaver)

2015-07-03 Thread Kevin Meaney
Ah, You might need to talk to the makers of the framework then. Kevin > On 3 Jul 2015, at 09:27, Juanjo Conti wrote: > > Paddle.framework is not one of my targets, it's built by a third party, so I > can't change it. It's this > https://github.com/PaddleHQ/Ma

Re: Problem having a framework working in one of my targets (a screensaver)

2015-07-03 Thread Kevin Meaney
ath/../Frameworks as well. Kevin > On 3 Jul 2015, at 08:51, Juanjo Conti wrote: > > I think ScreensaverNinja target does not affect Saver target. > > The Saver target builds a screen saver (a plugin in terms of XCode) > I'm trying to use the Paddle framework in both, a deskto

Re: Problem having a framework working in one of my targets (a screensaver)

2015-07-03 Thread Kevin Meaney
You need to set the Runpath Search paths in your ScreensaverNinja target to @loader_path/../Frameworks not the target Saver which I’m assuming is building your framework. I’m assuming here your ScreenSaver is built from the ScreensaverNinja target (the one with the application icon). Kevin

Re: Problem having a framework working in one of my targets (a screensaver)

2015-07-02 Thread Kevin Meaney
eed by setting Runpath Search Path to loader_path/../Frameworks. Once your have changed the installation directory when building the framework you will also need to change the Runpath Search Path when linking your application. I hope that helps. Kevin > On 2 Jul 2015, at 20:12, Juanjo Conti wrote:

Re: Simple Swift question

2015-06-30 Thread Kevin Meaney
Also the nifty new defer statement works well along with multiple guards if you need to do any cleanup when exiting the scope. The combination is great. Kevin > On 29 Jun 2015, at 23:43, Rick Mann wrote: > > >> On Jun 29, 2015, at 15:35 , Jens Alfke wrote: >> >&g

Re: Obtaining an CIImage from an unbounded CIFilter?

2015-06-21 Thread Kevin Meaney
You crop it using the CICrop filter. > On 19 Jun 2015, at 22:56, Carl Hoefs wrote: > > I'm using CoreImage in a Cocoa app and I’m trying to obtain the outputImage > (CIImage) of a CICircleSplashDistortion CIFilter. I know that there are > certain filters whose output is unbounded, such as this

Re: Language options: Objective-C, Swift, C or C++?

2015-06-16 Thread Kevin Meaney
iOS) && arch(x86_64)) to exclude. Kevin >> And now I know what Kyle looks like too! > > What’s the video? > > > > ___ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > Please do not post admin

Re: [PSA] OSStatus.com -- Error code lookup

2015-05-31 Thread Kevin Meaney
Hi Seth, Thanks for this. It is a great resource. I just tried to embed a link to a search for all the CoreVideo error codes into a tweet, but twitter doesn’t like the tick mark as a character in a url. Can you change that? Kevin > On 31 May 2015, at 05:46, Michael David Crawford wr

Re: IB_DESIGNABLE - anyone got it to work?

2015-05-12 Thread Kevin Meaney
’t find it now and > neither can google. Correct, the custom control does not have to be in a framework. I should clarify from my previous e-mail that my custom control is not in a Framework, but it does call into a framework to do the drawing which is unrelated to any IB_DESIGNABLE requirements.

Re: IB_DESIGNABLE - anyone got it to work?

2015-05-12 Thread Kevin Meaney
framework path to @rpath and switch to loading it using @loader_path. It works now, but does seem fragile. Kevin Sent from my iPad > On 12 May 2015, at 07:43, Graham Cox wrote: > > I’m exploring the use of the new IB_DESIGNABLE macro to preview a custom view > live in IB. &

Re: Rotate a standard Cocoa control?

2015-05-10 Thread Kevin Meaney
the value from the position so that the relationship between position and value just requires the evaluation of the equation. Kevin > On 10 May 2015, at 05:38, Steve Mills wrote: > > On May 9, 2015, at 23:20:08, Graham Cox wrote: >> >> Me too, which is why it does

Re: Does "- replaceItemAtURL: withItemAtURL: backupItemName: options: resultingItemURL: error:" handle cross-volume moves?

2015-03-30 Thread Kevin Perry
> On Mar 30, 2015, at 5:17 PM, Daryle Walker wrote: > >> On Mar 30, 2015, at 7:59 PM, Kevin Perry > <mailto:kpe...@apple.com>> wrote: >> >> -replaceItemAtURL:… relies on the atomicity of the POSIX rename() function >> in order to safely do its ope

Re: Does "- replaceItemAtURL: withItemAtURL: backupItemName: options: resultingItemURL: error:" handle cross-volume moves?

2015-03-30 Thread Kevin Perry
Hi Daryle, -replaceItemAtURL:… relies on the atomicity of the POSIX rename() function in order to safely do its operation. Since rename() doesn’t work across volumes (returning EXDEV), the two URLs must be on the same volume. If you’re using a temporary directory with replaceItemAtURL:…, you wa

Re: Why is NSString.UTF8String unavailable in Swift?

2015-03-21 Thread Kevin Meaney
Sent from my iPad > On 21 Mar 2015, at 23:41, Jens Alfke wrote: > > >> On Mar 21, 2015, at 2:13 PM, Quincey Morris >> wrote: >> >> Well, “String” is not “NSString”. > > Sure, but it’s bridged with NSString. The “Using Swift With Cocoa” book says: > “Swift automatically bridges between th

Re: Mac OS X - Inter-Application Communications

2015-03-06 Thread Kevin Meaney
gt;> <https://devforums.apple.com/community/mac/coreos/xpc> because if you get an >> answer there it is more likely to be well informed. > > Thanks Kevin, I’ll take a look at the XPC forum. > >> I am a little confused by your terminology. I’d call an Application a &g

Re: Mac OS X - Inter-Application Communications

2015-03-05 Thread Kevin Meaney
ence does win out. I wish I could be more certain in my replies but 20 months is long enough for certain details to be forgotten. Kevin ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comment

Re: Mac OS X - Inter-Application Communications

2015-03-03 Thread Kevin Meaney
rvices for example if you have one all encompassing sandboxed App which contains multiple XPC services that do different tasks. You might find the WWDC session 308 from 2012 useful. I’ve an example project on github for a launch agent that uses XPC. I’m sorry I haven’t up

Re: Human-understandable process name

2015-02-13 Thread Kevin Meaney
Apologies. Having just reread that forum post rather than working from what I remembered it is about the relationship between the processes rather than process names. You might still we'll be in luck. Kevin Sent from my iPad > On 13 Feb 2015, at 21:05, Andrew Keller wrote: >

Re: Human-understandable process name

2015-02-13 Thread Kevin Meaney
The answer to this question on devforums suggests you might be out of luck. https://devforums.apple.com/message/1092608#1092608 Sent from my iPad > On 13 Feb 2015, at 21:05, Andrew Keller wrote: > > Hello all, > > I’m not sure if this is the correct list, but I figure I’ll start somewhere. >

Re: Crash in libsystem_kernel.dylib`__workq_kernreturn:

2015-01-25 Thread Kevin Meaney
What are you using for memory management then? Manual, GC? Sent from my iPad On 25 Jan 2015, at 22:57, Trygve Inda wrote: >>> On Jan 25, 2015, at 12:33 , Trygve Inda wrote: >>> >>> It does seem like if I remove a call to >>> >>> NSData* imageData = [[self myImageRep] >>> representationUsingT

Re: CVPixelBuffer and Color profiles

2015-01-19 Thread Kevin Meaney
And what I wrote is here: https://github.com/SheffieldKevin/attributesforpreset/blob/master/attributesforpreset/output.txt Sent from my iPad > On 20 Jan 2015, at 01:39, Kevin Meaney wrote: > > Forgot to mention. I wrote a little something a few days ago that iterates > throug

Re: CVPixelBuffer and Color profiles

2015-01-19 Thread Kevin Meaney
that led me to the Wikipedia pages. Kevin Sent from my iPad > On 19 Jan 2015, at 17:53, Quincey Morris > wrote: > >> On Jan 19, 2015, at 04:02 , Kevin Meaney wrote: >> >> What I'd like to be able to do is to compare profiles obtained this way with &

Re: CVPixelBuffer and Color profiles

2015-01-19 Thread Kevin Meaney
On 19 Jan 2015, at 17:53, Quincey Morris wrote: > On Jan 19, 2015, at 04:02 , Kevin Meaney wrote: >> >> What I'd like to be able to do is to compare profiles obtained this way with >> what I think must be AVFoundation's equivalent e.g.: >> &g

Re: CVPixelBuffer and Color profiles

2015-01-19 Thread Kevin Meaney
color property keys above) I'm creating from individual frames? It would be ideal if I could keep everything using the same profile color space in my processing pipeline. Kevin On 19 Jan 2015, at 01:56, Quincey Morris wrote: > On Jan 18, 2015, at 17:22 , Kevin Meaney wrote: &g

CVPixelBuffer and Color profiles

2015-01-18 Thread Kevin Meaney
t the CGBitmapContext and CVPixelBuffer view the pixel data in the same way from a color matching perspective? Kevin Sent from my iPad ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Co

Re: Debugging memory leak in NSURLSession with ARC

2015-01-13 Thread Kevin Meaney
leaks, not bugs. Kevin On 13 Jan 2015, at 10:21, Kevin Meaney wrote: > On 13 Jan 2015, at 02:51, Graham Cox wrote: >> >>> On 13 Jan 2015, at 12:21 pm, Roland King wrote: >>> >>> Did you read the devforums thread I pointed you at a couple of weeks ago

Re: Debugging memory leak in NSURLSession with ARC

2015-01-13 Thread Kevin Meaney
lection. In desperation I looked at things using Activity Monitor's memory section and turned on the columns Real Mem, Shared Mem, and Purgeable Mem. In my case what I was seeing as a leak matched with the memory marked as purgeable. Exactly what is meant by purgeable I don't know

Re: Using AV Foundation to record m3u8 stream to disk

2014-12-15 Thread Kevin Meaney
ommend his book learning avfoundation. Kevin Sent from my iPad > On 15 Dec 2014, at 02:57, Graham Cox wrote: > > Just an update on this, since I've made some useful progress, but I'm a bit > stuck again. > > > I am able to download the video streams and write

Re: PList Data Typing

2014-12-15 Thread Kevin Bracey
Thanks Jens, You’re fantastic! Have a great holiday season to all, and thanks for all the help over the years! On 16/12/2014, at 11:28 am, Jens Alfke wrote: > >> On Dec 15, 2014, at 2:10 PM, Kevin Bracey wrote: >> >> How can I tell if the Value is a Boolean or Numbe

PList Data Typing

2014-12-15 Thread Kevin Bracey
as 0 and 1 are valid values for a number. cheers Kevin ___ 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/Unsubs

AVFoundation error messages when getting frames from video tracks

2014-12-12 Thread Kevin Meaney
I've got the following code snippet which is part of code that creates a CGImage. The CGImage is created but the last line of this code snippet triggers the output of an error message to the console. The self._movieAsset is an AVURLAsset created from a local file on disk. I've tried some variati

Revert almost working

2014-12-02 Thread Kevin Bracey
Document stays the same. Strangely, if I quit then open the App again there is the reverted document. Does anyone know what I’m missing? other than my sanity. cheers Kevin ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: Crash with ARC enabled on Xcode 6.1

2014-10-23 Thread Kevin Meaney
Personally I'd try and not call any objective-c code from a C++ static object. If it did look the appropriate solution then I'd make sure I was comfortable with my knowledge of the objective-c runtime and the order in which things are called before main is called. Kevin On 23 Oct 2

Re: Crash with ARC enabled on Xcode 6.1

2014-10-23 Thread Kevin Meaney
you can create static C++ objects that results in objective-c being called it is an easy way to make difficult to track crashes. I'd like confirmation from an apple engineer that my understanding is correct. My quick perusal of the docs didn't find the info I was after. Kevin > Than

Re: Crash with ARC enabled on Xcode 6.1

2014-10-22 Thread Kevin Meaney
Your not creating a static C++ object anywhere are you? One that creates the dictionary before main gets called by any chance? Kevin Sent from my iPhone > On 22 Oct 2014, at 22:45, Beinan Li wrote: > > Note, the initial crashing function is merely translating a C++ enum to the >

Re: bundleForClass in Swift

2014-10-19 Thread Kevin Meaney
my test target to access resources needed by the tests I do: let testBundle = NSBundle(forClass: MovingImagesFrameworkiOSSwift.self) Where MovingImagesFrameworkiOSSwift is the Swift class. Kevin ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Ple

Re: Passing a swift function to objective-c

2014-10-18 Thread Kevin Meaney
geFunction:(CGImageRef (^)(NSDictionary *))createImageFunction And when calling it from the swift code I call it like so: imageProvider.applyMyCreateImageFunction?(makeImage) The question mark was necessary to evaluate whether the optional protocol method had been implemented or not. Ke

Re: Passing a swift function to objective-c

2014-10-18 Thread Kevin Meaney
ol no longer compiles. Like you I've tried the use of the optional and playing around with casting but I've not actually got the code to compile this way. Kevin ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admi

Re: Passing a swift function to objective-c

2014-10-17 Thread Kevin Meaney
Thanks Roland. On 17 Oct 2014, at 00:20, Roland King wrote: > >> On 17 Oct 2014, at 6:13 am, Kevin Meaney wrote: >> >> Hi, >> >> I'm beginning to feel this above my pay grade as I can't seem to work it out. >> >> I have a framework i

Passing a swift function to objective-c

2014-10-16 Thread Kevin Meaney
a long way off. There's an extra () in there and an extra !? at the end that I really don't know how to interpret. Also I don't know how to convert the result of CGImageSourceCreateImageAtIndex to a Unmanaged as a return value. I've been through var

Re: Proper way to retain member of AppDelegate?

2014-10-15 Thread Kevin Meaney
ostly a description of my experiments and their results to determining when objects end up in the autorelease pool so that they are kept alive when you think you have no more strong links to them. http://blog.yvs.eu.com/2013/05/experimental-arc/ I hope you find these helpful. Kevin On 15 Oct

Re: Concurrent tasks are getting hung up

2014-10-10 Thread Kevin Meaney
On 10 Oct 2014, at 17:40, Scott Ribe wrote: > On Oct 10, 2014, at 10:20 AM, Kevin Meaney wrote: > >> Now I've been optimizing to maximize throughput for processing image files... > > Things depend VERY much on what exactly you're doing. I've optimized for

Re: Concurrent tasks are getting hung up

2014-10-10 Thread Kevin Meaney
optimizing to keep the system and their application responsive whilst getting stuff done with as little overhead as possible which implies fewer concurrent operations not more. Also you don't always know when a operation you spawn might start some task that then spawns more concurrent operations.

Re: iOS Category to match OS X category

2014-10-07 Thread Kevin Meaney
as a name and a filter attribute. This way I get the behaviour I need and it works for both iOS and OS X. Nothing clever about it but it's nice having a common solution for both. Kevin On 7 Oct 2014, at 16:00, Jens Alfke wrote: > >> On Oct 7, 2014, at 1:09 AM, Kevin Meaney wrote

iOS Category to match OS X category

2014-10-07 Thread Kevin Meaney
associated objects/references. I'm not comfortable with this solution, it feels too much like a hack so I'm asking a couple of questions before going ahead. Is there an alternative less hacky solution I've missed? Am I being too cautious about

Re: NSUserDirectory returns nil

2014-09-25 Thread Kevin Perry
NSUserDirectory refers to the “Users” directory, which exists only in the “System” domain (“/Users"). The “User” domain is the home directory (“~”). The combination of NSUserDirectory and NSUserDomainMask results in a nonsensical and nonexistent path (“~/Users”) so it returns nil/empty instead.

Re: Class Introspection with class_copyMethodList and class methods.

2014-08-26 Thread Kevin Meaney
I think you might need objc_getMetaClass. See https://github.com/nst/RuntimeBrowser/blob/master/model/ClassDisplay.m For how it is used. Kevin On 26 Aug 2014, at 15:06, Alex Zavatone wrote: > I've been using the obj runtime to dump class methods, protocols, Ivars and > pro

Re: How to make a LaunchAgent

2014-08-11 Thread Kevin Meaney
aunchagents-and-xpc/ and https://github.com/SheffieldKevin/LaunchAgent/ Kevin ___ 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)

Re: Talking to other apps

2014-08-04 Thread Kevin Meaney
?" I think is most relevant as there is some discussion of different options. Kevin ___ 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: Talking to other apps

2014-08-04 Thread Kevin Meaney
When you say app-friend, what do you mean? Another application? An XPC service? Some other kind of service? If your App is sandboxed and the service is not an xpc service embedded in your application then I think your pretty much out of luck. Kevin On 4 Aug 2014, at 07:54, Gerriet M. Denkmann

Re: Taking screen shots

2014-06-18 Thread Kevin Meaney
calling of draw rect within a view hierarchy may not apply. Are there other issues that will hurt me when drawing directly? Kevin On 18 Jun 2014, at 17:47, Kyle Sluder wrote: > On Wed, Jun 18, 2014, at 09:01 AM, Kevin Meaney wrote: >> Drawing happens when I receive an xpc message c

Re: Taking screen shots

2014-06-18 Thread Kevin Meaney
the problem occurred when the window was dragged offscreen and if drawing occurred whilst the window was offscreen. SonOfGrab gets the window content correctly. Thanks for the feedback. I'll have to think about another approach. Kevin > Depending on your application, your listener may

Re: Taking screen shots

2014-06-18 Thread Kevin Meaney
SonOfGrab displays in the composited image window the correct image after following the same steps. Kevin On 18 Jun 2014, at 17:01, Kevin Meaney wrote: > On Jun 18, 2014, at 8:36 AM, Kevin Meaney wrote: >>> >>> The sequence of events are: >>> >>>

Re: Taking screen shots

2014-06-18 Thread Kevin Meaney
On Jun 18, 2014, at 8:36 AM, Kevin Meaney wrote: >> >> The sequence of events are: >> >> 1. Drag window so that it is partially offscreen. >> 2. Draw into the window where part of the drawing happens in the part of the >> window that is offscreen. > &g

Re: Taking screen shots

2014-06-18 Thread Kevin Meaney
. 4. Take a snapshot of the window. 5. Save the snapshot to an image file. 6. Note that the snapshot is missing the part of the drawing that was drawn offscreen, but was visible after step 3. Kevin On 18 Jun 2014, at 16:30, Kyle Sluder wrote: >> On Jun 18, 2014, at 8:24 AM, Kevin Meaney

Re: Taking screen shots

2014-06-18 Thread Kevin Meaney
Apologies, The e-mail with the code went out before I was finished editing. The code shown is that taking the screen capture. But what is captured is not what I see in the window. Kevin On 18 Jun 2014, at 16:24, Kevin Meaney wrote: >> Not really. >> >> Can

Re: Taking screen shots

2014-06-18 Thread Kevin Meaney
> Not really. > > Can you show some code? > dictArray = CGWindowListCopyWindowInfo(kCGWindowListOptionIncludingWindow, (CGWindowID)[self._window windowNumber]); if (dictArray && (CFArrayGetCount(dictArray) > 0)) windowDict = CFArrayGetValu

Taking screen shots

2014-06-18 Thread Kevin Meaney
appened at that time. The size of the window shot is correct it is just as if the drawing didn't happen to that part of the window. I hope I've described this well enough. Is there something I'm missing that will cause CGWindowListCreateImage to captur

Re: Drag and drop onto BSD command line tool?

2014-05-17 Thread Kevin Meaney
I think an applescript droplet, using the "on open" call which then calls "do shell script" with the path to your command and the file that is dropped on it. Kevin On 18 May 2014, at 00:14, Bob Sabiston wrote: > Hello, > > I have a little console app written in

Re: Problem with distributed objects in GUI cocoa apps

2014-04-30 Thread Kevin Meaney
icate between two applications. I would be interested to know how this can be done which is why I'd be interested in hearing the results of your examination of NSXPCConnection. Kevin On 30 Apr 2014, at 07:49, Costas Chatzinikolas wrote: > Thank you very much. > > I had already

Re: ARC Retain Cycles

2014-04-21 Thread Kevin Meaney
n/introduction.html See section: Use Lifetime Qualifiers to Avoid Strong Reference Cycles If you are recommending an alternative to what Apple suggests I'd be quite interested into hearing the reasons. Do you implement an array of weak references to a list of children? Kevin > The

Re: What the actual heck?

2014-04-16 Thread Kevin Meaney
I have received the same e-mail also with a IP starting with 17. Kevin On 16 Apr 2014, at 05:25, Kyle Sluder wrote: > On Tue, Apr 15, 2014, at 09:19 PM, Bryan Vines wrote: >> Hi folks. >> >> So I just got a “Mailing list removal confirmation notice” which said the &

Re: Retain count in non ARC

2014-04-07 Thread Kevin Meaney
I thought the behaviour was different between iOS and MacOS. On iOS nonatomic was the default and atomic on OS X. Kevin Sent from my iPhone On 7 Apr 2014, at 05:28, Graham Cox wrote: > > On 7 Apr 2014, at 1:58 pm, Ben Kennedy wrote: > >> t is for these two reasons that

Re: Random crashes

2014-04-01 Thread Kevin Muldoon
Perhaps do an NSLog on the [NSWindow becomeKeyWindow] / [NSWindow updateWindows] and see if an NSLog on NSNotification willEnterForeground fires before either of those methods. If so, then you have a good chance of closing down whatever SpriteKit is doing when your app is going to background an

Re: Preparation for doing a bug report for CIPageCurlTransition

2014-03-31 Thread Kevin Meaney
Your comments have been really helpful. I've done two things to get everything to work: Firstly, I turned my triangle upside down, and I set alpha for black at 0.7 and for white 0.3. Now it is clear that everything works as it should. Many Thanks. Kevin On 31 Mar 2014, at 20:43, Bill

Re: Core animation layers work on 10.7 but not 10.8 or 10.9

2014-03-31 Thread Kevin Meaney
rk on 10.9.2. When built using Xcode 5.1 these samples crash when you do something that causes a CoreImage filter to be rendered. I hit this over the weekend and again today so I thought I'd add it to the mix. Kevin On 31 Mar 2014, at 15:52, Bill Cheeseman wrote: > I wrote an applicatio

Re: Preparation for doing a bug report for CIPageCurlTransition

2014-03-31 Thread Kevin Meaney
filter setDefaults]; [filter setValue:image forKey:@"inputImage"]; etc. I'm wondering if the CIPageCurlTransition requires that it is set up using filterWithName:keysAndValues? I've not had problems like this with any other filter. Kevin __

Re: Preparation for doing a bug report for CIPageCurlTransition

2014-03-30 Thread Kevin Meaney
Hi Graham, Thanks for replying. I've just tried setting the backside image to be the same as the front image but it still doesn't work. Are you sure you are not using CIPageCurlWidthShadowTransition in your project because that works for me without a problem? Kevin On 30 Mar 2014

Preparation for doing a bug report for CIPageCurlTransition

2014-03-30 Thread Kevin Meaney
lutely no mention of this problem on the interwebs. I'm surprised that I'm first to hit it. The only possibility is that people find it doesn't work and try the CIPageCurlWithShadowTransition filter where assigning the inputBacksideImage does behave as expected and just us

Re: Having problems with the CoreImage CIPageCurlTransition filter

2014-03-28 Thread Kevin Meaney
Apologies, I've just tried this using the CIPageCurlWithShadowTransition filter and it works. It is just the non shadow one that doesn't work. Kevin On 28 Mar 2014, at 21:59, Kevin Meaney wrote: > Hi, > > I've setup a project for working with the CoreImage transi

Having problems with the CoreImage CIPageCurlTransition filter

2014-03-28 Thread Kevin Meaney
to modify them to provide a distinctive backside image anyway. Have others had success applying a backside image to CIPageCurlTransition? If so is there a trick to it that I'm missing Kevin ___ Cocoa-dev mailing list (Cocoa-dev@lists.app

Re: GIF frame duration

2014-03-25 Thread Kevin Meaney
If AppKit is using CoreGraphics for reading/writing GIF files then you might have hit the same issue I did. http://blog.yvs.eu.com/2013/10/creating-gif-animations-using-coreimagequartz/ Kevin On 25 Mar 2014, at 16:10, Andreas Mayer wrote: > > Am 25.03.2014 um 16:58 schrieb Andreas

Re: Image without profile gets an sRGB profile on Mavericks

2014-03-23 Thread Kevin Muldoon
As Sandy says, its not a matter of right/wrong. Simply expected vs. unexpected. Sure, if I save an image with a profile and immediately ask what profile the image is tagged with, I would expect the result of nil, not sRGB. However, there is a certain brilliance to having all nil profiles defau

Re: Image without profile gets an sRGB profile on Mavericks

2014-03-23 Thread Kevin Meaney
I read somewhere that this change was part of Mavericks. I can't track that reference down right now, but I don't think Apple would consider it an error. Kevin On 23 Mar 2014, at 18:14, Leonardo wrote: > I create a jpg RGB image with Photoshop "without" any icc profi

Re: Best way to composite/tile multiple CGImages to one image

2014-03-23 Thread Kevin Meaney
bed below. It was an interesting path to follow to see what helped and didn't. https://github.com/SheffieldKevin/makecoversheet/tree/nsoperationlimited Kevin On 12 Mar 2014, at 17:47, Jim Crate wrote: > > On Mar 8, 2014, at 9:17 AM, Trygve Inda wrote: > >>> On 08 Mar 2014

Re: Getting a serial queue when asking for a concurrent one

2014-03-20 Thread Kevin Meaney
I forgot to mention I'm building against the 10.9 SDK and targeting 10.9 as a minimum. Kevin On 20 Mar 2014, at 20:05, Kevin Meaney wrote: > I'm doing: > > myQueue = dispatch_queue_create("myque", DISPATCH_QUEUE_CONCURRENT); > dispatch_set_target_queue(myQue

Getting a serial queue when asking for a concurrent one

2014-03-20 Thread Kevin Meaney
nforms me that prior to 10.7 the only option for the attr param is DISPATCH_QUEUE_SERIAL. Kevin ___ 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: Best way to composite/tile multiple CGImages to one image

2014-03-19 Thread Kevin Meaney
ches into 1 tool. I'm going to try write a new tool to do that. Perhaps once I've finished it I'll better be able to see how both approaches can be integrated. The information including code etc. you can view at the git hub repository where I've saved stuff. https://github.com/

generateCGImagesAsynchronouslyForTimes:completionHandler

2014-03-18 Thread Kevin Meaney
one from which generateCGImagesAsynchronouslyForTimes:completionHandler was called or not? Does anyone know? Kevin ___ 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.

Re: Best way to composite/tile multiple CGImages to one image

2014-03-08 Thread Kevin Meaney
tch in Practice 308 talks about the use of dispatch_apply. I've written notes about that session here: http://blog.yvs.eu.com/2013/07/blocks-and-grand-central-dispatch-in-practice/ The 2012 WWDC session 712: Asynchronous design patterns with blocks, gcd and xpc is also worth looking at

Re: Draw image within a NSBezierPath with no border

2014-03-06 Thread Kevin Meaney
I'd try clipping before drawing the fill, rather than after. Kevin On 6 Mar 2014, at 16:34, Leonardo wrote: > Hi, I have an oval NSBezierPath path. I fill it with a blue color, > then I draw an image within the same path. And I can still see a blue tiny > border around the

Re: Issues with CIFilters and CALayers

2014-02-27 Thread Kevin Meaney
ier in the filter chain and the name seems like a useful way to find a filter that I want. Kevin On 27 Feb 2014, at 17:38, Gordon Apple wrote: > Thank you. I would have never found that. But what does “enabled” do? Or, > more precisely, what does “not enabled” do? If a filter is n

Re: Issues with CIFilters and CALayers

2014-02-27 Thread Kevin Meaney
CIImage that is the output of a filter is more a recipe about how to generate an image and not a bitmap representation of the image which I think is where your problem lies. Kevin Sent from my iPhone On 24 Feb 2014, at 17:28, Gordon Apple wrote: > Apparently, my comment about not understand

  1   2   3   4   5   6   >