NSUndoManager and runModalForWindow

2009-10-30 Thread Kevin
but that didn't appear to make any difference. If I don't launch the window using runModalForWindow: and simply use makeKeyAndOrderFront:, everything works as expected. Has anyone run into this before? Kevin ___ Cocoa-dev mailing list

Transient Property and lazy-loading issue

2009-11-10 Thread Kevin
nsient property gets called during faulting. 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/Unsubscr

Re: Custom borderless window not getting it's shadow

2009-11-10 Thread Kevin
Does the window have any content? Kevin On Nov 10, 2009, at 11:09 PM, kentoz...@comcast.net wrote: Hi I'm writing a custom borderless window class and am finding that the shadow doesn't appear. Here's a bare bones implementation that shows the problem. - (id) initW

NSUndoManager and runModalForWindow: (again)

2009-11-16 Thread Kevin
ear to make any difference. If I don't launch the window using runModalForWindow: and simply use makeKeyAndOrderFront:, everything works as expected. - Kevin ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin r

Re: NSUndoManager and runModalForWindow: (again)

2009-11-16 Thread Kevin
have confirmed that undo/redo is getting called on the temporary MOC's undo manager as I can have changes in the main window, none of which are affected if I undo/redo in the modal window. Kevin On Nov 16, 2009, at 12:40 PM, Keary Suska wrote: On Nov 16, 2009, at 10:34 AM, Kevin wrote:

Re: NSUndoManager and runModalForWindow: (again)

2009-11-16 Thread Kevin
On Nov 16, 2009, at 1:12 PM, Kyle Sluder wrote: On Mon, Nov 16, 2009 at 10:50 AM, Kevin wrote: I have confirmed that undo/redo is getting called on the temporary MOC's undo manager as I can have changes in the main window, none of which are affected if I undo/redo in the modal w

Re: NSUndoManager and runModalForWindow: (again)

2009-11-16 Thread Kevin
. I'm perplexed as to why the undo manager behaves this way. I've read the docs over and over again and aside from setRunLoopModes: method, which I'm calling with NSModalPanelRunLoopMode, there's no mention of any special considerations when using it with modal window

Inactivity Timer

2009-11-24 Thread Kevin
userInfo:nil repeats:NO]; [inactivityTimer retain]; } - (void)stopTimer { if ( inactivityTimer == nil ) return; [inactivityTimer invalidate]; [inactivityTimer release], inactivityTimer = nil; } - Kevin ___ Cocoa-dev mailing

Edit text bounding boxes

2010-12-24 Thread kevin
f the placeholder view in the window. None of it helps. I kind of feel like the view/window needs to be nudged/kicked in some way to achieve the same result that I get when resizing the window using the mouse, but I'm currently at a loss. Thoughts, help please. Kevin

Problems with edit text bounding box cell inside a NSOutlineView

