Linear Alpha Blending

2023-10-10 Thread Jeff McClintock via Cocoa-dev
that I am hoping to achieve with a 50% blend of black and white. I have tried creating the NSColor with various different colorspaces, but this seems to not affect the result of the blending. Any suggestions of how I can achieve this are appreciated! Jeff

Re: NSScreen.screens under multiple displays

2023-06-08 Thread Jeff Szuhay via Cocoa-dev
mailman/options/cocoa-dev/zav%40mac.com> >> >> This email sent to z...@mac.com > > ___ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com > <mailto:Cocoa-dev@lists.apple.com>) > > Please do not post adm

Re: App store question regarding Big Sur

2020-09-18 Thread Jeff Kelley via Cocoa-dev
The behavior you describe has been the way the App Store has worked since the first major macOS update after its release; I wouldn’t expect that to change. Your users are likely *already* using Big Sur, at least some of them, on beta versions. Jeff Kelley slauncha...@gmail.com | @SlaunchaMan

Re: Points vs pixels in a bash script

2020-06-08 Thread Jeff Younker via Cocoa-dev
Just as an aside, points are not Apple-specifc. They are a typesetting unit equivalent to 1/72 of an inch. It's the same unit used for font sizes. -jeff On Mon, Jun 8, 2020 at 2:43 PM Gabriel Zachmann via Cocoa-dev < cocoa-dev@lists.apple.com> wrote: > I know this mailing l

What is the preferred way to set NSTextView content from NSAttributedString?

2020-02-02 Thread Jeff Younker via Cocoa-dev
Situation: - I am working in Swift 5. - I have an instance of an NSTextView. (Call it "V") - The value has already been set once. (Call this value "T1") - V is showing T1. - I have an NSAttributedString from another source. (Call this value "T2") Desired goal: - I want to

Preferred methods for usig NSOutlineView

2019-12-18 Thread Jeff Younker via Cocoa-dev
nd rampant NSOutlineView subclassing? -jeff ___ 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/U

Re: Difficulties with recovering NSAttributedString attachments from saved RTFD

2019-11-27 Thread Jeff Younker via Cocoa-dev
the original code. (!!) *Conclusion* NSTextAttachment.contents seems to be broken, deeply misleading, or (most likely) some other magic is required to get it to read its contents. Thank you for pointing me in the right direction Gary. -jeff On Wed, Nov 27, 2019 at 8:35 PM Gary L. Wade wrot

Difficulties with recovering NSAttributedString attachments from saved RTFD

2019-11-27 Thread Jeff Younker via Cocoa-dev
I am having some difficulty with saving NSAttributedStrings as RTFD and then recovering them with attachments intact. I generate a string containing an attachment and turn that into RTFD. When I turn that RTFD back into an NSAttributedString, I get the .string back, and I get an attachment, but

Re: Thoughts on Objective-C++

2019-11-13 Thread Jeff Szuhay via Cocoa-dev
You made a business decision and now you must live with that decision. Otherwise, this thread is really getting tiresome. > On Nov 13, 2019, at 4:28 PM, Turtle Creek Software via Cocoa-dev > wrote: > > blah blah blah ___ Cocoa-dev mailing list

Fullscreen window problems

2019-10-24 Thread Ray, Jeffrey R. {Jeff} (AFRC-630) via Cocoa-dev
only resulted in memory faults. Thanks in advance! -j -- Jeff Ray M/S 4840A Official Correspondence Only: NASA jeff@nasa.gov Armstrong Flight Research Center

Re: Thoughts on Cocoa

2019-10-02 Thread Jeff Evans via Cocoa-dev
to be valid for the existing API. Jeff On Oct 2, 2019, at 3:37 PM, Rick Mann via Cocoa-dev wrote: You guys have had *YEARS* to get your code bases updated to more modern APIs and architectures. All this whining is bullshit. You've deferred and delayed those updates and despite constant warnings that 32

Re: Thoughts on Cocoa

2019-10-02 Thread Jeff Evans via Cocoa-dev
base behind. Jeff Evans On Oct 2, 2019, at 10:43 AM, Richard Charles via Cocoa-dev wrote: > On Oct 2, 2019, at 11:14 AM, Turtle Creek Software via Cocoa-dev > wrote: > > Sadly, we just decided to abandon the Cocoa update for our app. Great historical overview

Re: Recommendations for cross platform library/framework

