Re: UIDocumentBrowserViewController and file package documents

2017-06-20 Thread Kyle Sluder
On Tue, Jun 20, 2017, at 03:40 PM, davel...@mac.com wrote: > I'm trying out the new UIDocumentBrowserViewController in iOS 11 (using > the iPad simulator). I can get it to create a new document (which is a > file package) for my app, but tapping on the document in the >

Re: Using Quartz Debug to simulate Retina display broken?

2017-04-06 Thread Kyle Sluder
recently? Quartz Debug’s capabilities are tied pretty closely to your specific hardware configuration, which for your model of Mac in particular can vary widely. Please take a sysdiagnose and file a bug report. --Kyle Sluder > > Thanks, > > -- > ___

Re: Sierra Document Handling

2017-04-06 Thread Kyle Sluder
On Thu, Apr 6, 2017, at 06:28 PM, Richard Charles wrote: > > > On Apr 6, 2017, at 11:38 AM, Kyle Sluder <k...@ksluder.com> wrote: > > > > Do you have “Desktop & Documents Folders” enabled in System Preferences > > iCloud > iCloud Drive O

Re: Reference to embedded view controller in IB?

2017-04-06 Thread Kyle Sluder
On Thu, Apr 6, 2017, at 04:25 PM, Jean-Daniel wrote: > > > Le 6 avr. 2017 à 22:35, Kyle Sluder <k...@ksluder.com> a écrit : > > > > On Wed, Apr 5, 2017, at 03:42 PM, Doug Hill wrote: > >> I have a view controller that I instantiate in my Storyboard. This v

Re: Reference to embedded view controller in IB?

2017-04-06 Thread Kyle Sluder
done? Are there other ways to get a reference to the embedded > view controller at runtime? Give an identifier to the embed segue and implement -prepareForSegue: in your root VC to check for this segue and grab its destination VC. --Kyle Sluder > > Thanks. > > Doug

Re: Sierra Document Handling

2017-04-06 Thread Kyle Sluder
On Wed, Apr 5, 2017, at 03:27 PM, Richard Charles wrote: > Since switching to macOS 10.12 Sierra I am getting tons of document > handling messages in the Xcode debug console for my document based > application. > > // Delete existing document then launch app. > > 2017-04-05 13:58:13.795408

Re: Rect for centered text in UILabel?

2017-04-04 Thread Kyle Sluder
ted. So I need to get a CGRect or something of > the > text within the UILabel itself. I know I did this years ago, but I can't > remember how I did it. > > Looking to do this in Swift. Any ideas or things I'm blanking on? I think you’re looking for UILabel.textRect(forBounds:limi

Re: Menu Item Shortcuts Without Menu Items?

2017-03-16 Thread Kyle Sluder
ch might be that the menu item appears twice in VoiceOver. (I haven’t tried it myself.) A more targeted approach might be to attach a delegate to the menu that contains the aliased item, and implement -menuHasKeyEquivalent:forEvent:target:action: to return the Command

Re: Issue with addTitlebarAccessoryViewController on 10.10

2017-03-05 Thread Kyle Sluder
anyone know of a fix or workaround I could use please? Is it possible to reproduce this in a sample app? This should be behaving as documented in the release notes. --Kyle Sluder > > If it comes to it, I could still use the old subview manipulation method > on 10.10 and u

Re: Sometimes all my menus are disabled

2017-02-12 Thread Kyle Sluder
>> On Feb 12, 2017, at 12:36 PM, Andreas Falkenhahn <andr...@falkenhahn.com> >> wrote: > > >> On 12.02.2017 at 21:29 Kyle Sluder wrote: >> >> You’ve wired up every single menu item to a single action in your app >> delegate? That’s certain

Re: Sometimes all my menus are disabled

2017-02-12 Thread Kyle Sluder
e action in your app delegate? That’s certainly non-standard. By default, menus automatically enable/disable their items based on whether the target can perform the action. Perhaps your app delegate is being deallocated, and thus the menu is walking the responder chain and failing to find a responder

Re: Enabling UISearchBar cancel button?

2017-01-23 Thread Kyle Sluder
w to enable it? Thanks! Sorry, Rick. There is no supported way to enable a UISearchBar’s Cancel button while it isn’t active. --Kyle Sluder > > -- > Rick Mann > rm...@latencyzero.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

Re: Connecting NSTextStorage to a string

2016-12-28 Thread Kyle Sluder
ol text editing notifications (possibly by acting as the control’s delegate) to know when to push values to the model. It is expected to use some other means, such as KVO, to push values from the model to the control. Cocoa Bindings intends to do this two-way marshaling on your behalf. --Kyle

Re: AVFoundation and the main thread

2016-12-20 Thread Kyle Sluder
multaneously. And as soon as one of these layers belongs to a view, you must only touch it from the main thread.) --Kyle Sluder > > Also, what about AVPlayerLayer methods like removeFromSuperlayer()? > Is this main thread only as well? ___ Coco

