Garbage collection - was Beginner with Cocoa

2008-03-24 Thread Bill Cheeseman
to be usable with both retain/release and garbage collection (and 32-bit and 64-bit). But I don't know whether I did it right, and I have no idea how to go about finding out. -- Bill Cheeseman - [EMAIL PROTECTED] Quechee Software, Quechee, Vermont, USA www.quecheesoftware.com PreFab Software

Re: Garbage collection - was Beginner with Cocoa

2008-03-24 Thread Bill Cheeseman
or two to understand the Objective-C additions to standard C and maybe a day to be able to use them comfortably. The Cocoa frameworks take a lot more study, of course, but that has nothing to do with the language -- it's just like learning any new framework. -- Bill Cheeseman - [EMAIL PROTECTED

Re: Beginner with Cocoa

2008-03-25 Thread Bill Cheeseman
, and they helped me to understand how autorelease works. But you need a law degree or two to learn how to program by reading patents, so I don't recommend it to everyone Oh, what the heck, go to www.uspto.gov/patft/ and search on patents nos. 6,304,884, 6,026,415 and 5,687,370. -- Bill

Re: Building a custom Data Detector

2008-04-11 Thread Bill Cheeseman
://lists.apple.com/mailman/listinfo/latentsemanticmapping. Not that I have figured out how to use it -- Bill Cheeseman - [EMAIL PROTECTED] Quechee Software, Quechee, Vermont, USA www.quecheesoftware.com PreFab Software - www.prefabsoftware.com

Re: hooking into another app

2008-04-14 Thread Bill Cheeseman
Browser, too. In your assistive application, you would respond to each such notification by reading the new content of the chat window and saving it to your log. -- Bill Cheeseman - [EMAIL PROTECTED] Quechee Software, Quechee, Vermont, USA www.quecheesoftware.com PreFab Software

Re: hooking into another app

2008-04-15 Thread Bill Cheeseman
poster wasn't asking how to use AppleScript. He was asking how to write an application. The operations he wants his application to perform are perfectly handled by the Accessibility API. In fact, they are exactly what the Accessibility API was designed to do. -- Bill Cheeseman - [EMAIL PROTECTED

Re: Mounting AFP Volume using Cocoa

2008-04-18 Thread Bill Cheeseman
commands). Instead of NSAppleScript you could use OSAKit, but it isn't technically Cocoa by some definitions, although it is an Objective-C API. -- Bill Cheeseman - [EMAIL PROTECTED] Quechee Software, Quechee, Vermont, USA www.quecheesoftware.com PreFab Software - www.prefabsoftware.com

Re: AppleScript - occasional crashes on Leopard

2008-04-22 Thread Bill Cheeseman
customers/users running APE. Folks with haxies installed rarely know that they should mention it when they submit problem reports. I've gotten in the habit of asking that question up front in response to almost all support calls. -- Bill Cheeseman - [EMAIL PROTECTED] Quechee Software, Quechee

Re: A Cocoa means to detect SysPref 'Enable access for assistive devices