2019-08-27 Thread Jeff Evans via Cocoa-dev
except for the UI elements in Objective-C (I don’t see a reason to adopt yet another platform-specific language that would require extensive rewriting, so I’m ignoring Swift). Jeff On Aug 27, 2019, at 12:03 PM, Pier Bover via Cocoa-dev wrote: Writing that logic in C seems very intimidating

Re: Best Xcode machine mid-2019?

2019-06-28 Thread Jeff Szuhay via Cocoa-dev
Compilation is largely an i/o-bound problem. Unless the projects you work on are hideously large and would benefit from parallel processing (splitting the i/o among several processors), your current machine is quite satisfactory. Try this: using your current system, create a 4GB disk

Re: NSManagedObjectContext's undoManager is nil on macOS

2018-09-06 Thread Jeff Nadeau
ss doc. I’ll give it a little bump. Going forward, you can set the undoManager property with your own NSUndoManager after you’ve initialized the context. - Jeff > On Sep 5, 2018, at 7:33 PM, Dave Fernandes wrote: > > The docs say: > "In macOS, a context provides an undo man

Re: How to clear macOS app bundle cache

2018-09-05 Thread Jeff Szuhay
Did you try clearing the defaults persistent domain in your code? Something like the following (the juicy bits are in red) : NSUserDefaults * myAppDefaults; myAppDefaults = [[NSUserDefaults alloc] initWithSuiteName: (NSString*) myAppBundleID ]; then, to clear: #if

Re: is there a way to determine if an NSButton is toggleable ?

2018-08-20 Thread Jeff Nadeau
set both at once. - Jeff > On Aug 20, 2018, at 3:04 AM, Guillaume Laurent > wrote: > > Hi all, > > > For a custom UI I’ve had to write a custom control deriving from NSButton, > which highlights itself in a special way on mouse-over. In the method which > doe

Re: Is "-init" really needed?

2017-08-08 Thread Jeff Szuhay
> On Aug 8, 2017, at 10:12 AM, Steve Mills wrote: > > It's a term that's part of the language, so use it. I know what language I'm > typing in, so I'm not going to confuse [NSThing new] with "new > CPlusPlusClass". Even if I did lose my mind and not understand what I'm >

Re: Doubled Pixels

2017-06-23 Thread Jeff Szuhay
sts or moderator comments to the list. > Contact the moderators at cocoa-dev-admins(at)lists.apple.com > > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/cocoa-dev/jeff%40szuhay.org > > This email sent to j...@szuhay.org __

Reconnecting to a NetService after a stream error

2017-05-03 Thread Jeff Kelley
(for instance, is there a hard number of clients that could conceivably connect to a NetService on an Apple TV)? Thanks in advance for any pointers! Jeff Kelley slauncha...@gmail.com | @SlaunchaMan <https://twitter.com/SlaunchaMan> | jeffkelley.org ___

Re: Current, preferred way to add help to your Mac app?

2017-04-07 Thread Jeff Szuhay
Nevermind. I found the “Apple Help Programming Guide.” My apologies for the noise. > On Apr 7, 2017, at 3:37 PM, Jeff Szuhay <j...@szuhay.org> wrote: > > Andrew Stone wrote this > <http://www.stone.com/The_Cocoa_Files/Help_On_The_Way_.html> > in 2001. Is

Current, preferred way to add help to your Mac app?

2017-04-07 Thread Jeff Szuhay
Andrew Stone wrote this <http://www.stone.com/The_Cocoa_Files/Help_On_The_Way_.html> in 2001. Is it still valid? What is the current, preferred way to add help to your Mac app? Thanks, Jeff Sz. QuarterTil2.com ___ Cocoa-dev mailing list (Coc

Re: More elegance than a long if/else

2017-03-10 Thread Jeff Kelley
I realized after sending that 100 won’t be correct, so you’ll need something like this: batteryIcon.image = UIImage(named: "\(min(10, (_myBatteryLevel % 10) + 1))") Jeff Kelley slauncha...@gmail.com | @SlaunchaMan <https://twitter.com/SlaunchaMan> | jeffkelley.org On Fri, Ma

Re: More elegance than a long if/else

2017-03-10 Thread Jeff Kelley
Something like this should work: batteryIcon.image = UIImage(named: "\((_myBatteryLevel % 10) + 1)") Jeff Kelley slauncha...@gmail.com | @SlaunchaMan <https://twitter.com/SlaunchaMan> | jeffkelley.org On Fri, Mar 10, 2017 at 10:41 AM, Eric E. Dolecki <edole...@gmail.co

Re: WatchOS3 layering?

