Re: How to check for full-screen apps, robustly?

2023-08-19 Thread Angela Brett via Cocoa-dev
justing mainScreen.frame with mainScreen.safeAreaInsets? I haven’t tried it but I would hope those would give the right ‘fullscreen’ sizes for any current or future screen shape. Angela Brett (she/her) http://angelastic.com ang...@angelastic.com _

Re: Can an use introspection to determine if its a production app from the App Store?

2014-10-31 Thread Angela Brett
Sent from my iPad > On 31 oct. 2014, at 18:22, Fritz Anderson wrote: > >> On 31 Oct 2014, at 6:40 AM, Charles Jenkins wrote: >> >> My day job is programming in C# for Windows computers. I was really excited >> when Swift came out because it’s so similar to other languages I know well >> an

Re: NSUInteger in for-loop?

2008-09-14 Thread Brett Powley
On 15/09/2008, at 2:15 PM, Alex Reynolds wrote: I'm wondering if I'm using unsigned integers (specifically NSUInteger) properly or not. I was under the impression that unsigned integers run from 0 to MAX_INT, but when I use them in a "for" loop within these bounds, the loop does not seem

Re: Removing Applications from the Dock Programmatically

2008-08-26 Thread Brett Powley
If you poke around inside any of the Apple installers that install icons in the Dock (e.g. iLife) you'll find scripts for adding and removing things from the Dock. However, they're not pretty Cheers, Brett On 27/08/2008, at 11:20 AM, Graff wrote: I forgot to mention that y

Re: Core Data and unsigned integer types, why are there none?

2008-07-22 Thread Brett Powley
on problems, or do you use uint64? If you know that your values aren't going to be greater than 2147483647, you could get away with using a uint32. Otherwise, I'd use a uint64. Cheers, Brett ___ Cocoa-dev mailing list (Cocoa-dev

Re: notification when app is moved

2008-07-16 Thread Brett Powley
give you the location of the Resources directory for your application. Why do you need to maintain this location separately? Cheers, Brett ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

Re: Attributed string to an Image without window

2008-07-16 Thread Brett Powley
You don't have to have a window or a view to draw: you can draw directly to an image using [NSImage lockFocus]. On 17/07/2008, at 2:59 AM, Nethan Aryan wrote: Hello All, Need your help... I have to write a command line utility which will create an image from another source image by addin

Re: Remove overlap on NSBezierPath

2008-07-13 Thread Brett Powley
http://www.omnigroup.com/developer/ and in particular, the NSBezierPath-OAExtensions category in OmniAppKit/OpenStepExtensions, which provides a few extra useful functions for operating on Bezier curves. Cheers, Brett ___ Cocoa-dev mailing list (Coco

Re: JDBC Frameworks?

2008-07-10 Thread Brett Powley
interface using the iODBC library in C (or even Python or Ruby if you want to). Cheers, Brett ___ 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 coco

Re: Attributed menu titles

2008-07-09 Thread Brett Powley
, see Application Menu and Pop-up List Programming Topics for Cocoa. Cheers, Brett ___ 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-admi

Re: Getting mouse moved events on overlay windows

2008-07-01 Thread Brett Powley
was causing the issue. If you get any further, I'd be keen to hear what you find out. Cheers, Brett On 01/07/2008, at 4:52 PM, Markus Spoettl wrote: Hello List, I have a WebView with a transparent overlay window + custom view "attached" it to allow for custom overlay dr

Re: NSSound thread-safety?

2008-06-16 Thread Brett Powley
on't seem to have any locking there to ensure this. And: are you doing anything with NSSound on the main thread? Cheers, Brett On 17/06/2008, at 10:07 AM, Jens Alfke wrote: Speaking of AppKit on background threads … I've been using a background thread to load and play NSSounds,

Re: Transparent content view of NSWindow clicks through

2008-06-14 Thread Brett Powley
) canBecomeKeyWindow to return YES Cheers, Brett On 15/06/2008, at 6:05 AM, John Joyce wrote: I'm toying with using a transparent content view of an NSWindow. Of course, when you get the background totally transparent, you click in the rect, it clicks through to activate whatever is behind the w