2008-04-23 Thread Bill Cheeseman
and Leopard, without jumping through any hoops at all (because System Preferences takes care of the authentication dialog for you). Thus, you could use NSAppleScript or OSAKit to run a script that will set the Universal Access setting, if you find that it is not already set. -- Bill Cheeseman - [EMAIL

Re: CGevent and cocoa compatibility

2008-05-02 Thread Bill Cheeseman
event taps will notice the special function keys on any keyboard. The OP could do some initial testing of this with my free PreFab Event Taps Testbench application, here: http://prefabsoftware.com/eventtapstestbench/. -- Bill Cheeseman - [EMAIL PROTECTED] Quechee Software, Quechee, Vermont, USA

Re: Forwarding messages from an application delegate

2008-05-02 Thread Bill Cheeseman
. The uses for this are probably few, but it served me perfectly for a test utility that is designed to see how a variety of applications handle certain system-level facilities with a variety of delegate method and callback method implementations. -- Bill Cheeseman - [EMAIL PROTECTED] Quechee Software

Re: I Never get 'self' in Obj-C

2008-05-05 Thread Bill Cheeseman
that the function feels like it's a method implemented inside the class, but you could name it anything. -- Bill Cheeseman - [EMAIL PROTECTED] Quechee Software, Quechee, Vermont, USA www.quecheesoftware.com PreFab Software - www.prefabsoftware.com ___ Cocoa-dev

Re: Controller Cannot Be nil on binding NSTextField

2008-05-13 Thread Bill Cheeseman
(particularly the Formatting String Objects and String Format Specifiers sections). -- Bill Cheeseman - [EMAIL PROTECTED] Quechee Software, Quechee, Vermont, USA www.quecheesoftware.com PreFab Software - www.prefabsoftware.com ___ Cocoa-dev mailing list (Cocoa

Re: Where to store document window specific setup data

2008-06-18 Thread Bill Cheeseman
the document itself. This might be convenient, for example, if you are locking an ancillary window or palette to the main document window's current position on screen. See Apple's document User Defaults Programming topics for Cocoa. -- Bill Cheeseman - [EMAIL PROTECTED] Quechee Software, Quechee

Re: Send Key Event to Focused Window

2008-06-18 Thread Bill Cheeseman
of thing across process boundaries. -- Bill Cheeseman - [EMAIL PROTECTED] Quechee Software, Quechee, Vermont, USA www.quecheesoftware.com PreFab Software - www.prefabsoftware.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

Re: Converting HID keyboards usages to characters ?

2008-06-19 Thread Bill Cheeseman
function in unicode utilities. Also read this thread for Leopard source code from Michael Grady: http://lists.apple.com/archives/carbon-dev/2007/Jun/msg00861.html, and this thread for Tiger source code from Dorian Johnson: http:// www.cocoabuilder.com/archive/message/cocoa/2007/6/9/184395. -- Bill

Re: Send Key Event to Focused Window

2008-06-19 Thread Bill Cheeseman
Testbench is one such, at http://prefabsoftware.com/eventtapstestbench. -- Bill Cheeseman - [EMAIL PROTECTED] Quechee Software, Quechee, Vermont, USA www.quecheesoftware.com PreFab Software - www.prefabsoftware.com ___ Cocoa-dev mailing list (Cocoa

Re: Code signing and bundle layout

2008-06-23 Thread Bill Cheeseman
meaure, they advised me to put the helper app packages at the root level of my application package's Contents folder. I've done that, and it seems to work. I don't know whether their advice would apply to a prefpane, but I suspect so. -- Bill Cheeseman - [EMAIL PROTECTED] Quechee Software, Quechee

Re: Guidelines for Cocoa frameworks supporting garbage collection?

2008-07-06 Thread Bill Cheeseman
, that the carbon EventRef isn't a CFType and has a variety of memory management methods of its own -- I've never had occasion to use it. But they seem to present the same issues with respect to their use in a garbage collected Cocoa application or framework. -- Bill Cheeseman - [EMAIL PROTECTED] Quechee

Re: Guidelines for Cocoa frameworks supporting garbage collection?

2008-07-06 Thread Bill Cheeseman
am now inclined to think that, at least in my circumstances (a shared framework properly balancing CFRetain and CFRelease), I do NOT need to use the __strong keyword for the CFType-derived instance variables, in order to support garbage collection. Any disagreement? -- Bill Cheeseman - [EMAIL

Re: Guidelines for Cocoa frameworks supporting garbage collection?

2008-07-06 Thread Bill Cheeseman
with Chris as to the NSEvent methods I describe in another post, and the similar methods in my own frameworks. In these cases, when the Cocoa object goes away, its CFType-derived counterpart also goes away. -- Bill Cheeseman - [EMAIL PROTECTED] Quechee Software, Quechee, Vermont, USA

Re: Guidelines for Cocoa frameworks supporting garbage collection?

2008-07-06 Thread Bill Cheeseman
]; } } - (void)wrapup { // cleanup code goes here wrappedup = YES; } - (void)someMethod { [self wrapup]; } @end -- Bill Cheeseman - [EMAIL PROTECTED] Quechee Software, Quechee, Vermont, USA www.quecheesoftware.com PreFab Software - www.prefabsoftware.com

Re: Guidelines for Cocoa frameworks supporting garbage collection?

2008-07-06 Thread Bill Cheeseman
CFRunLoopRef iVar is not given the __strong keyword. Ditto NSNumberFormatter. -- Bill Cheeseman - [EMAIL PROTECTED] Quechee Software, Quechee, Vermont, USA www.quecheesoftware.com PreFab Software - www.prefabsoftware.com ___ Cocoa-dev mailing list

Re: Guidelines for Cocoa frameworks supporting garbage collection?

2008-07-06 Thread Bill Cheeseman
overhead of -finalize by implementing some sort of wrapup system such as I outlined in another message.) -- Bill Cheeseman - [EMAIL PROTECTED] Quechee Software, Quechee, Vermont, USA www.quecheesoftware.com PreFab Software - www.prefabsoftware.com