Re: Substituting instance of cell subclass for instance of superclass

2016-11-11 Thread Kyle Sluder
hatever cell class you want. But I'd like to be able to do it to > an NSAlert, for which I don't have a nib. You also have no idea if the NSAlert is already using a custom NSButtonCell subclass—or whether it uses NSControl at all. Your only option here is to reimplement the alert. --Kyle Slud

Re: How to count Atoms

2016-10-07 Thread Kyle Sluder
is in C++), anyone reading the > code is probably going to understand what OSAtomicIncrement32() does just > from its name. OSAtomic.h (except for OSAtomicQueue) is deprecated. Don’t use OSAtomicIncrement32 in new code. --Kyle Sluder > > —Jens __

Re: PDFKit on 10.12

2016-10-05 Thread Kyle Sluder
chip in with insight into how the kit has changed in 10.12. > > If not I might need to go down the route of a TSI. The first thing DTS will ask you is, “what are your bug numbers?” So work on filing those first. A minimally-useful bug report is better than no bug report at all. --Kyle Slude

Re: Triggering a segue from code

2016-09-23 Thread Kyle Sluder
On Sep 22, 2016, at 10:13 PM, Shane Stanley <sstan...@myriad-com.com.au> wrote: > >> On 23 Sep. 2016, at 1:17 pm, Kyle Sluder <k...@ksluder.com> wrote: >> >> -close used to render windows more thoroughly dead > > So can we assume that the close button gene

Re: Triggering a segue from code

2016-09-22 Thread Kyle Sluder
On Thu, Sep 22, 2016, at 02:47 PM, Quincey Morris wrote: > On Sep 22, 2016, at 12:34 , Kyle Sluder <k...@ksluder.com> wrote: > > > > -close asks the window’s delegate (via -windowShouldClose:) if it should > > close. If the window is owned by a window c

Re: Triggering a segue from code

2016-09-22 Thread Kyle Sluder
’s delegate (via -windowShouldClose:) if it should close. If the window is owned by a window controller that’s associated with a document, the document will also get a chance to weigh in via -shouldCloseWindowController:…. It will also send NSWindowWillCloseNotification. -orderOut: just hides the window (rem

Re: Re: Passing param by reference then using within block throws exception

2016-09-22 Thread Kyle Sluder
On Wed, Sep 21, 2016, at 09:22 AM, Steve Mills wrote: > On Sep 21, 2016, at 08:53 AM, Alex Zavatone wrote: > > Stab in the dark here, but I'm stabbing blank. Is there an Instruments > tool or debugging option to detect this? > > Thanks for getting stabby. Fourvel appreciates it

Re: NSMenuItem’s userKeyEquivalent lost if changing title

2016-09-20 Thread Kyle Sluder
dynamic menu items are > disabled, they would normally not contain the dynamic part (info about > selected items). Sounds like a great UI bug report to file, Allan. :) --Kyle Sluder > > > On 20 Sep 2016, at 9:37, Allan Odgaard wrote: > > > Thanks, I’ll switch

Re: Strange toolbar item error