Re: launching standard apps with NSTask

2008-06-10 Thread Brett Powley
o.Bar"), NULL, & fsRefApp, NULL ); Check out http://developer.apple.com/documentation/Carbon/Reference/LaunchServicesReference/ for more details. Cheers, Brett On 11/06/2008, at 9:02 AM, Michael Vannorsdel wrote: [[NSWorkspace sharedWorkspace] launchApplication:@"Sa

Non activating window activates?

2008-05-19 Thread Brett Powley
-- using things other than the First Responder as my action targets seems to be the workaround.) Is this a bug? Should a non activating window be being activated at all? Thanks, Brett ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Ple

Re: Background Application.

2008-05-19 Thread Brett Powley
UI application. Without knowing more about your application, I don't know whether you would need to pass any data between these which of course is a bit more complex than a single application. Cheers, Brett ___ Cocoa-dev mailing list (Cocoa-dev

Re: Background Application.

2008-05-19 Thread Brett Powley
still having a Dock icon, but that doesn't seem to be possible.) Cheers, Brett On 19/05/2008, at 6:44 PM, Hamish Allan wrote: On Mon, May 19, 2008 at 8:21 AM, ninad walvekar <[EMAIL PROTECTED] > wrote: I have an existing GUI application and now i want to run that same applicati

Re: Accessing variables across classes

2008-05-18 Thread Brett Powley
On 19/05/2008, at 3:22 PM, Andrew Farmer wrote: On 18 May 08, at 22:06, Brett Powley wrote: MyAppDelgate *ad = [NSApp delegate]; then do something with [ad myMutableArray] Incorrect. You don't get accessors for instance variables automatically like that. Well yes, but I assumed tha

Re: Accessing variables across classes

2008-05-18 Thread Brett Powley
MyAppDelgate *ad = [NSApp delegate]; then do something with [ad myMutableArray] Cheers, Brett On 19/05/2008, at 3:03 PM, Joey None wrote: Hello all, I hope someone can help me with this. I have my ApplicationDelegate which contains a couple of NSMutableArrays with data in them. Then I

Re: Cocoa bindings and reluctance to use NSPopupButon

2008-05-18 Thread Brett Powley
ly connected up doesn't tell you why they're done that way, and also doesn't tell you about the other subtly-different-but-wrong ways of doing things. Maybe the only way to do it is to work your way up to your own personal "aha" moment by spending days getting

Re: Capture screenshot

2008-05-14 Thread brett
eveloper.apple.com/samplecode/SonOfGrab/index.html Cheers, Brett ___ 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/

Re: how to create PLIST file

2008-05-13 Thread Brett Powley
I don't know specifically about the .qtz file, but you can create a plist programmatically from an NSDictionary rather trivially using the writeToFile:atomically: method. Cheers, Brett ___ Cocoa-dev mailing list (Cocoa-dev@lists.appl

Re: Weird crash in sendEvent - right click vs control click

2008-05-13 Thread Brett Powley
to dispatch something to one of my objects, in which case I'd like to know what it is) Cheers, Brett On 14/05/2008, at 2:33 PM, Andrew Merenbach wrote: Hi, Brett, Is it possible that you have any haxies, or any Input Managers, of any sort installed? Logitech Control Center, for

Weird crash in sendEvent - right click vs control click

2008-05-13 Thread Brett Powley
l click and a right click that would lead the former to cause a crash and the latter not to? (2) What's likely to be the cause of a crash in NSWindow sendEvent: ? Thanks, Brett ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please

[Job Posting] Full Time Cocoa Developer

2008-03-05 Thread Brett Karopczyc
There is a position available for a full-time Cocoa Developer with Bristol Capital, Inc. in Montvale, NJ. We provide information services to the enterprise telecommunications industry under the InfoPlus brand. NOTE: The position requires an intimate knowledge of our internal frameworks a