Re: Guidelines for Cocoa frameworks supporting garbage collection?

2008-07-06 Thread Bill Cheeseman
technique, and I use it in one of my frameworks. It was outlined by Ken Case of OmniGroup many years ago. See www.cocoadev.com/index.pl?WeakReferences. I anticipate that I may use __weak to replace this when my framework is used in a garbage collection environment. -- Bill Cheeseman - [EMAIL

Re: Guidelines for Cocoa frameworks supporting garbage collection?

2008-07-06 Thread Bill Cheeseman
already have been finalized, causing the finalize to crash. OK. I just noticed (in an Apple tutorial on Objective-C 2.0) that NSNotificationCenter observers don't need to be set to nil in GC, so that eliminates one reason to need a -finalize method even apart from all this. -- Bill Cheeseman

Re: Receive notifications about frontmost application change

2008-07-09 Thread Bill Cheeseman
to observe when it deactivates, and so on. See Apple's iChatStatusFromApplication sample code for Leopard to see exactly how to implement this. -- Bill Cheeseman - [EMAIL PROTECTED] Quechee Software, Quechee, Vermont, USA www.quecheesoftware.com PreFab Software - www.prefabsoftware.com

Re: Receive notifications about frontmost application change

2008-07-09 Thread Bill Cheeseman
). No. See my message just now about the Accessibility API. -- Bill Cheeseman - [EMAIL PROTECTED] Quechee Software, Quechee, Vermont, USA www.quecheesoftware.com PreFab Software - www.prefabsoftware.com ___ Cocoa-dev mailing list (Cocoa-dev

Re: Receive notifications about frontmost application change

2008-07-09 Thread Bill Cheeseman
application package, one of them to run as root and make your process trusted, and the other to relaunch your application so the newly-trusted process is running. If you have an easier way to accomplish your goal, go for it. -- Bill Cheeseman - [EMAIL PROTECTED] Quechee Software, Quechee, Vermont

Re: -[NSBrowser scrollToVisible] not making all of the column visible

2008-08-03 Thread Bill Cheeseman
on 2008-08-02 8:58 PM, Martin Redington at [EMAIL PROTECTED] wrote: Is the behaviour I'm seeing (not all column made visible if any is already visible) the expected behaviour? I filed a bug about 4 years ago, but nothing came of it. -- Bill Cheeseman - [EMAIL PROTECTED] Quechee Software

Re: Accessing memory of another application?

2008-08-12 Thread Bill Cheeseman
can probably control it and thus get at its data using GUI Scripting. Other people mean literally accessing the RAM currently in use by the other application, and I have no idea how you would go about approaching that task. -- Bill Cheeseman - [EMAIL PROTECTED] Quechee Software, Quechee, Vermont

Re: CGEventTap locks up entire system

2008-09-01 Thread Bill Cheeseman
would like to make it as useful as possible to developers working with event taps. http://prefabsoftware.com/eventtapstestbench. -- Bill Cheeseman - [EMAIL PROTECTED] Quechee Software, Quechee, Vermont, USA www.quecheesoftware.com PreFab Software - www.prefabsoftware.com

Re: NSCharacterSet :+ (id)newlineCharacterSet

2008-09-08 Thread Bill Cheeseman
: #if MAC_OS_X_VERSION_10_5 = MAC_OS_X_VERSION_MAX_ALLOWED + (id)newlineCharacterSet; #endif -- Bill Cheeseman - [EMAIL PROTECTED] Quechee Software, Quechee, Vermont, USA www.quecheesoftware.com PreFab Software - www.prefabsoftware.com ___ Cocoa-dev mailing

Re: While we're on the subject of DMG's for software distribution...

2008-09-09 Thread Bill Cheeseman
, or in a zip file, or whatever. -- Bill Cheeseman - [EMAIL PROTECTED] Quechee Software, Quechee, Vermont, USA www.quecheesoftware.com PreFab Software - www.prefabsoftware.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

Re: While we're on the subject of DMG's for software distribution...

2008-09-09 Thread Bill Cheeseman
in an external location, such as /Library/Frameworks. It is therefore necessary to use an installer to install it correctly. Scenarios like this may be the wave of the future. -- Bill Cheeseman - [EMAIL PROTECTED] Quechee Software, Quechee, Vermont, USA www.quecheesoftware.com PreFab Software

Re: determining system idle time in leopard

2008-09-18 Thread Bill Cheeseman
value should be an event source created using kCGEventSourceStateCombinedSessionState. I believe this is available and documented for Tiger and Leopard. -- Bill Cheeseman - [EMAIL PROTECTED] Quechee Software, Quechee, Vermont, USA www.quecheesoftware.com PreFab Software - www.prefabsoftware.com

Re: Designing reports in Cocoa apps

2008-10-19 Thread Bill Cheeseman
using existing Cocoa facilities (especially in Leopard). -- Bill Cheeseman - [EMAIL PROTECTED] Quechee Software, Quechee, Vermont, USA www.quecheesoftware.com PreFab Software - www.prefabsoftware.com ___ Cocoa-dev mailing list (Cocoa-dev

Re: Getting Carbon EventRef from cocoa NSEvent

2008-10-23 Thread Bill Cheeseman
X 10.5). You might have to look at the Quartz Event Taps documentation. -- Bill Cheeseman - [EMAIL PROTECTED] Quechee Software, Quechee, Vermont, USA www.quecheesoftware.com PreFab Software - www.prefabsoftware.com ___ Cocoa-dev mailing list (Cocoa

Re: Using NSAppleScript With AXMakeProcessTrusted -- and/or, How To Indirectly Launch A Secure Agent

2009-02-01 Thread Bill Cheeseman
good progress. Search Apple's accessibility-dev mailing list archives for more information. -- Bill Cheeseman - b...@cheeseman.name Quechee Software, Quechee, Vermont, USA www.quecheesoftware.com PreFab Software - www.prefabsoftware.com ___ Cocoa-dev

Supported platforms?

2009-03-06 Thread Bill Cheeseman
as a hot issue. If Apple sees this as a problem, the seed note could deal with the rumor sites by including a disclaimer warning that the ability or inability to install the seed release on a PPC machine implies nothing about the final release.) -- Bill Cheeseman b...@cheeseman.name

Garbage Collection, Core Foundation, and the -finalize problem

2009-03-16 Thread Bill Cheeseman
because it will unduly burden the collection process. I should mention that my class is part of a mixed-mode framework that must support both reference counted and garbage collected clients. Any suggestions? -- Bill Cheeseman b...@cheeseman.name

Re: Garbage Collection, Core Foundation, and the -finalize problem

2009-03-16 Thread Bill Cheeseman
On Mar 16, 2009, at 2:32 PM, Michael Tsai wrote: On Mar 16, 2009, at 2:08 PM, Bill Cheeseman wrote: I am looking for a strategy to avoid implementing a -finalize method in a garbage-collected Objective-C class that declares a CFTypeRef-style Core Foundation instance variable. I believe

Re: Garbage Collection, Core Foundation, and the -finalize problem

2009-03-16 Thread Bill Cheeseman
that. -- Bill Cheeseman b...@cheeseman.name ___ 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

Re: Garbage Collection, Core Foundation, and the -finalize problem

2009-03-17 Thread Bill Cheeseman
On Mar 16, 2009, at 2:32 PM, Michael Tsai wrote: On Mar 16, 2009, at 2:08 PM, Bill Cheeseman wrote: I am looking for a strategy to avoid implementing a -finalize method in a garbage-collected Objective-C class that declares a CFTypeRef-style Core Foundation instance variable. I believe

Re: Clicking through a NSView with CALayers

2009-04-25 Thread Bill Cheeseman
, not a layer- backed view, in case that makes a difference. -- Bill Cheeseman - b...@cheeseman.name Quechee Software, Quechee, Vermont, USA www.quecheesoftware.com PreFab Software - www.prefabsoftware.com ___ Cocoa-dev mailing list (Cocoa-dev

Re: Clicking through a NSView with CALayers

2009-04-26 Thread Bill Cheeseman
On Apr 25, 2009, at 10:08 PM, Rowan Nairn wrote: On Sat, 25 Apr 2009 at 17:26 AM, Bill Cheeseman b...@cheeseman.name wrote: I have an identical setup on an application I'm currently working on, and clickthrough works just fine for me. Really? I hope we're talking about the same thing here

Re: Clicking through a NSView with CALayers

2009-04-26 Thread Bill Cheeseman
://prefabsoftware.eventtapstestbench. Event taps are complicated if you aren't familiar with them, so if you already have a drawing solution maybe that's the best bet. -- Bill Cheeseman - b...@cheeseman.name Quechee Software, Quechee, Vermont, USA www.quecheesoftware.com PreFab Software

Re: Full content of Cocoa Design Patterns available as Rough-Cut on-line

2009-05-04 Thread Bill Cheeseman
is superlative, so I'd gladly accept a little Bah in the bargain. -- Bill Cheeseman - b...@cheeseman.name Quechee Software, Quechee, Vermont, USA www.quecheesoftware.com PreFab Software - www.prefabsoftware.com ___ Cocoa-dev mailing list (Cocoa-dev

Re: NSSplitView resizing

2009-08-27 Thread Bill Cheeseman
: (NSSize)oldSize. It's easier to code this if you make use of the incoming oldSize parameter value. That's what it's there for. The comments in Apple's header file are more informative than the documentation for this delegate method. -- Bill Cheeseman b...@cheeseman.name

Re: What about revamping OpenUp.app for Snow Leopard?

2009-09-04 Thread Bill Cheeseman
beef up Pacifist.qlgenerator to provide more info about mpkg files, and maybe about zip files, too! -- Bill Cheeseman b...@cheeseman.name ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

Re: Overcoming crappiness of NSSplitView - what's the magic?

2009-09-15 Thread Bill Cheeseman
that makes this a piece of cake: - (BOOL)splitView:(NSSplitView *)sender shouldAdjustSizeOfSubview: (NSView *)view -- Bill Cheeseman b...@cheeseman.name ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

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

2009-09-22 Thread Bill Cheeseman
the Classes tab, then in the bottom pane select the Outlets or Actions tab. -- Bill Cheeseman b...@cheeseman.name ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

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

2009-09-23 Thread Bill Cheeseman
of my memory, it gives you more control over what is produced. -- Bill Cheeseman b...@cheeseman.name ___ 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: IB does not show Outlet/Action section in inspector

2009-09-23 Thread Bill Cheeseman
not easy to remember. By the way, I notice that the pop-up becomes an outline view if you drag the divider below it downward. Very cute. -- Bill Cheeseman b...@cheeseman.name ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

[ANN] Snow Leopard Location Manager sample code

2009-09-28 Thread Bill Cheeseman
://www.quecheesoftware.com/Quechee_Software/Lucubrator.html . I'm interested in (private) feedback on how well it works where you are. -- Bill Cheeseman b...@cheeseman.name ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

System Configuration framework question re airport

2009-09-29 Thread Bill Cheeseman
for nil. Can a kSCNetworkInterfaceTypeIEEE80211 interface configuration dictionary lawfully omit a PowerEnabled key? Under what circumstances? Can anybody point me to documentation? -- Bill Cheeseman b...@cheeseman.name ___ Cocoa-dev mailing

[ANN] Snow Leopard Location Manager sample code update

2009-09-30 Thread Bill Cheeseman
change is to improve detection of your AirPort card status. So far, users have reported successfully finding themselves in places like Boston, Massachusetts; Hamburg, Germany; and Sydney, Australia. But failure in Bangkok. -- Bill Cheeseman b...@cheeseman.name

Window maxSize different from setMaxSize ???

2009-10-07 Thread Bill Cheeseman
Can somebody explain this to me? It's on Snow Leopard 10.6.1: In my window controller's -windowDidLoad method (or -awakeFromNib): [[self window] setMaxSize:NSMakeSize(800, 800)]; [[self window] maxSize]; // -- {800, 856} -- Bill Cheeseman b...@cheeseman.name

Re: Window maxSize different from setMaxSize ???

2009-10-08 Thread Bill Cheeseman
On Oct 7, 2009, at 5:55 PM, Bill Cheeseman wrote: Can somebody explain this to me? It's on Snow Leopard 10.6.1: In my window controller's -windowDidLoad method (or -awakeFromNib): [[self window] setMaxSize:NSMakeSize(800, 800)]; [[self window] maxSize]; // -- {800, 856} OK, duh, it's

Re: Trying blocks

2009-10-30 Thread Bill Cheeseman
which binary to load at run time. Alternatively, you could isolate the blocks-based calls in a small separate bundle in your application package and load it at run time if you're running on Snow Leopard. Does anybody have any better solutions? Working code? -- Bill Cheeseman b

boundingRectWithSize:Option: and height constraint

2009-11-11 Thread Bill Cheeseman
with the impression that the whole point of this method is to return the largest rect that will honor the size constraint by cutting off the text at the height constraint while it is being laid out within the width constraint. Have I misunderstood? -- Bill Cheeseman b...@cheeseman.name

Re: boundingRectWithSize:Option: and height constraint

2009-11-11 Thread Bill Cheeseman
On Nov 11, 2009, at 11:48 AM, Matt Neuburg wrote: On Wed, 11 Nov 2009 08:53:37 -0500, Bill Cheeseman b...@cheeseman.name said: The documentation leaves me with the impression that the whole point of this method is to return the largest rect that will honor the size constraint by cutting off

Re: boundingRectWithSize:Option: and height constraint

2009-11-12 Thread Bill Cheeseman
indicates that the efficiency of the string drawing methods has been much improved and that we are supposed to feel free to use them more often. But I was not looking for efficiency gains, only ease of coding. -- Bill Cheeseman b...@cheeseman.name

Re: How can I not block hotkey from other apps

2009-11-23 Thread Bill Cheeseman
it in my hotkey callback function by temporarily unregistering my hotkey, reposting the incoming keyboard event into the event stream, and re-registering my hotkey. It works fine. -- Bill Cheeseman b...@cheeseman.name ___ Cocoa-dev mailing list

Re: XCode4 - Setup for 2 apps 1 framework

2011-05-23 Thread Bill Cheeseman
workspace, especially when they're not open at the same time. Though I have no experience with this, but if it would not work that would certainly qualify as a bug. I'll be trying to do this within the next two weeks. I'll report back on my experiences. -- Bill Cheeseman - b

Re: Cocoa scripting: targeting an app via its bundle identifier

2011-06-26 Thread Bill Cheeseman
at http://macscripter.net/viewtopic.php?id=24570 and http://macscripter.net/viewtopic.php?id=24569. Some of what I wrote then is no longer completely true, thanks to the ongoing evolution of AppleScript. -- Bill Cheeseman - b...@cheeseman.name ___ Cocoa

Re: Event Objects Return 1-Based Y Coordinate Values

2011-06-27 Thread Bill Cheeseman
. -- Bill Cheeseman - b...@cheeseman.name ___ 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

Re: standardDefaults

2011-07-21 Thread Bill Cheeseman
. On Jul 21, 2011, at 4:34 PM, John Cate wrote: I'm not seeing a user/library/Preferences folder on Lion. Where are they hiding application pLists in Lion (searching for them doesn't find any). -- Bill Cheeseman - b...@cheeseman.name ___ Cocoa-dev

Re: CGEventRef with function key

2011-07-21 Thread Bill Cheeseman
utility at http://pfiddlesoft.com/eventtapstestbench. You will get more focused responses to inquiries about this on Apple's accessibility-dev mailing list, where Apple's accessibility engineers hang out. -- Bill Cheeseman - b...@cheeseman.name

Lion NSSpeechSynthesizer leak?

2011-07-25 Thread Bill Cheeseman
can't stop the leak no matter what different techniques to instantiate it I try. Known bug? Worth a radar? -- Bill Cheeseman - b...@cheeseman.name ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: How can i change a app position and size?

2011-07-26 Thread Bill Cheeseman
that generate fake user input events like clicks and drags. Look it up in the developer documentation. Or use Apple's accessibility API directly. GUI Scripting is built on top of the accessibility API. -- Bill Cheeseman - b...@cheeseman.name

Re: Totally baffled by Xcode 4

2011-08-12 Thread Bill Cheeseman
working on the framework by itself, I use the framework-only workspace. Because it shares the one framework project with all workspaces, it contains all the changes I made to it while I was working in the application workspace. -- Bill Cheeseman - b...@cheeseman.name

NSBrowser column titles disappear when scrolled

2011-09-05 Thread Bill Cheeseman
: delegate method and calling -setNeedsDisplayInRect: on the title frame of the last column. That fix no longer works in Lion, and I can't find any other way to fix it. Do others see this problem? How do you fix it? -- Bill Cheeseman - b...@cheeseman.name

Re: NSBrowser column titles disappear when scrolled [SOLVED]

2011-09-06 Thread Bill Cheeseman
On Sep 5, 2011, at 8:39 AM, Bill Cheeseman wrote: Long ago, I found that NSBrowser column titles disappear when the user manually scrolls the browser horizontally, or clicks a cell that forces the browser to scroll horizontally to show the children of the new selection in the next column

Re: Lion breaks the ability to click-through transparent window areas when the window is resizable.

2011-09-09 Thread Bill Cheeseman
want to try it, download Applidude from http://pfiddlesoft.com/pfiddles and turn off its Auto motivate preference. -- Bill Cheeseman - b...@cheeseman.name ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: Lion breaks the ability to click-through transparent window areas when the window is resizable.

2011-09-09 Thread Bill Cheeseman
mean. (I succumbed to the perils of coming in on a thread late. Sorry.) -- Bill Cheeseman - b...@cheeseman.name ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Re: NSBrowser column titles disappear when scrolled [SOLVED]

2011-09-09 Thread Bill Cheeseman
On Sep 9, 2011, at 4:03 PM, Matt Neuburg wrote: I do hope you're filing bugs on all of this! m. On Tue, 06 Sep 2011 06:30:33 -0400, Bill Cheeseman wjcheese...@gmail.com said: The solution is to set the Titled checkbox in Interface Builder instead of calling -setTitled

Re: ARC + return of autoreleased CFType

2011-10-20 Thread Bill Cheeseman
that this is the way Analyze is meant to work. -- Bill Cheeseman - b...@cheeseman.name ___ 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

Re: AXMakeProcessTrusted conflicts with dylib load by install_name_tool

2011-10-29 Thread Bill Cheeseman
. If you want help figuring out why it isn't working for you, you will have to provide more information. For example, the full text of the error message might be informative. And a more complete explanation of how you are using it with install_name_tool. -- Bill Cheeseman - b...@cheeseman.name

Re: AXUIElementPostKeyboardEvent - not sending key presses to Safari/TextEdit in Lion

2011-11-18 Thread Bill Cheeseman
, false ); //Escape AXUIElementPostKeyboardEvent (app, (CGCharCode) 0, (CGKeyCode)55, true ); //Command In the last step you should have passed false instead of true, to let the command key up. -- Bill Cheeseman - b...@cheeseman.name ___ Cocoa