2016-09-18 Thread Kyle Sluder
On Sat, Sep 17, 2016, at 09:24 PM, Shane Stanley wrote: > On 18 Sep 2016, at 3:12 AM, Kyle Sluder <k...@ksluder.com> wrote: > > > >> For anyone seeing the same thing, the solution seems to be to change the > >> max size of the toolbar items to the unexpec

Re: Strange toolbar item error

2016-09-17 Thread Kyle Sluder
On Fri, Sep 16, 2016, at 11:11 PM, Shane Stanley wrote: > On 15 Sep 2016, at 2:54 PM, Kyle Sluder <k...@ksluder.com> wrote: > > > > On Wed, Sep 14, 2016, at 07:50 PM, Shane Stanley wrote: > >> Under 10.12 GM, I'm seeing entries like this in Console: > >&g

Re: Strange toolbar item error

2016-09-14 Thread Kyle Sluder
On Wed, Sep 14, 2016, at 07:50 PM, Shane Stanley wrote: > Under 10.12 GM, I'm seeing entries like this in Console: > > NSToolbarItem () had to adjust the size of > from {38, 25} to the expected size of {40, > 27}. Make sure that this toolbar item view has a valid frame/min/max > size. This is an

Re: How to set up my NSViews?

2016-09-06 Thread Kyle Sluder
traints that AVPlayerView uses to manage its own internal layout are in conflict with its frame. Did you give the AVPlayerView a non-zero frame before inserting it as a subview? If you’re trying to position it using Auto Layout, did you remember to turn .translatesAutoresizingMaskIntoConstraints off?

Re: Mysterious crash with NSTableView

2016-08-29 Thread Kyle Sluder
> On Aug 29, 2016, at 6:39 AM, Andreas Falkenhahn <andr...@falkenhahn.com> > wrote: > >> On 29.08.2016 at 02:10 Kyle Sluder wrote: >> >> Delegates are different because they are often messaged in response to >> various exogenous events. Some of these ev

Re: Mysterious crash with NSTableView

2016-08-28 Thread Kyle Sluder
message the _target_ if it’s been deallocated, one of the target’s _dependencies_ might have been deallocated. These cases are usually found after much swearing and trial-by-fire. Such is the difference between theory and practice. --Kyle Sluder > > -- > Best regards, > Andreas Falk

Re: Mysterious crash with NSTableView

2016-08-26 Thread Kyle Sluder
holder.weakRef = [referent autorelease]; printf("<< Popping autorelease pool\n"); } printf(".weakRef = %p\n", holder.weakRef); return 0; } --Kyle Sluder > -- > Gary L. Wade (Sent from my iPhone) > http://www

Re: runModalForWindow() doesn't re-activate former window upon return

2016-08-25 Thread Kyle Sluder
loop has ended? > > They are both set to a window pointer that doesn't belong to my > application. -mainWindow and -keyWindow don’t return pointers to windows outside of your application. (How could they? Other applications have their own address spaces.) They either return pointers to win

Re: array = [NSArray new] or array = [NSArray array]?

2016-08-19 Thread Kyle Sluder
code. > So for the foreseeable future, the > difference is that +array returns an autoreleased object, meaning that in > ARC code, +new is the better choice. I would not make that assumption. Who says +[NSArray array] constructs anything at all? Try c

Re: NSImage drawInRect deadlock

2016-08-09 Thread Kyle Sluder
On Tue, Aug 9, 2016, at 07:38 AM, Andrew Keller wrote: > Am 08.08.2016 um 8:12 nachm. schrieb Kyle Sluder <k...@ksluder.com>: > > > > On Mon, Aug 8, 2016, at 05:11 PM, Jens Alfke wrote: > >> > >>> On Aug 8, 2016, at 2:54 PM, Aaron Tuller <mandelb..

Re: NSImage drawInRect deadlock

2016-08-08 Thread Kyle Sluder
On Mon, Aug 8, 2016, at 05:11 PM, Jens Alfke wrote: > > > On Aug 8, 2016, at 2:54 PM, Aaron Tuller wrote: > > > > "The following classes and functions are generally not thread-safe. In most > > cases, you can use these classes from any thread as long as you use them > >

