Re: UIDocumentBrowserViewController and file package documents

2017-06-20 Thread Kyle Sluder
esn't work with the file package document created > by NSFileWrapper. > > Am I doing something wrong or is this a bug with file packages? Please file a bug report and send me the number so I can ensure the correct team sees it. Thanks, --Kyle > > Thanks, > Dave ___

Re: Using Quartz Debug to simulate Retina display broken?

2017-04-06 Thread Kyle Sluder
ccessfully 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 wrote: > > > > Do you have “Desktop & Documents Folders” enabled in System Preferences > > iCloud > iCloud Drive Options…? > > No. But the problem

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 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 view > >> contr

Re: Reference to embedded view controller in IB?

2017-04-06 Thread Kyle Sluder
Can this be 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.

Re: Sierra Document Handling

2017-04-06 Thread Kyle Sluder
ibrary not found: > 'com.apple.Desktop'} > > This never happened before Sierra. The app is signed but with no > entitlements. Everthing seems to be working correctly, I just get tons of > messages in the console. Do you have “Desktop & Documents Folders” en

Re: Rect for centered text in UILabel?

2017-04-04 Thread Kyle Sluder
pdated. 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

Re: Menu Item Shortcuts Without Menu Items?

2017-03-16 Thread Kyle Sluder
e 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
ttributeRight. > > Does 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 meth

Re: Sometimes all my menus are disabled

2017-02-12 Thread Kyle Sluder
>> On Feb 12, 2017, at 12:36 PM, Andreas Falkenhahn >> 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 certainly non-standard. > > It'

Re: Sometimes all my menus are disabled

2017-02-12 Thread Kyle Sluder
item to a single 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

Re: Enabling UISearchBar cancel button?

2017-01-23 Thread Kyle Sluder
o 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

Re: Connecting NSTextStorage to a string

2016-12-28 Thread Kyle Sluder
Control 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. -

Re: AVFoundation and the main thread

2016-12-20 Thread Kyle Sluder
ds simultaneously. 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? ___

Re: Substituting instance of cell subclass for instance of superclass

2016-11-11 Thread Kyle Sluder
> use whatever 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

Re: How to count Atoms

2016-10-07 Thread Kyle Sluder
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 ___ Cocoa-dev mailing list (Cocoa-dev

Re: PDFKit on 10.12

2016-10-05 Thread Kyle Sluder
> 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 Sluder > > Jonathan __

Re: Triggering a segue from code

2016-09-22 Thread Kyle Sluder
On Sep 22, 2016, at 10:13 PM, Shane Stanley wrote: > >> On 23 Sep. 2016, at 1:17 pm, Kyle Sluder wrote: >> >> -close used to render windows more thoroughly dead > > So can we assume that the close button generally calls -close? No. You can assume it is morally si

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 wrote: > > > > -close asks the window’s delegate (via -windowShouldClose:) if it should > > close. If the window is owned by a window controller that’s associated > > wi

Re: Triggering a segue from code

2016-09-22 Thread Kyle Sluder
gate (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
NSString *out; foo(&out); printf("%s", out.UTF8String); } return 0; } --Kyle ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comm

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 wrote: > > > >> For anyone seeing the same thing, the solution seems to be to change the > >> max size of the toolbar items to the unexpected "expected" size. &g

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

Re: Strange toolbar item error

2016-09-14 Thread Kyle Sluder
so adamant, I'd be > inclined to question it. > > Anyone else seen it, or have suggestions? What’s your app’s deployment target? What’s the deployment target of your nib (listed in the file inspector while the nib is open for editing)? --Kyle

Re: How to set up my NSViews?

2016-09-06 Thread Kyle Sluder
aints 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 > 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 events might happen transiently &g

Re: Mysterious crash with NSTableView

2016-08-28 Thread Kyle Sluder
ure it doesn’t 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, >

Re: Mysterious crash with NSTableView

2016-08-26 Thread Kyle Sluder
ferent); 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 iPh

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

2016-08-25 Thread Kyle Sluder
> 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 windows in your app (which

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

2016-08-19 Thread Kyle Sluder
at +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 comparing the return values of two calls to [NSArray array] sometime. ;-) I happen think +new is more readable,

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 : > > > > On Mon, Aug 8, 2016, at 05:11 PM, Jens Alfke wrote: > >> > >>> On Aug 8, 2016, at 2:54 PM, Aaron Tuller wrote: > >>> > >>

Re: NSImage drawInRect deadlock