Re: Updating an app's help

2011-12-14 Thread Bill Cheeseman
trashes the old version of the application when they install the new version, and all is well. -- Bill Cheeseman - b...@cheeseman.name ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

Re: AXUIElementPostKeyboardEvent - not sending key presses to Safari/TextEdit in Lion

2012-02-23 Thread Bill Cheeseman
to continue to make their applications AppleScriptable, and of course the built-in and custom accessibility API support will continue to be available in the Cocoa frameworks and functional in sandboxed applications and in Mac App Store applications. -- Bill Cheeseman - b...@cheeseman.name

Re: Application Suite Preferences

2012-02-27 Thread Bill Cheeseman
wrote the first version in 2004, before bindings were available, and there has been no reason to rewrite it to try to use bindings. It works just fine. -- Bill Cheeseman - b...@cheeseman.name ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com

Re: updates for retina

2012-06-15 Thread Bill Cheeseman
one method that is identified in the documentation as problematic in HiDPI mode, and I think some of my arithmetic may have assumed pixels and points are equivalent. -- Bill Cheeseman - b...@cheeseman.name ___ Cocoa-dev mailing list (Cocoa-dev

Re: Cocoa scripting support - background helper app

2010-04-11 Thread Bill Cheeseman
bring it to the front for easy user input. This is a fairly common pattern. -- Bill Cheeseman b...@cheeseman.name ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Re: Cocoa scripting support - background helper app

2010-04-11 Thread Bill Cheeseman
avoiding polluting the AppleScript namespace. I presume that your FBA is included in your main app bundle as a resource and exported to ~/library/scripting additions as necessary Right again. It is zipped in the main app bundle and expanded using the ditto tool during installation. -- Bill

Re: Scripting Bridge for GUI scripting?

2010-04-29 Thread Bill Cheeseman
: generate a System Events.h header file using Apple's tools, pursuant to the documentation, and add the header to your project. -- Bill Cheeseman - b...@cheeseman.name ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

How did Snow Leopard kill my table view?

2010-05-15 Thread Bill Cheeseman
://prefabsoftware.com/uibrowser.) -- Bill Cheeseman - b...@cheeseman.name ___ 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

Re: Help w/ first step of creating Help Book for app

2010-05-29 Thread Bill Cheeseman
:29 AM, Shane wrote: I'm trying to create a help book for my app using the Apple Help Programming Guide, which is not easy for me to follow -- Bill Cheeseman - b...@cheeseman.name ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Info.plist settings for Quick Look?

2010-07-02 Thread Bill Cheeseman
seem to be enough. My Info.plist file has also always had a UTTypeTagSpecification entry with the value set to my custom file extension. -- Bill Cheeseman - b...@cheeseman.name ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

Re: NSWorkspace iconForFile

2010-07-06 Thread Bill Cheeseman
/DocumentsFolderIcon.icns, .../DesktopFolderIcon.icns, and .../DownloadsFolder.icns [sic]. -- Bill Cheeseman - b...@cheeseman.name ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list

[ANN] PFiddlesoft (PreFab) Framework Updates

2010-07-11 Thread Bill Cheeseman
, or bundle identifier. -- Bill Cheeseman - b...@cheeseman.name ___ 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

Re: Basic Q: Where is the best place to open a drawer?

2010-07-20 Thread Bill Cheeseman
, this isn't what the OP asked about, and we should focus on the question. I've always wanted a -windowDidOpen: delegate method, but it's never been offered. The closest substitutes are -windowDidBecomeKey: and -windowDidBecomeMain:, and neither of them fits the bill. -- Bill Cheeseman - b

Re: CGEventTap Not Receiving Events after some time

2010-09-30 Thread Bill Cheeseman
to do. (And don't pass this event on to other routines or act on it the way you would act on a real event.) The documentation is the Quartz Event Services Reference. -- Bill Cheeseman - b...@cheeseman.name ___ Cocoa-dev mailing list (Cocoa-dev

Re: CGEventTap Not Receiving Events after some time

2010-09-30 Thread Bill Cheeseman
utility, at http://pfiddlesoft.com/eventtapstestbench. -- Bill Cheeseman - b...@cheeseman.name ___ 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: warning 'NSEvent' may not respond to '+eventWithEventRef:'

2009-05-26 Thread Bill Cheeseman
information. To answer your question, add this line to your code file: #import CoreGraphics/CoreGraphics.h I forget whether you have to link to Carbon, but I don't think so -- unless you need it for some other reason. -- Bill Cheeseman b...@cheeseman.name

Re: Wich one is faster, compare or isEqualToString? (NSString methods)

2009-06-05 Thread Bill Cheeseman
-- for example, because it is embedded in a loop that iterates hundreds of thousands of times, there are even faster techniques you should consider. But that is an advanced topic. -- Bill Cheeseman b...@cheeseman.name ___ Cocoa-dev mailing list

User interface validation doesn't work, right?

2009-07-01 Thread Bill Cheeseman
method, by analogy to -[NSMenu update]. In my override of -update, I have to do for myself what the document claims already happens -- or I have to observe NSWindow's -NSWindowDidUpdateNotification. Right? -- Bill Cheeseman b...@cheeseman.name

Re: User interface validation doesn't work, right?

2009-07-01 Thread Bill Cheeseman
about that, and they're correct. But it doesn't work at all for user controls in general, and the docs are misleading (i.e., wrong) about that. Unless I'm overlooking something. I'm not overlooking anything, am I? -- Bill Cheeseman b...@cheeseman.name

Re: User interface validation doesn't work, right?

2009-07-02 Thread Bill Cheeseman
On Jul 2, 2009, at 12:02 AM, mmalc Crawford wrote: On Jul 1, 2009, at 4:33 PM, Bill Cheeseman wrote: But it doesn't work at all for user controls in general, and the docs are misleading (i.e., wrong) about that. although I'm not sure I'd agree with Bill that the docs are *wrong

  1   2   3   >