Re: awakeFromFetch behaviour change in 10.12?

2016-07-25 Thread Kyle Sluder
wakeFromFetch will be invoked on all the > resulting objects, even if it'd been invoked before. > > Does that seem correct to you? This does not sound like expected behavior. Could you please file a bug report at https://bugreport.apple.com and attach a sample project if at all

Re: Why can't Swift instance methods call class methods without qualification?

2016-06-30 Thread Kyle Sluder
l swift-users list might be a better place to ask this question: https://lists.swift.org/mailman/listinfo/swift-users --Kyle Sluder > > -- > Rick Mann > rm...@latencyzero.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) P

Re: NSService (aka. Bonjour) outside local network

2016-06-24 Thread Kyle Sluder
ricted to the local subnet. > What should be used for domain in this case? Whatever WAB domain(s) are configured on the machine. The macnetworkprog list might be a better resource. --Kyle Sluder > If not: what is the use of domain ≠ “local.” , e.g. domain = “” ? > > Also: I noticed that

Re: quicklook audio sample rates

2016-06-10 Thread Kyle Sluder
interested. At the end of the day, the audio hardware operates at some particular bitrate, so unless your source exactly matches the hardware sample rate there’s likely to be a SRC in the audio pipleline *somewhere*. --Kyle Sluder > > Thanks, > George Toledo > __

Re: Open-file progress dialog with cancel button

2016-06-10 Thread Kyle Sluder
ancel button)? I guess you could handle the parsing in an > NSOperation, but how do you establish the window and make sure > readFromData for that instance doesn't deadlock the rest of the program? Check out +[NSDocument canConcurrentlyReadDocumentsOfType

Re: Doc icon shows up in QuickLook but not Finder

2016-06-07 Thread Kyle Sluder
if I quicklook the document, it shows > the right icon. > > Any suggestions? The app icon took immediately. I tried relaunching the > Finder. I have not tried restarting. Does your corresponding UTI declaration correctly conform to `com.apple.package` and NOT to `public.data`? --Kyle Sluder

Re: NSFileWrapper

2016-06-05 Thread Kyle Sluder
and that teach UTI declare conformance to exactly *one or the other* of the “physical” hierarchies. That means your document package UTI *must not* conform to your flat-file UTI, because then it would conform to both the package and flat-file physical hierarchies, a

Re: Scrolling table view when the keyboard appears

2016-05-24 Thread Kyle Sluder
On Tue, May 24, 2016, at 05:46 PM, Kyle Sluder wrote: > On Tue, May 24, 2016, at 05:37 PM, Alex Zavatone wrote: > > > > On May 24, 2016, at 4:02 PM, Kyle Sluder wrote: > > > > > On Tue, May 24, 2016, at 12:33 PM, Doug Hill wrote: > > >> OK, t

Re: Scrolling table view when the keyboard appears

2016-05-24 Thread Kyle Sluder
On Tue, May 24, 2016, at 05:37 PM, Alex Zavatone wrote: > > On May 24, 2016, at 4:02 PM, Kyle Sluder wrote: > > > On Tue, May 24, 2016, at 12:33 PM, Doug Hill wrote: > >> OK, this might have been more obvious to people, but it finally came to > >> me h

Re: Scrolling table view when the keyboard appears

2016-05-24 Thread Kyle Sluder
table to adjust for the part of the table > offscreen. Animations seem to work much better now. Did you really mean “move the center of the view”? Or did you mean scrolling the center of the viewport? Either way, contentInset is definitely the way to handle this. --Kyle Sluder > > Doug Hil

Re: Application Activation Problem

2016-05-13 Thread Kyle Sluder
o the array) and “active” (where it dequeues an app from the array and asks NSWorkspace to activate it). --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Cont

Re: unwind segue on navigation pop