2011-01-03 Thread kevin
I sent the following just before Christmas and haven't had any response. Hopefully now it is a New Year there will be more people around and someone can help. Kevin Hi, I am having trouble with the edit text bounding box for both a NSTextFieldCell and a ImageAndTextCell. The cells are

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

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

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

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

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

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

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

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

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

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

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

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

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
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
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: 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: 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: 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: 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: 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-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: 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: 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: 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: 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: 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: 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: [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: 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: 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: 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: 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: 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-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
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
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
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
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
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: 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: 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: SCNetworkReachability and impact of Snow Leopard

2009-09-01 Thread Kevin Elliott
mpile down to identical code. I'd stick with the old values to simplify building for/on Leopard. -Kevin Elliott ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact th

Changes in KVO behavior on SL?

2009-09-01 Thread Kevin Brock
this one piece doesn't... 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/Unsubscribe/Upda

Re: Changes in KVO behavior on SL?

2009-09-02 Thread Kevin Brock
On Sep 1, 2009, at 6:11 PM, Ken Thomases wrote: On Sep 1, 2009, at 7:14 PM, Kevin Brock wrote: We've got an app that is using keyValueForPath: and observeValueForKeyPath:ofObject:change:context: to keep a status window up-to-date. On 10.5 it works fine. On 10.6 keyValueForPat

Default authorization dialog text in Snow Leopard misleading

2009-09-03 Thread Kevin Wojniak
for this? It'd be nice to give the authorization dialog a "type" so it can display a different message based on the context. I realize this is a "security feature" for not allowing the text to be changed, but it's fairly important to l

Re: Input Managers in Snow Leopard

2009-09-03 Thread Kevin Ballard
now-leopard/ >. Note that both versions require running a daemon in the background in order to inject your code. -Kevin Ballard On Thu, Sep 3, 2009 at 9:54 PM, Gerriet M. Denkmann wrote: > I heard some rumors that Input Managers do no longer work on Snow Leopard. > > So I asked Xcode

Re: CAAnimation finished ?

2009-09-16 Thread Kevin Cathey
CAAnimation has a delegate you can use to be notified when an animation is complete: http://developer.apple.com/mac/library/documentation/GraphicsImaging/Reference/CAAnimation_class/Introduction/Introduction.html#jumpTo_14 For more, see previous posts on the mailing list. Kevin

Re: IB does not show Outlet/Action section in inspector

2009-09-23 Thread Kevin Cathey
ass, so it does not make sense to put it in the Classes tab. In Cocoa, First Responder really acts like an instance. The actions for First Responder are attributes for it, and that is why they live in the Attributes inspector for First Responder. I hope that clears some of that up… Kevin

Active Read/Write of NSTask

2009-10-07 Thread Kevin Ferguson
n the dark as to how/what classes to consider. Any ideas on how to accomplish what I'm after? -Kevin ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderator

Re: IB creating NULL outlet...

2009-10-07 Thread Kevin Cathey
s.html#//apple_ref/doc/uid/TP40005344-CH3-SW10 > When I run the application, the IBOutlet comes up zero When are you querying this? The outlet will be nil until after awakeFromNib is called on your controller. Kevin ___ Cocoa-dev mailing list (

NSWorkspaceDidMountNotification not firing on Snow Leopard

2009-10-08 Thread Kevin Bracey
ing wrong or another way to listen for an afp to mount? Cheers Kevin B ___ 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: NSWorkspaceDidMountNotification not firing on Snow Leopard

2009-10-08 Thread Kevin Bracey
ocalizedNameKey = SetupScripts; NSWorkspaceVolumeURLKey = afp://;AUTH=No 2456753768ser-0x1.3a953bfffe668p-671uth...@10.0.1.251 /SetupScripts; }} NSDevicePath has changed and I was checking for NSDevicePath = "/Volumes/SetupScripts", my bad. Thanks again:) Kevin __

Re: Subclassing a view class from an external framework

2009-10-15 Thread Kevin Cathey
nst in your Xcode project. Kevin On 13 Oct 2009, at 07:55, Jeff Johnson wrote: > Hi Mark. > > I had the same problem with NSWindow subclasses. Although Interface Builder 3 > is supposed to automatically sync with header files in your project, it seems > to have trouble with hea

Re: odd behavior with NSError?

2009-10-16 Thread Kevin Bracey
on Snow Leopard it said that I had a retain count of +1. Am I leaking? Any advice on this? 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 moderato

OK/Cancel buttons on NSColorPanel

2009-10-16 Thread Kevin Barnes
of my code? -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/Unsubscribe/Update your Subscription:

Interface Builder 3.2 Release Notes

2009-10-21 Thread Kevin Cathey
I would recommend everyone read the Interface Builder 3.2 Release Notes. These highlight the new features in Interface Builder 3.2 on Snow Leopard, as well some of the issues we've addressed. I think these might clear up many of the confusions I've seen cropping up on the mailing lists. http:/

FSMountServerVolumeSync Authentication problem

2009-10-27 Thread Kevin Bracey
erScriptsPopup]; } } 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 He

Porting non-Mac OS X app to Cocoa

2009-11-06 Thread Kevin Brandon
Hi, I have been working on a somewhat game engine (not really, but acts like one) and currently involved in porting this to different platforms. The engine works perfectly fine on Linux, FreeBSD and Windows so far. It is comprised of following parts: 1. Entry point (e.g. main or WinMain) 2. It th

Dialog boxes with dynamic contents

2009-11-09 Thread Kevin Brock
that I'm not aware of. Anyone know of anything that would make this simpler? 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-admin

Re: Dialog boxes with dynamic contents

2009-11-09 Thread Kevin Brock
Kyle Sluder wrote: On Mon, Nov 9, 2009 at 9:10 AM, Kevin Brock wrote: I'm pretty sure that I could just do it programmatically, creating and laying things out on the fly, but I'm hoping there's a simpler way. Most of the application is standard windows in a nib file.

NSString componentsJoinedByString--strange output