2016-08-08 Thread Kyle Sluder
is simply exhausting the thread pool. Andrew, are you doing anything to limit the amount of decode operations you’re putting on the global queue? --Kyle > > —Jens ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

Re: awakeFromFetch behaviour change in 10.12?

2016-07-25 Thread Kyle Sluder
urnsObjectsAsFaults=YES awakeFromFetch 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 atta

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

2016-06-30 Thread Kyle Sluder
ficial 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)

Re: NSService (aka. Bonjour) outside local network

2016-06-24 Thread Kyle Sluder
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
us why you’re 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
h a cancel 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 canConcurrentlyReadDocum

Re: Doc icon shows up in QuickLook but not Finder

2016-06-07 Thread Kyle Sluder
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
ance 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, and LS will get confused about which UTI should be used for flat files. --K

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, this migh

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
e 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
On Fri, May 13, 2016, at 10:21 AM, Dave wrote: > Hi, > > > You might consider subscribing to > > NSWorkspaceDidActivateApplicationNotification and cycling to the next > > app in the list upon receipt, but the best you can do is best-effort. > > > > --Kyle

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
> 3) Public headers become available for everyone who looks in the app > bundle. They are moved there for all to see. > (not what I want). > > Did I learn correctly? Not quite. Private headers get copied into the Framework bundle, but in a PrivateHeaders subfolder instead of th

Re: Application Activation Problem

2016-05-13 Thread Kyle Sluder
g to the next app in the list upon receipt, but the best you can do is best-effort. --Kyle > > All the Best > Dave ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list

Re: presentationControllerForPresentedViewController(…) is called multiple times

2016-05-11 Thread Kyle Sluder
7;t be updated 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://b

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
(in the Simulator) 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...@lat

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

Re: Very basic need, very difficult to achieve.

2016-05-03 Thread Kyle Sluder
mitted on Apple-branded hardware. That’s probably your best bet. --Kyle ___ 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)li

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

Re: Problem Archiving/Un-archiving Custom Objects

2016-01-22 Thread Kyle Sluder
property (copy)NSString* pString; > > > self.pString = [anotherString copy]; > > Do two new NSString objects get created? (I mean using the synthesized > setter) No. -copy is equivalent to -retain for immutable strings, so in the best case

Re: Another CFTypeRef question

2016-01-14 Thread Kyle Sluder
’s lifetime? Can I > > safely uses the string value of the pointer %p as a key to a dictionary? That said, this is a very strange question. It sounds like you're trying to implement a hash table by working around the requirement that an NSDictionary key's must be copiable. Are you sure

Re: NSViewController -identifier unrecognized selecto problem

2015-12-09 Thread Kyle Sluder
notes, NSViewController 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 yo

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

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
On Tue, Oct 27, 2015, at 11:49 AM, Stevo Brock wrote: > Hi David and Kyle, > > Thanks so much for the insight and pointers. > > I was manually calling setNeedsDisplay() when toggling the navigation bar > hidden, and now I can remove that and just set the contentMode to > .

Re: Hide UINavigationBar and keep UIPageController content static

2015-10-24 Thread Kyle Sluder
he navigationBarHidden, 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

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
On Oct 2, 2015, at 2:30 PM, Alex Hall wrote: > > >> On Oct 2, 2015, at 16:01, Kyle Sluder wrote: >> >> On Wed, Sep 30, 2015, at 03:45 PM, Mike Abdullah wrote: >>> >>>> On 30 Sep 2015, at 17:17, Jens Alfke wrote: >>>>

Re: Implications of disabling ATS?

2015-10-02 Thread Kyle Sluder
lly 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 SFSafariViewController is not. And it's

Re: KVO detection of changes to selection in NSOpenPanel

2015-07-20 Thread Kyle Sluder
nsible way to deal 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)

Re: AfxIsValidAddress

2015-07-18 Thread Kyle Sluder
gineer 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 pos

Re: Unable to connect IBOutlet in Swift Xcode 7b2