2016-05-13 Thread Kyle Sluder
it) and all the normal uinav behaviour. The Back button is not customizable in this fashion. Please file an enhancement request at https://bugreport.apple.com. --Kyle Sluder > > Best I’ve found so far is to give the segue a custom identifier (ie make > it a viewcontroller segue) and per

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

2016-05-13 Thread Kyle Sluder
On Fri, May 13, 2016, at 03:23 AM, Jeff Szuhay wrote: > > > On May 11, 2016, at 5:11 PM, Jeff Szuhay wrote: > >> On May 11, 2016, at 12:08 AM, Jens Alfke wrote: > >>> On May 10, 2016, at 11:05 PM, Jeff Szuhay >>> >

Re: Application Activation Problem

2016-05-13 Thread Kyle Sluder
On Fri, May 13, 2016, at 04:46 AM, Dave wrote: > Hi All, > > I’m using: > > [myRunningApp activateWithOptions:(NSApplicationActivateAllWindows | > NSApplicationActivateIgnoringOtherApps)]; > > To activate an Application. Is there any way to tell when the Application > is actually active? I have

Re: presentationControllerForPresentedViewController(…) is called multiple times

2016-05-11 Thread Kyle Sluder
ated properly the next time. > presentationControllerForPresentedViewController() passes in a couple of > parameters required by UIPresentationController's constructor. > > Is this a bug, or is this just how it is? Regardless of whether this is expected, I agree it’s inefficient. Please file a bug report at https://bugreport.apple.

Re: Attempting to load the view of a view controller while it is deallocating is not allowed and may result in undefined behavior

2016-05-11 Thread Kyle Sluder
imulator) while your app is in the background, then reproduce? That’ll at least tell you what’s triggering the message. If further investigation indicates that the alert is being created by the framework, please file a bug report. --Kyle Sluder > > -- > Rick Mann > rm...@latencyzero.com _

Re: UIImagePickerController in popover broken on iOS 9

2016-05-11 Thread Kyle Sluder
On Wed, May 4, 2016, at 01:34 PM, Matt Reagan wrote: > Hi all, > > I've encountered a bug when UIImagePickerController is presented in a > popover on iOS 9, and have been unable to find a workaround / fix. Please file a bug report at https://bugreport.apple.com. --Kyle > > It is easily

Re: Very basic need, very difficult to achieve.

2016-05-03 Thread Kyle Sluder
On Tue, May 3, 2016, at 06:28 PM, Graham Cox wrote: > My main dev machine runs the latest OS - 10.11.4 > > I need to install a 10.9 image on a disk partition for development > testing. > > How? > > Apple’s dev site is getting worse all the time - wasting its time selling > you something you

Re: Trying to understand a permissions failure when writing to ~/Desktop

2016-01-27 Thread Kyle Sluder
. Any app on OS X can open documents from iCloud Drive—the user just has to navigate to iCloud Drive in Finder. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list.

Re: Problem Archiving/Un-archiving Custom Objects

2016-01-22 Thread Kyle Sluder
to -retain for immutable strings, so in the best case this code causes zero copies (when anotherString is immutable), and in the worst case it causes one (when anotherString is mutable). --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) P

Re: Another CFTypeRef question

2016-01-14 Thread Kyle Sluder
be copiable. Are you sure NSMapTable is not better for your needs? --Kyle Sluder ___ 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: NSViewController -identifier unrecognized selecto problem

2015-12-09 Thread Kyle Sluder
ewController only started conforming to NSUserInterfaceItemIdentification in 10.10. Sadly, the are no availability macros for conformances. You might consider filing a bug report about this, but in the meantime you'll need to stop sending -identifier to your view controllers

Re: How to create an empty stack view in code

2015-12-07 Thread Kyle Sluder
On Sun, Dec 6, 2015, at 10:10 AM, Dave wrote: > Hi, > > I’m not sure what to use for the Frame though? It doesn't matter. Auto Layout will change the frame on the first layout pass anyway. --Kyle Sluder > The way this is setup is > that I have a Stack View an empty Stack View

Re: Best Control for Catching a Mouse Click?

2015-12-07 Thread Kyle Sluder
g view. This will also work well with accessibility. --Kyle Sluder ___ 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.co