2017-01-27 Thread Jeff Kelley
Hi Eric, This sounds achievable. You can embed interface objects inside of a WKInterfaceGroup, and that group can have a background image. So you’d put the group in with your background image, and then inside of it would be the semicircle image. Does that sound like it would work? Jeff Kelley

Re: Flipped print previews

2016-11-22 Thread Jeff Evans
to display properly. More often the initial attempt is wrong. Don't you hate those problems that are not reliably repeatable? Yet that also should be a hint, if I could make sense of it. Jeff On Nov 20, 2016, at 11:43 PM, Gary L. Wade wrote: I remembered seeing something like

Flipped print previews

2016-11-20 Thread Jeff Evans
to save it, or print. But this is no way to live. Don't want to have to tell customers to use a work-around. There must be something that needs initializing that is corrected after that first draw. Or is this just a glitch?

Flipped print previews

2016-11-20 Thread Jeff Evans
, or print. But this is no way to live. Don't want to have to tell customers to use a work-around. There must be something that needs initializing that is corrected after that first draw. Or is this just a glitch? Thanks, Jeff

Re: Make WatchKit app show local notification

2016-11-11 Thread Jeff Kelley
The recommended approach here (I think) is to show the notification on whichever device the user is using. Are you implementing any of the UserNotification framework pieces on the phone? Would it work for your purposes if the alert sometimes appeared there? Jeff Kelley slauncha...@gmail.com

Re: Make WatchKit app show local notification

2016-11-10 Thread Jeff Kelley
ensure those conditions, is it better? Jeff Kelley slauncha...@gmail.com | @SlaunchaMan <https://twitter.com/SlaunchaMan> | jeffkelley.org <http://jeffkelley.org/> > On Nov 10, 2016, at 8:50 PM, Charles Jenkins <cejw...@gmail.com> wrote: > > I’m trying to write a

Re: Prioritizing drawing of the important stuff

2016-10-29 Thread Jeff Szuhay
, but if anyone has any suggestions > for things I should look at, that would be really helpful. > > Cheers > Jonny. > ___ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > Please do not post admin requests or moderator comments to the list. > Contact the moderat

Re: Stupid objective-c question

2016-09-21 Thread Jeff Evans
nonmutable) inited with objects. Jeff On Sep 21, 2016, at 9:33 PM, Jens Alfke wrote: > On Sep 21, 2016, at 9:19 PM, Jeff Evans <jev...@ars-nova.com> wrote: > > Is it really true what Jens says, that [[NSArray alloc]init] always > returns the same pointer? > If

Re: Stupid objective-c question

2016-09-21 Thread Jeff Evans
Whoa - maybe I've had too much wine with dinner, but: Is it really true what Jens says, that [[NSArray alloc]init] always returns the same pointer? If that is the case, how can one declare two separate arrays? Jeff On Sep 21, 2016, at 8:50 PM, Jens Alfke wrote: > On Sep

Re: Mysterious crash with NSTableView

2016-08-26 Thread Jeff Szuhay
> On Aug 26, 2016, at 8:44 PM, Sandor Szatmari > wrote: > >> >> However, in your case I wonder what the static analyzer in Xcode tells you >> about the bug you see? > > I believe Andreas mentioned he does not use Xcode as his product is cross > platform, but

Re: length of file from NSFileHandle?

2016-08-26 Thread Jeff Szuhay
> On Aug 26, 2016, at 8:19 PM, Graham Cox wrote: > Apparently a simple task, but no obvious API for it: getting the length > (size) of a file I have a NSFileHandle for. This class has no -length > property, so how can I get it? > > I need to know because I have a

Re: Core Graphics: Is it better to up-sample or down-sample images when drawing into a rect?

2016-08-24 Thread Jeff Szuhay
> On Aug 24, 2016, at 8:02 PM, Britt Durbrow > <bdurb...@rattlesnakehillsoftworks.com> wrote: > > >> On Aug 24, 2016, at 12:59 PM, Jeff Szuhay <j...@szuhay.org> wrote: >> >> I draw my images (clocks) into a “reference” sized rectangle—for simplifi

Re: Core Graphics: Is it better to up-sample or down-sample images when drawing into a rect?

2016-08-24 Thread Jeff Szuhay
> On Aug 24, 2016, at 12:59 PM, Jeff Szuhay <j...@szuhay.org> wrote: > > >> On Aug 24, 2016, at 10:37 AM, Jean-Daniel Dupas <mail...@xenonium.com >> <mailto:mail...@xenonium.com>> wrote: >> >>> Moreover, the performance will greatly d