2015-07-06 Thread Kyle Sluder
ing the class I specified in the storyboard (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 comme

Re: How to take an Image Snapshot a Window

2015-06-27 Thread Kyle Sluder
ary/mac/samplecode/SonOfGrab/Introduction/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

Re: iOS - Proper way to check UIEvent or UInternalEvent

2015-06-23 Thread Kyle Sluder
o, this a serious issue and you should file a Radar. I cannot recommend any 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 mod

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 wrote: > > > On Jun 23, 2015, at 9:27 PM, Kyle Sluder wrote: > >>> On Jun 23, 2015, at 6:10 PM, Alex Zavatone wrote: >>> >>> Actually, the rotate event is the one that is being caught and sent. >&

Re: iOS - Proper way to check UIEvent or UInternalEvent

2015-06-23 Thread Kyle Sluder
o so. Barring that, just do 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

Re: iOS - Proper way to check UIEvent or UInternalEvent

2015-06-23 Thread Kyle Sluder
x27;t you comparing against UIEventTypeTouches? --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/Unsubscri

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

2015-06-22 Thread Kyle Sluder
IM and Trillian provides some 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-ad

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.

Re: Buy music on iTunes

2015-06-15 Thread Kyle Sluder
apps 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 co

Re: Forwarding messages to another class

2015-06-06 Thread Kyle Sluder
uses purely dynamic dispatch. `self` always refers to the instance 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

Re: Looking at self = [super init].

2015-06-02 Thread Kyle Sluder
> this). If you think this would 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

Re: How to get bold and plain fonts?

2015-05-30 Thread Kyle Sluder
uery for fonts with certain traits, you're much better off using 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 c

Re: Anyone else having trouble with the Provisioning Profile?

2015-05-28 Thread Kyle Sluder
etwork 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

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

2015-05-28 Thread Kyle Sluder
-copyWithZone: to super should do the right thing. (Yes, 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 _

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

2015-05-27 Thread Kyle Sluder
> On May 27, 2015, at 8:17 AM, Scott Ribe wrote: > >> On May 27, 2015, at 8:20 AM, Kyle Sluder 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 to

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

2015-05-27 Thread Kyle Sluder
en. This was a large motivation 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 co

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 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: 10.10 replacement for SMJobCopyDictionary

2015-05-25 Thread Kyle Sluder
ng The point 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 coun

Re: Disabling auto-synthesis of property accessors.

2015-05-21 Thread Kyle Sluder
roject. > > My google 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

Re: NSNotificationQueue Question

2015-05-20 Thread Kyle Sluder
they're doing… if you start 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

Re: Collection Views Breaking

2015-05-20 Thread Kyle Sluder
eption raise], 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 excep

Re: NSFontPanel swamping the responder chain (and crashing)

2015-05-20 Thread Kyle Sluder
sages when trying to figure out what to return from -supplementalTargetForAction:. 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

Re: NSFontPanel swamping the responder chain (and crashing)

2015-05-19 Thread Kyle Sluder
om.apple.AppKit0x7fff8fdba102 -[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

Re: Generate a _CFURLAliasData entry for Finder toolbar

2015-05-15 Thread Kyle Sluder
app is expecting 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 Hel

Re: Optionals? A better option!

2015-05-15 Thread Kyle Sluder
ng-causes-undefined-behavior And all 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 comme

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

Re: IB_DESIGNABLE - anyone got it to work?

2015-05-12 Thread Kyle Sluder
> On May 12, 2015, at 5:49 PM, Graham Cox wrote: > > >> On 13 May 2015, at 10:06 am, Kyle Sluder 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 >>&g

Re: IB_DESIGNABLE - anyone got it to work?

2015-05-12 Thread Kyle Sluder
r, one of the tricks to getting along with IBInspectable is forgetting 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

Re: Core Data sync between iOS and Mac apps

2015-05-12 Thread Kyle Sluder
the conflicted document. --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 y

Re: Outlets are nil after awakeFromNib call

2015-05-10 Thread Kyle Sluder
ementation detail. On iOS, you won't get a second -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 comme

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

Re: Subclassing NSPopUpButton

2015-05-08 Thread Kyle Sluder
sible. In that case, the menu is running 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 Xco

Re: orderFront: 10.10 vs 10.9

2015-05-08 Thread Kyle Sluder
an explicit lockFocus > cured it. Please don't 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@

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

2015-05-07 Thread Kyle Sluder
wn* contentSize. > > But would it use constraints 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-

Re: Spinning the busy indicator

2015-05-01 Thread Kyle Sluder
g my own NSOperation 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

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

2015-04-22 Thread Kyle Sluder
On Wed, Apr 22, 2015, at 06:03 PM, Jens Alfke wrote: > > Kyle, you may have forgotten that -textFieldAtIndex: is a method > specifically declared in UIAlertView. It’s not some general-purpose > method inherited from UIView. The documentation (see below) even > helpfully tells you

  1   2   3   4   5   6   7   8   9   10   >