Re: Hide UINavigationBar and keep UIPageController content static

2015-10-27 Thread Kyle Sluder
welcome. You can pay me back by filing a bug about this issue with an attached sample project. :P --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Con

Re: Hide UINavigationBar and keep UIPageController content static

2015-10-24 Thread Kyle Sluder
vigationBarHidden, the view > stretches to fill the full height of the screen, but I never get a redraw > call, so the drawing is stretched. This is expected. Views that need to redraw when they change size should override -setBounds: to call [self

Re: titleForHeaderInSection wrong section count.

2015-10-19 Thread Kyle Sluder
ot;, "2", "4", "8", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", > "K", "L", "M",

Re: Implications of disabling ATS?

2015-10-02 Thread Kyle Sluder
eb content. Since it’s actually running in a separate > > process, your app won’t be the origin of the insecure HTTP loads, so you > > shouldn’t run into any issues with ATS. > > In my testing so far, WKWebView is subject to the same limits still of > ATS. But SFSafariV

Re: Implications of disabling ATS?

2015-10-02 Thread Kyle Sluder
On Oct 2, 2015, at 2:30 PM, Alex Hall <mehg...@icloud.com> wrote: > > >> On Oct 2, 2015, at 16:01, Kyle Sluder <k...@ksluder.com> wrote: >> >> On Wed, Sep 30, 2015, at 03:45 PM, Mike Abdullah wrote: >>> >>>> On 30

Re: KVO detection of changes to selection in NSOpenPanel

2015-07-20 Thread Kyle Sluder
with this, or is there a third and better way I should be using? It seems pretty straightforward to just implement the delegate method regardless of OS version. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: AfxIsValidAddress

2015-07-18 Thread Kyle Sluder
at Microsoft) elaborates a little more on what something similar actually means: http://blogs.msdn.com/b/oldnewthing/archive/2006/09/27/773741.aspx :P --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: Unable to connect IBOutlet in Swift Xcode 7b2

2015-07-07 Thread Kyle Sluder
(but it does; I copied and pasted the name). Is the Module correct? --Kyle Sluder ___ 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: How to take an Image Snapshot a Window

2015-06-27 Thread Kyle Sluder
/Intro.html --Kyle Sluder ___ 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: iOS - Proper way to check UIEvent or UInternalEvent

2015-06-23 Thread Kyle Sluder
On Jun 23, 2015, at 7:31 PM, Alex Zavatone z...@mac.com wrote: On Jun 23, 2015, at 9:27 PM, Kyle Sluder wrote: On Jun 23, 2015, at 6:10 PM, Alex Zavatone z...@mac.com wrote: Actually, the rotate event is the one that is being caught and sent. If it's a UIEvent and it's listed

Re: iOS - Proper way to check UIEvent or UInternalEvent

2015-06-23 Thread Kyle Sluder
evasive action for you. --Kyle Sluder ___ 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: iOS - Proper way to check UIEvent or UInternalEvent

2015-06-23 Thread Kyle Sluder
if (event.type==UIEventTypeMotion) { } else if (event.type==UIEventTypeTouches) { } … --Kyle Sluder On Jun 23, 2015, at 7:35 PM, Kyle Sluder wrote: On Tue, Jun 23, 2015, at 02:54 PM, Alex Zavatone wrote: We don't care about motion events. We only care about touch events. I'm trying

Re: iOS - Proper way to check UIEvent or UInternalEvent

2015-06-23 Thread Kyle Sluder
? --Kyle Sluder ___ 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

Re: Getting a server to trust the client. (iOS)

2015-06-22 Thread Kyle Sluder
commentary on the effectiveness of that approach. --Kyle Sluder ___ 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: Language options: Objective-C, Swift, C or C++?

2015-06-16 Thread Kyle Sluder
On Tue, Jun 16, 2015, at 02:34 AM, Roland King wrote: And now I know what Kyle looks like too! You know what I look like with a bad haircut and not a lot of sleep. :P BTW, the session is more precisely called What's New in Storyboards, in case anyone is having trouble finding it. --Kyle