Re: Core Graphics: Is it better to up-sample or down-sample images when drawing into a rect?

2016-08-24 Thread Jeff Szuhay
> On Aug 24, 2016, at 10:37 AM, Jean-Daniel Dupas wrote: > >> Moreover, the performance will greatly depends the sampling algorithm you >> choose. CGImage provide a couple of algorithms with different tradeoff (see >> CGContextSetInterpolationQuality() and NSImage and

Core Graphics: Is it better to up-sample or down-sample images when drawing into a rect?

2016-08-24 Thread Jeff Szuhay
important for me to know. TIA Jeff Szuhay a.k.a tickt...@quartertil2.com <mailto:t...@quartertil2.com> ___ 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

Re: Sprite Kit app won’t operate in foreground

2016-08-02 Thread Jeff Szuhay
Can your main window become key? In other words, accept inputs? > On Aug 2, 2016, at 5:18 AM, Charles Jenkins wrote: > > A few weeks ago I wrote about a demo app that seemed to expire—it would > work perfectly for a few weeks and then crash whenever opened. > > Carl Hoefs

Re: Vertical orientation of UISlider

2016-07-20 Thread Jeff Kelley
Reminds me of the old days before UICollectionView, where you could have table view cells scroll horizontally by embedding a rotated table view in each cell, then rotating the child table view’s cells in the opposite direction. Jeff Kelley slauncha...@gmail.com | @SlaunchaMan <ht

Re: Vertical orientation of UISlider

2016-07-20 Thread Jeff Kelley
Hi Carl, Have you tried applying a transform to the slider? A simple rotation should do the trick. Jeff Kelley slauncha...@gmail.com | @SlaunchaMan <https://twitter.com/SlaunchaMan> | jeffkelley.org <http://jeffkelley.org/> > On Jul 20, 2016, at 11:48 AM, Car

Re: Properties: A question of style

2016-06-15 Thread Jeff Szuhay
Tuesday? Any close approximation of the title of his talk would be helpful. > On Jun 15, 2016, at 4:47 PM, dangerwillrobinsondan...@gmail.com wrote: > > Watch the Ali Ozer video from the other day at wwdc. > He covers this very topic. ___

Re: CIImage initWithCGLayer is deprecated in 10.11

2016-06-09 Thread Jeff Szuhay
> On Jun 9, 2016, at 4:20 AM, Graham Cox > wrote: > > Why do you draw into a CGLayer rather than a CGImage? For a couple reasons: • Because I draw my shapes into a CGLayer with Quartz2D. I’m not working with images on disk or from

CIImage initWithCGLayer is deprecated in 10.11

2016-06-09 Thread Jeff Szuhay
the deprecated API. So, what is the replacement? TIA Jeff ___ 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: objc [66375] class Foo is implemented in both BundleA and BundleB

2016-05-13 Thread Jeff Szuhay
> On May 11, 2016, at 5:11 PM, Jeff Szuhay <j...@szuhay.org> wrote: >> On May 11, 2016, at 12:08 AM, Jens Alfke <j...@mooseyard.com> wrote: >>> On May 10, 2016, at 11:05 PM, Jeff Szuhay <j...@szuhay.org >>> <mailto:j...@szuhay.org>> wrote: &

Re: objc [66375] class Foo is implemented in both BundleA and BundleB

2016-05-11 Thread Jeff Szuhay
> On May 11, 2016, at 12:08 AM, Jens Alfke <j...@mooseyard.com> wrote: > > >> On May 10, 2016, at 11:05 PM, Jeff Szuhay <j...@szuhay.org >> <mailto:j...@szuhay.org>> wrote: >> >> Class Foo is a base class. It is subclassed in BundleA, Bundl

objc [66375] class Foo is implemented in both BundleA and BundleB

2016-05-11 Thread Jeff Szuhay
of that. (Maybe BundleLoader could be revised to show that.) Thanks, Jeff ___ 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: Air Drop-style sharing between instances of my app?

2016-04-20 Thread Jeff Kelley
That sounds like the perfect use case for using the MultipeerConnectivity framework. At a lower level, you could use Bonjour (though that requires the devices to be on the same network). Jeff Kelley > On Apr 20, 2016, at 9:33 PM, Rick Mann <rm...@latencyzero.com> wrote: > >

Fwd: How to make an app launch on login?

2016-04-20 Thread Jeff Szuhay
012/07/03/the-launch-at-login-sandbox-project>/> This uses the SMLoginItemSetEnabled call in a separate process. I wish someone at Apple would step in here and provide a little direction on which is the best way for an app to launch _itself_ at login. > On Apr 19, 2016, at 2:43 PM,

Re: How to make an app launch on login?

2016-04-19 Thread Jeff Szuhay
Again, I jumped the gun. The preferred way seems to be through the use of launchd

Re: How to make an app launch on login?

2016-04-19 Thread Jeff Szuhay
I spoke too soon; yes, all of this is marked as “available but deprecated on 10.11”. I would hope that Apple would provide sample code to show the preferred new way to do this. > On Apr 19, 2016, at 2:29 PM, Jeff Szuhay <j...@szuhay.org> wrote: > > There was some discussion o

Re: How to make an app launch on login?

2016-04-19 Thread Jeff Szuhay
t; > —Jens > ___ > > 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/Unsub

Re: Alternatives to NSMatrix that uses bindings similar to NSMatrix's bindings

2016-04-07 Thread Jeff Szuhay
Montréal, Québec, Canada > ___ > > 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: calendar & repeating events api

2016-02-16 Thread Jeff Kelley
I would start by looking at EKRecurrenceRule <https://developer.apple.com/library/ios/documentation/EventKit/Reference/EKRecurrenceRuleClassRef/index.html>. Jeff Kelley slauncha...@gmail.com | @SlaunchaMan <https://twitter.com/SlaunchaMan> | jeffkelley.org <http://jeffkelley.o

How to know if an NSView has pending draws

2016-02-04 Thread Jeff Evans
into that call. But the number of rects does not appear to equal the number of draw requests. But there must be some place that contains a queue of upcoming draw requests. If so, is there access to it? I'm hoping this is a dumb question. Thanks, Jeff

Re: How to know if an NSView has pending draws

2016-02-04 Thread Jeff Evans
And bingo, that works perfectly. Looks like needsDisplay is exactly what I wanted. It's easy to check for the one view involved, but I hadn't noticed that property. So maybe it really was a dumb question. Thanks, Jeff On Feb 4, 2016, at 4:06 PM, Clark S. Cox III wrote: > On Feb 4, 2

Re: How to know if an NSView has pending draws

2016-02-04 Thread Jeff Evans
in the appearance. So I figure: the system presumably knows if it is about to send more redraw requests to that view. Is there any way I could know what it knows? Jeff On Feb 4, 2016, at 3:31 PM, Clark S. Cox III wrote: > On Feb 4, 2016, at 15:07, Jeff Evans <jev...@ars-nova.com&

Re: How to know if an NSView has pending draws

2016-02-04 Thread Jeff Evans
a single view - perhaps it would be enough to check needsDisplay! Worth trying. Jeff On Feb 4, 2016, at 4:06 PM, Clark S. Cox III wrote: > On Feb 4, 2016, at 15:52, Jeff Evans <jev...@ars-nova.com> wrote: > > Clark, it's a music app; a piece is composed and placed on the screen;

Re: How to know if an NSView has pending draws

2016-02-04 Thread Jeff Evans
is not mathematically exact, but it is close enough that it would be difficult to notice any discrepancy between the audio and the visual. Jeff On Feb 4, 2016, at 4:52 PM, Doug Hill wrote: Jeff, AV sync issues are definitely tricky. I would be interested in hearing opinions from others on how

Re: How to know if an NSView has pending draws

2016-02-04 Thread Jeff Evans
on, or appears to be. Jeff On Feb 4, 2016, at 4:19 PM, Noah Desch wrote: The `needsDisplay` property will tell you if there are any pending draw requests since the last time the view was drawn, is that what you are looking for? -Noah > On Feb 4, 2016, at 6:07 PM, Jeff Evans <jev...@ars-no

Re: creating draggable NSView

2016-02-03 Thread Jeff Evans
to do anything yet... now we return to our regular programming. With deepest apologies, Jeff On Feb 3, 2016, at 4:28 PM, Jeff Evans wrote: Colleagues, I have been trying to create a draggable NSView for OSX and am stumped by the stubborn refusal of the view frame to change. Here's the essence

creating draggable NSView

2016-02-03 Thread Jeff Evans
IB. This is all programmatic. Does anyone have a clue as to why that frame would not alter after setFrame: with a new value? Thanks, Jeff ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

Re: Using an anchor in NSURL file url

2016-01-21 Thread Jeff Evans
apter does contain the anchor page 3> Yours, Jeff On Jan 21, 2016, at 5:32 PM, Quincey Morris wrote: On Jan 21, 2016, at 17:17 , Jeff Evans <jev...@ars-nova.com> wrote: > > In OSX I'm using an NSURLRequest to load a file url in WKWebView. Works > fine unless I try

Using an anchor in NSURL file url

2016-01-21 Thread Jeff Evans
relativeToURL: baseURL] but this produces a url with the form #anchorname--[path]/filename.html and that doesn't work (opens the file, but ignores the anchor). Is there any way to use an anchor in a file url for WKWebView? Thanks, Jeff ___ Cocoa-dev