2009-11-22 Thread Kevin Walzer
leasePool *pool; pool = [NSAutoreleasePool new]; NSArray *files; files = [NSArray arrayWithObjects: @"/Users/kevin/Desktop/foo.txt", @"/Users/kevin/Desktop/bar.png", @"/Users/kevin/Desktop/baz.txt", nil]; NSString *filestring = [files componentsJoinedByString:@&

Strings mangled on generalPasteboard

2009-11-23 Thread Kevin Walzer
ected. The same data that is dragged comes out intact on the clipboard. However, file paths are inexplicably converted to file URL's, so that instead of "/Users/kevin/Desktop/foo.txt," I get "file://localhost/Users/kevin/Desktop/foo.txt." I want to retain the path string

Re: Strings mangled on generalPasteboard

2009-11-23 Thread Kevin Walzer
type solved the problem. Given that file paths are a requirement for my project and URL's are a "nice-to-have," I'll have to move forward without NSURL. Too bad. -- Kevin Walzer Code by Kevin http://www.codebykevin.com ___

Re: Strings mangled on generalPasteboard

2009-11-23 Thread Kevin Walzer
On 11/23/09 7:14 PM, Jens Alfke wrote: On Nov 23, 2009, at 3:51 PM, Kevin Walzer wrote: Given that file paths are a requirement for my project and URL's are a "nice-to-have," I'll have to move forward without NSURL. Too bad. Why? To get the filesystem path just

Re: Strings mangled on generalPasteboard

2009-11-23 Thread Kevin Walzer
o support strings and file paths at a minimum. NSURL, unfortunately, complicates this design more than I would like. --Kevin -- Kevin Walzer Code by Kevin http://www.codebykevin.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not

Re: calling the run method in an AppleScript from a cocoa application

2010-03-12 Thread Kevin Wojniak
Hey Dave, I think this may be what you want: http://homepage.mac.com/kenferry/software.html#KFAppleScript Kevin On Mar 12, 2010, at 8:56 AM, David Alter wrote: > I need the ability to call an AppleScript from a Cocoa Application. I have > done this in the past using NSAppleScript and it

Re: .ini file class?

2010-03-12 Thread Kevin Wojniak
You could write a Cocoa wrapper around an existing C/C++ library. For example http://ndevilla.free.fr/iniparser/ On Mar 12, 2010, at 10:34 AM, Fritz Anderson wrote: > It should be easy to write an Objective-C class that reads and writes .ini > files, but I'd prefer to use existing art if any e

Re: Clicking on an NSColorWell

2010-03-12 Thread Kevin Wojniak
Subclass and override mouseDown: - however if you're trying to intercept right before the color panel is shown, or a drag starts, that may be trickier. What are you trying to do generally? On Mar 12, 2010, at 1:30 PM, Jonathon Kuo wrote: > How can I intercept or get notified when a user clicks

Re: Private ivars, not marked as IBOutlet, visible in IB

2010-03-13 Thread Kevin Cathey
Not necessarily true. While you are free to specify a delegate as NSObject , it is not standard convention. The convention for delegates is: id. Kevin On 13 Mar 2010, at 07:39, Alexander Spohr wrote: > > Am 13.03.2010 um 16:25 schrieb Joanna Carter: > >> My reason for using

Re: Case sensitive fileName

2010-03-17 Thread Kevin Wojniak
These two methods worked for me: NSString *path = @"/FOLDER/FILENAME.txt"; NSLog(@"displayNameAtPath: %@", [[NSFileManager defaultManager] displayNameAtPath:path]); FSRef ref; HFSUniStr255 name255; if (!FSPathMakeRef((const UInt8 *)[path fileSystemRepresentation], &ref, NULL) && !FSGet

setStringValue problems with dynamically loaded views.

2010-03-17 Thread Kevin Brock
text field shows up where it's supposed to in the top level window. But the text isn't set. The .xib file shows that File's Owner is the correct subclass of NSViewController, and that the NSTextField control is connected to the textField outlet. Any ideas? Kevin _

Re: setStringValue problems with dynamically loaded views.

2010-03-17 Thread Kevin Brock
indowDidLoad; instead you are expected to > override -loadView, call super's implementation, and then perform your > setup. That is the approach I would recommend. Thanks. This fixed my problems! Kevin ___ Cocoa-dev mailing list (Cocoa-dev@l

Re: Odd crash

2010-03-22 Thread Kevin Wojniak
I've seen this crash plenty of times as well. Hopefully it'll be fixed in 10.6.3. On Mar 21, 2010, at 4:40 PM, Kyle Sluder wrote: > On Sun, Mar 21, 2010 at 3:37 PM, Graham Cox wrote: >> I got this crash report from a user. It seems to be an isolated incident but >> it would be good to know wh

  1   2   3   4   5   6   >