Re: Buy music on iTunes

2015-06-15 Thread Kyle Sluder
that would otherwise silently try to buy things that the user didn't want. --Kyle Sluder ___ 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: Forwarding messages to another class

2015-06-06 Thread Kyle Sluder
the message is being sent to, regardless of what class owns the method implementation that happens to be sending the message. So [self classToUseForBackend] will *always* invoke the most-specific (“most-overridden”) implementation of that method. --Kyle Sluder

Re: Looking at self = [super init].

2015-06-02 Thread Kyle Sluder
be a worthwhile change to Swift, please file a Radar. --Kyle Sluder ___ 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 get bold and plain fonts?

2015-05-30 Thread Kyle Sluder
NSFontDescriptor. --Kyle Sluder ___ 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: Anyone else having trouble with the Provisioning Profile?

2015-05-28 Thread Kyle Sluder
communications might have bugs or unintended consequences. I'm sure the Dev Programs team would appreciate all the unbiased data you can gather regarding poor interactions between Ghostery and the Dev Portal. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev

Re: Found It - Problem with Outline View and Manual Memory Management

2015-05-28 Thread Kyle Sluder
, whether super does the right thing is based on whether _your class_ is compiled using ARC.) In any event, please consider moving to a view-based table view. Then you don't need to use a custom cell class at all. --Kyle Sluder ___ Cocoa-dev mailing list

Re: objc_msgSend() selector name: tableView:objectValueForTableColumn:row:

2015-05-27 Thread Kyle Sluder
On May 27, 2015, at 8:17 AM, Scott Ribe scott_r...@elevated-dev.com wrote: On May 27, 2015, at 8:20 AM, Kyle Sluder k...@ksluder.com wrote: The bug is in your code. It has always been a requirement that you nil out any delegate and datasource backpointers before the thing they point

Re: Anyone else having trouble with the Provisioning Profile?

2015-05-27 Thread Kyle Sluder
You’ve all filed Radars about this, yes? --Kyle Sluder On May 26, 2015, at 6:53 PM, Doug Hill cocoa...@breaqz.com wrote: I’ve noticed very long loading times for the pages in the Certs, IDs Profiles sections, but it eventually loads. I just tried it now in Chrome and it took ~5mins

Re: objc_msgSend() selector name: tableView:objectValueForTableColumn:row:

2015-05-27 Thread Kyle Sluder
behind Zeroing Weak References (aka __weak in ARC). --Kyle Sluder ___ 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: 10.10 replacement for SMJobCopyDictionary

2015-05-25 Thread Kyle Sluder
of launchd is to start jobs on-demand. Why are you trying to check if your launchd job is already running? What's to say that as soon as launchd tells you it's running, it doesn't turn around and kill it because its sudden termination suspension count dropped to 0? --Kyle Sluder

Re: Disabling auto-synthesis of property accessors.

2015-05-21 Thread Kyle Sluder
skills are weak. I can't find out how to do this. Anyone care to clue me in? All the responses I see state that it's not possible. Project editor Build Settings Search for synth --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com

Re: NSFontPanel swamping the responder chain (and crashing)

2015-05-20 Thread Kyle Sluder
:. Depending on the message being dispatched and who responds to that action, this method might return the window's delegate, its window controller, or its document. So I'd start by making sure none of those objects have been zombied. --Kyle Sluder ___ Cocoa-dev

Re: NSNotificationQueue Question

2015-05-20 Thread Kyle Sluder
calling out to other code, that code might be very confused when its timers don't fire. --Kyle Sluder ___ 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: Collection Views Breaking

2015-05-20 Thread Kyle Sluder
], and which you can set a breakpoint on). It's unfortunate that the software industry uses the same term for both. It also doesn't help that certain other platforms unify the concepts (essentially trapping on hardware exceptions and re-raising them as software exceptions). --Kyle Sluder

Re: NSFontPanel swamping the responder chain (and crashing)