Re: Subclassing/Override question

2016-01-04 Thread Jeff Kelley
Hi Dave, For myClassA, you will always have to cast the return value to myClassB if you know that’s what will be returned. For a great blog post on the subject, I give you Mike Ash: https://mikeash.com/pyblog/friday-qa-2015-11-20-covariance-and-contravariance.html Jeff Kelley

Re: Common Date between Swift and ObjC

2014-08-12 Thread Jeff Kelley
; Then, in your bridging header, you’d import Constants.h. Jeff Kelley slauncha...@gmail.com | @SlaunchaMan https://twitter.com/SlaunchaMan | jeffkelley.org On Tue, Aug 12, 2014 at 1:47 PM, Gerriet M. Denkmann gerr...@mdenkmann.de wrote: In ObjC I used to do: CommonDefines.h #define PARAMETER_A

Re: iOS screen physical size (or px density)

2013-11-26 Thread Jeff Kelley
holding it further from their face. If you find that your iPad UI is too small on the iPad mini, then it was likely too small to begin with on the iPad. Jeff Kelley slauncha...@gmail.com | @SlaunchaMan https://twitter.com/SlaunchaMan | jeffkelley.org On Tue, Nov 26, 2013 at 12:00 PM, Maxthon Chan

Re: [OT] iTunes 11.1 Beta

2013-09-19 Thread Jeff Smith
You can use Google to search Apple's dev site... site:https://developer.apple.com iTunes You can also use it to search the archive for this list... site:http://lists.apple.com/archives/cocoa-dev iTunes Jeff Found it now, thanks. It's ok I am an Apple Mac and iOS Developer. The Apple

Re: NSDistributedNotificationCenter and Helper Tool

2013-09-15 Thread Jeff Johnson
Hi Gerriet. You need to use the option NSNotificationPostToAllSessions. -Jeff On Sep 15, 2013, at 12:15 PM, Gerriet M. Denkmann gerr...@mdenkmann.de wrote: I have a Helper Tool, running as root, started via SMJobBless and communicating vie Xpc. Sometimes it does: [[NSOperationQueue

Re: NSMethodSignature throws an exception encoding GLKMatrix4

2013-09-06 Thread Jeff Kelley
for that selector: [[self class] instanceMethodSignatureForSelector:@selector (identityReturningMethod)]; This will crash with the exception in my previous post. Am I correct that this is a bug in +[NSMethodSignature signatureWithObjCTypes:]? Jeff Kelley On Wed, Aug 21, 2013 at 12:51 PM, Marcel Weiher

Re: Threadsafe copy of objective c object

2013-09-03 Thread Jeff Kelley
, ^{ _count = count; }); } Hope this helps! (Note: all code was typed in the e-mail, so may not compile.) Jeff Kelley On Tue, Sep 3, 2013 at 9:34 AM, Jonathan Taylor jonathan.tay...@glasgow.ac.uk wrote: Ah. In my original email I didn't explain *why* it is that ideally I would like to make

Re: Threadsafe copy of objective c object

2013-09-03 Thread Jeff Kelley
Ken is, of course, correct. This is what I get for writing it in my mail client. You’ll want to use dispatch_sync() for reads and dispatch_barrier_async() for writes. Jeff Kelley On Tue, Sep 3, 2013 at 2:30 PM, Ken Thomases k...@codeweavers.com wrote: On Sep 3, 2013, at 9:26 AM, Jeff Kelley

Re: frame puzzle

2013-08-22 Thread Jeff Kelley
If any of appDelegate, appDelegate.buttonController, or appDelegate.buttonController.rotationControl return nil, then the value of appDelegate.buttonController.rotationControl.frame will be a zeroed-out struct. Jeff Kelley On Thu, Aug 22, 2013 at 4:05 PM, David Rowland rowla

NSMethodSignature throws an exception encoding GLKMatrix4

2013-08-21 Thread Jeff Kelley
. Jeff Kelley ___ 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: https