2015-05-19 Thread Kyle Sluder
0x7fff8fdba102 -[NSFontPanel _canShowEffects] + 44 I'd start by looking at frame #4. --Kyle Sluder ___ 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

Re: Generate a _CFURLAliasData entry for Finder toolbar

2015-05-15 Thread Kyle Sluder
it), and is a sandbox violation. --Kyle Sluder ___ 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: Optionals? A better option!

2015-05-15 Thread Kyle Sluder
of this is why Swift and every other modern programming languages goes the route of Optionals. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Re: Optionals? A better option!

2015-05-14 Thread Kyle Sluder
On Thu, May 14, 2015, at 12:34 PM, Quincey Morris wrote: — It’s used in both signed and unsigned contexts, so it really has 2 values FWIW, NSNotFound is defined as NSIntegerMax, so it has the same value in both signed and unsigned contexts. --Kyle Sluder

Re: Core Data sync between iOS and Mac apps

2015-05-12 Thread Kyle Sluder
and b) did not back off if their attempt to resolve the conflict created another conflict. The result was that if you had two Macs running OmniPresence, and you managed to create a conflict, occasionally both machines would just start generating infinite duplicates of the conflicted document. --Kyle

Re: IB_DESIGNABLE - anyone got it to work?

2015-05-12 Thread Kyle Sluder
On May 12, 2015, at 5:49 PM, Graham Cox graham@bigpond.com wrote: On 13 May 2015, at 10:06 am, Kyle Sluder k...@ksluder.com wrote: On Tue, May 12, 2015, at 06:38 PM, Graham Cox wrote: So it looks as if a property that is IBInspectable may be getting incorrectly set to 0 by IB

Re: IB_DESIGNABLE - anyone got it to work?

2015-05-12 Thread Kyle Sluder
everything you've ever known about IB Plugins. :P Overall, looks promising but right now too buggy to rely on. :( Radars are always welcome. :) --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: Outlets are nil after awakeFromNib call

2015-05-10 Thread Kyle Sluder
-awakeFromNib, since UINib has never sent -awakeFromNib to File's Owner. --Kyle Sluder ___ 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: orderFront: 10.10 vs 10.9

2015-05-08 Thread Kyle Sluder
blindly lock and unlock focus on views. You will have much better results if you actually sit down and figure out where the bug is in your code. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: Subclassing NSPopUpButton

2015-05-08 Thread Kyle Sluder
the runloop in event-tracking mode and pulling events for its own purpose. The window containing the popup button is (conceptually, if not in actuality) no longer key. I believe someone has implemented a workalike to the Xcode functionality. --Kyle Sluder

Re: Subclassing NSPopUpButton

2015-05-08 Thread Kyle Sluder
On Fri, May 8, 2015, at 12:41 PM, Raglan T. Tiger wrote: On May 8, 2015, at 10:55 AM, Kyle Sluder k...@ksluder.com wrote: In that case, the menu is running the runloop in event-tracking mode and pulling events for its own purpose. I create an NSMenu and populate it with NSMenuItem

Re: Help: NSScrollView is resizing its documentView down to (0, 0)

2015-05-07 Thread Kyle Sluder
for that?' Yes, NSScrollView has supported using constraints between the document view and the clip view to specify the contentSize since 10.8. https://developer.apple.com/library/mac/releasenotes/AppKit/RN-AppKitOlderNotes/ (section Auto Layout NSSplitView Improvements) --Kyle Sluder

Re: Spinning the busy indicator

2015-05-01 Thread Kyle Sluder
with a QoS of NSOperationQualityOfServiceBackground and adding it to my queue produces a perfectly smooth and non-blocking app. If I use -addOperationWithBlock: things are screwed up. Please file a radar! --Kyle Sluder ___ Cocoa-dev mailing list

Re: UIAlertView won't set password field as first responder

2015-04-22 Thread Kyle Sluder
need to say it? Stop. Touching. The. Alert. View. Hierarchy. In fact, did you see Jamie's advice to use UIAlertController instead? --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

  1   2   3   4   5   6   7   8   9   10   >