pathForResource:ofType: iOS bug?

2013-07-07 Thread Jeff Smith
No - Use ARC No - Include Unit Tests I added this to the end of application:didFinishLaunchingWithOptions: NSString *path = [[NSBundle mainBundle] pathForResource:@Default ofType:@png]; Anyone else have this problem? thanks Jeff OS X 10.7.5 Xcode 4.6.3

Re: pathForResource:ofType: iOS bug?

2013-07-07 Thread Jeff Smith
Whoops! It looks like it was my program after all. I quit Xcode and threw out all of the derived data and tried it again. Now it's working correctly in the test program. Sorry about that... ___ Cocoa-dev mailing list

Re: Memory not being released in a timely manner

2013-06-05 Thread Jeff Johnson
On Jun 4, 2013, at 12:35 PM, Jens Alfke j...@mooseyard.com wrote: On Jun 4, 2013, at 8:30 AM, Jeff Johnson publicpost...@lapcatsoftware.com wrote: The end of the event loop cycle is immediately before the beginning. Thus, for example, if your app is in the background and not receiving

Re: Memory not being released in a timely manner

2013-06-04 Thread Jeff Johnson
location:NSZeroPoint modifierFlags:0 timestamp:[NSDate timeIntervalSinceReferenceDate] windowNumber:0 context:nil subtype:0 data1:0 data2:0] [NSApp postEvent:event atStart:YES]; This basically tickles the event loop and causes the autorelease pool to drain. -Jeff On Jun 3, 2013, at 10:59 AM

Re: Low-level text, why so hard?

2012-12-24 Thread Jeff Schriebman
], NSFontAttributeName, nil]; CGContextSaveGState(ctx); [theString drawAtPoint:NSMakePoint(x, y) withAttributes:fontAttrs]; CGContextRestoreGState(ctx); CGContextSetTextMatrix(ctx, CGAffineTransformIdentity); } Jeff Schriebman An educated mind can entertain a thought without

Re: sheet is divided horizontally in two shades

2012-12-11 Thread Jeff Johnson
attachments. Could you post the screenshot someone on the web? -Jeff ___ 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: sheet is divided horizontally in two shades

2012-12-11 Thread Jeff Johnson
rdar://problem/11656928 Discolored stripe drawn at bottom of textured non-resizable windows Duplicate of rdar://problem/11716883 It turns out that this only affects windows with content border autosize. If you set the window content border to none, that should fix the problem. -Jeff On Dec

Plus sign key equivalent.

2012-10-14 Thread Jeff Smith
Hi, I'm trying to set the key equivalent for a menu item to the plus sign. Interface Builder won't let you do that. I tried doing it manually with [item setKeyEquivalent:@+]; But to make it work you have to hold down the shift key. Any ideas? thanks Jeff

Re: APN and various apps determining each other present on a device?

2012-10-03 Thread Jeff Kelley
It’s relatively simple: App A registers for a URL scheme, let’s say AppA://. App B asks the system if it knows how to handle AppA:// links. Jeff Kelley On Oct 3, 2012, at 10:36 PM, William Squires wsqui...@satx.rr.com wrote: Let's say a company, IMakeGamesCo, has several games in the App

Re: NSWindowController and nib in framework

2012-09-26 Thread Jeff Johnson
-in Archive Utility fixed the problem. So you might ask your customers about that. -Jeff ___ 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: PubSub Framework Alternative

2012-08-15 Thread Jeff Johnson
framework-ized, and the code is not the greatest, but it works decently, and it's better than nothing. ;-) -Jeff ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Re: Re-targetting URL Handler in users' systems

2012-07-14 Thread Jeff Johnson
Use the LSRegisterURL() function in Launch Services. -Jeff On Jul 14, 2012, at 7:20 AM, Jerry Krinock wrote: I have an app in the field which handles a url. I mean, it has one of these in its Info.plist… keyCFBundleURLTypes/key array dict keyCFBundleURLSchemes

Re: False positive on writeToURL:atomically:encoding:error: ?

2012-06-23 Thread Jeff Kelley
: https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/Strings/Articles/readingFiles.html#//apple_ref/doc/uid/TP40003459-SW5 Jeff Kelley On Jun 23, 2012, at 1:50 PM, Martin Hewitson wrote: Dear list, I have an interesting bug report from a user of an app of mine. The app manages

Re: QTKit from UNIX app?

2012-06-10 Thread Jeff Johnson
. -Jeff On Jun 9, 2012, at 4:33 PM, Todd Heberlein wrote: Probably a naive question, but can I use QTKit (or is there a better library?) to capture images (or videos) inside a UNIX helper application? I've never tried using Cocoa (and related) objects outside a regular Cocoa

Displaying an arbitrary unicode character using CGContextShowTextAtPoint or CGContextShowGlyphsAtPoint

2012-03-30 Thread Jeff Schriebman
. Jeff Schriebman ___ 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

Re: Displaying an arbitrary unicode character using CGContextShowTextAtPoint or CGContextShowGlyphsAtPoint

2012-03-30 Thread Jeff Schriebman
:44 AM, Douglas Davidson wrote: On Mar 30, 2012, at 9:31 AM, Jens Alfke wrote: On Mar 30, 2012, at 9:18 AM, Jeff Schriebman wrote: I have not found a way to use CGContextShowTextAtPoint to easily display such a character and the examples I have found using CGContextShowGlyphsAtPoint() seem

Re: Displaying an arbitrary unicode character using CGContextShowTextAtPoint or CGContextShowGlyphsAtPoint

2012-03-30 Thread Jeff Schriebman
Duncan wrote: On Mar 30, 2012, at 11:45 AM, Jeff Schriebman wrote: I'm not sure how to use the string drawing APIs to directly put a unicode UTF8 character onto a specific X,Y location given a CGContextRef. Both AppKit and UIKit have methods for making a CGContextRef current. Lookup

Re: Displaying an arbitrary unicode character using CGContextShowTextAtPoint or CGContextShowGlyphsAtPoint

2012-03-30 Thread Jeff Schriebman
:19 PM, Jeff Schriebman wrote: Thanks David. My CGContextRef is the current context. I'm just unfamiliar with how to draw a unicode character into it when I don't know the font containing a specific unicode glyph. I'm doing this for OS X 10.7 which is all I need to support. So have

Re: Displaying an arbitrary unicode character using CGContextShowTextAtPoint or CGContextShowGlyphsAtPoint

2012-03-30 Thread Jeff Schriebman
systemFontOfSize:10], NSFontAttributeName, nil]; NSString *upArrow = @\u2B06; [upArrow drawAtPoint:NSMakePoint(100,100) withAttributes:fontAttrs]; On Mar 30, 2012, at 12:47 PM, David Duncan wrote: On Mar 30, 2012, at 12:19 PM, Jeff Schriebman

Re: Displaying an arbitrary unicode character using CGContextShowTextAtPoint or CGContextShowGlyphsAtPoint

2012-03-30 Thread Jeff Schriebman
:(NSPoint)point not NSAttributedString not NSString. Cheers kevin Regards, Jeff Schriebman ___ 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: How to throttle rate of NSInputStream?

2012-03-26 Thread Jeff Kelley
It's always felt like a hack to me, but this will run the run loop for a short time and return: [[NSRunLoop currentRunLoop] runUntilDate:[NSDate date]]; Though in your case, if the first thing it does is process your input stream, that doesn't help. Jeff Kelley On Mar 26, 2012, at 7:13 PM

Re: How to get Mac codesign certificate?

2012-03-17 Thread Jeff Johnson
app to run, so if you're not going to get a cert from Apple (I don't think I can discuss the terms here), you might as well self-sign. -Jeff ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

Re: ARC and blocks

2012-01-26 Thread Jeff Kelley
MyViewController *myController = … It looks awful, yes, but without the first piece we were having extreme memory leaks. Jeff Kelley On Jan 26, 2012, at 5:34 PM, David Duncan wrote: On Jan 26, 2012, at 1:51 PM, Jan E. Schotsman wrote: Hello, This code is given in the Transitioning to ARC Release

Re: ARC and blocks

2012-01-26 Thread Jeff Kelley
On Jan 26, 2012, at 10:45 PM, Roland King wrote: On Jan 27, 2012, at 10:04 AM, Marco Tabini wrote: On 2012-01-26, at 6:09 PM, Jeff Kelley wrote: Without ARC, you would use __block to prevent the block from retaining the object and causing the retain cycle. With ARC, however, the object

Re: capturing self is likely to lead to a retain cycle ..

2011-11-12 Thread Jeff Kelley
the approach of a weak reference to self. Jeff Kelley On Sat, Nov 12, 2011 at 3:14 AM, Roland King r...@rols.org wrote: I have a UIViewController which is presented modally, it has a textfield which allows editing and a model object, call it foo, on which it can attempt to set the 'topicName

  1   2   3   4   5   >