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

2015-04-22 Thread Kyle Sluder
that -didPresentAlertView: is getting called earlier than it used to, maybe before the alert is actually fully presented. So try adding a delayed-perform so the text field’s focus will get set slightly later. This diagnosis seems likely, but I don't like the prescription, Doctor. ;-) --Kyle Sluder

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

2015-04-22 Thread Kyle Sluder
support. But stop messing with the internals of UIAlertView! --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: UIAlertView won't set password field as first responder

2015-04-22 Thread Kyle Sluder
UIAlertController on platforms where it exists. It already has the correct first responder you desire. --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: UIAlertView has zero bounds

2015-04-20 Thread Kyle Sluder
On Mon, Apr 20, 2015, at 05:59 PM, Michael Crawford wrote: The method for iOS 5 and later on this page looks good: Please stop reaching in to the UIAlertView hierarchy. As has been documented forever, this is not supported. --Kyle Sluder ___ Cocoa

Re: UIAlertView has zero bounds

2015-04-20 Thread Kyle Sluder
on iOS. --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: User interface unresponsive in window

2015-04-17 Thread Kyle Sluder
NSEventTrackingRunLoopMode). Either way, the result is that code sets up a timer or delay-perform that never fires, which might explain the symptoms you're seeing. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: Master - Detail: How to get back?

2015-04-16 Thread Kyle Sluder
it’s titled “Manual Segue” to emphasize that this is an unwind segue which you must invoke yourself via -performSegueWithIdentifier:sender:. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: Master - Detail: How to get back?

2015-04-16 Thread Kyle Sluder
, we appreciate bugs that explain why the current design doesn't work for a particular use case. --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: How to remove iPad popover?

2015-04-15 Thread Kyle Sluder
On Wed, Apr 15, 2015, at 12:00 AM, Kyle Sluder wrote: Segues are transient objects that only exist Er, I meant that only exist long enough to perform their action. In other words, if you perform a popover segue, that UIStoryboardSegue object ceases to exist once the popover is onscreen. --Kyle

Re: Master - Detail: How to get back?

2015-04-15 Thread Kyle Sluder
. On the Properties Inspector for that newly-created segue, give it an identifier. 5. Wire up your bar button item to a method that uses -performSegueWithIdentifier:sender to trigger the unwind. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev

Re: layout method not getting called on Content View

2015-04-15 Thread Kyle Sluder
the ContentView. I thought the obvious place to do this was layout, but it never seems to get called? As documented, -layout is only called if Auto Layout is enabled or your view is layer-backed. How can I manually lay out the Content View? I recommend you switch to Auto Layout. --Kyle

Re: layout method not getting called on Content View

2015-04-15 Thread Kyle Sluder
, you shouldn't be setting frames with Auto Layout enabled. They'll get stomped on the next layout passed. You might want to watch the introductory videos available at apple.com/wwdc. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com

Re: layout method not getting called on Content View

2015-04-15 Thread Kyle Sluder
On Wed, Apr 15, 2015, at 03:02 PM, Kyle Sluder wrote: You might want to watch the introductory videos available at apple.com/wwdc. Whoops, the video archive is actually located at https://developer.apple.com/videos/wwdc. You might start with the Cocoa Autolayout video from WWDC 2011: https

Re: How to remove iPad popover?

2015-04-14 Thread Kyle Sluder
. But then: how to get the UIStoryboardPopoverSegue ? Segues are transient objects that only exist, and there is no reason to suspect that UISplitViewController uses them to present the popover. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev

Re: NSButton Mouse Up/Down Events

2015-04-11 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: Where is kUCHighSurrogateRangeStart in Swift 1.2

2015-04-09 Thread Kyle Sluder
/CarbonCore.framework/Versions/A/Headers/TextCommon.h . How to make Swift recognise this file? Are you importing CoreServices? Did you try referring to the symbol as `CoreServices.kUCHighSurrogateRangeStart`? --Kyle Sluder ___ Cocoa-dev mailing list

Re: addTarget: forControlEvents: ?

2015-04-07 Thread Kyle Sluder
:) forControlEvents:UIControlEventTouchDownInside]; What is the Equivalent for Mac/Cocoa? The Mac does not support multiple targets for a single control. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

Re: Converting colorspace of a CGColor

2015-04-04 Thread Kyle Sluder
On Sat, Apr 4, 2015, at 03:13 AM, edward m taffel wrote: I meant the ColorSync api (what did you think I meant?) but was not aware iOS did not rely on ColorSync, The ColorSync API has been deprecated on OS X since 10.6, and has never existed on iOS. --Kyle Sluder

Re: NSOpenPanel accessoryView clicks must hit pixels to work

2015-04-01 Thread Kyle Sluder
enclosing all your controls in an NSBox or other opaque-enough superview. Hello, radar://20346986. Thanks for filing. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

Re: setFrame doesn't work if I put the view into UINavigationController?

2015-03-29 Thread Kyle Sluder
interface. --Kyle Sluder 在 2015/3/29 15:40, Kyle Sluder 写道: On Sun, Mar 29, 2015, at 01:26 AM, GongHao [龚浩] wrote: Thanks, Eventually I got it work by doing it in navigationController:didShowViewController:animated: UINavigationController will set the content view controller's view size

Re: setFrame doesn't work if I put the view into UINavigationController?

2015-03-29 Thread Kyle Sluder
into a UINavigationController, setFrame doesn't work any more. Anyone knows how I can get it work well? As per the above, the navigation controller owns this frame. It is not yours to change. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev

Re: setFrame doesn't work if I put the view into UINavigationController?

2015-03-29 Thread Kyle Sluder
is not in charge of its view's frame. If you need the content of a view controller's view to be positioned differently from where the parent view controller decides the view should be positioned, you need to add that content as a _subview_ of your VC's view. What are you actually trying to achieve? --Kyle

Re: Segue exit action when using default Settings button

2015-03-28 Thread Kyle Sluder
app via the Home button. If they toggle a setting and leave, then re-enter your app via a link or other means, they expect their change to have been persisted. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

Re: How to Extend Swift Dictionary?

2015-03-27 Thread Kyle Sluder
find this confusing, 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: All of a sudden, app security exception?

2015-03-27 Thread Kyle Sluder
use exceptions for flow control. A higher stack frame might catch this exception as a normal part of execution. Change your Exception breakpoint type from All to Objective-C to avoid breaking into the debugger when these exceptions are thrown. --Kyle Sluder

Re: Inserting a task into the run loop

2015-03-22 Thread Kyle Sluder
SPICE. In my undergrad, I used a Windows program that was built on top of XSPICE. I just looked, and XSPICE is in the public domain: http://users.ece.gatech.edu/mrichard/Xspice/ --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com

Re: Swapping views in print panel

2015-03-22 Thread Kyle Sluder
trying to create a magic mirror to the one living in your document window. --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: Inserting a task into the run loop

2015-03-21 Thread Kyle Sluder
On Sat, Mar 21, 2015, at 10:27 PM, Graham Cox wrote: I have a requirement that runs my code exactly once per run loop, and I'm wondering what the modern preferred way to do this is. Use a run loop observer? --Kyle Sluder ___ Cocoa-dev mailing list

Re: Why is NSString.UTF8String unavailable in Swift?

2015-03-21 Thread Kyle Sluder
really a good idea). Then what would be the best way, given a String, to pass it to a C API that wants a char*? String has a .utf8 property that returns a UTF8View. UTF8View is a Collection of UInt8, and therefore a SequenceType. Array has an initializer that takes a SequenceType. --Kyle

Re: All buttons lost focus ring on Yosemite

2015-03-17 Thread Kyle Sluder
while still maintaining the old one. Just so you know, you can link against the 10.8 SDK and set your minimum deployment target to 10.7. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

Re: Finding the use of a private API

2015-03-16 Thread Kyle Sluder
On Mon, Mar 16, 2015, at 04:57 PM, Rick Mann wrote: Seriously? There's no existing tool to examine the loader information to see where the call sites are for a given symbol? Sure there is. http://hopperapp.com --Kyle Sluder ___ Cocoa-dev mailing

Re: highlight a nsview on click-drag?

2015-03-15 Thread Kyle Sluder
region. --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: All buttons lost focus ring on Yosemite

2015-03-12 Thread Kyle Sluder
resolution. Have you filed a Radar about that? Thanks, --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: All buttons lost focus ring on Yosemite

2015-03-09 Thread Kyle Sluder
category methods with some unique-to-you prefix. --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: All buttons lost focus ring on Yosemite

2015-03-06 Thread Kyle Sluder
, but it doesn’t do anything related to drawing, it just defines and implements some convenient methods for finding subviews and superviews of a certain class. Please post the code for this category. Maybe it's colliding with an internal implementation detail of the focus ring mechanism. --Kyle

Re: NSString stringByAbbreviatingWithTildeInPath and Sandboxing

2015-03-05 Thread Kyle Sluder
On Thu, Mar 5, 2015, at 11:30 AM, Jon Baumgartner wrote: That bug has gotten no response whatsoever from Apple. Any advice on how to proceed? Patience. :) Internal activity on a bug is rarely reflected to the external developer, unless they need to verify the fix or provide additional

Re: NSScrollview general question

2015-03-04 Thread Kyle Sluder
be toggled in System Preferences General Show Scroll Bars… --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: NSScrollview general question

2015-03-04 Thread Kyle Sluder
it. Or else there should be an additional setting in NSScrollView, -setAutohidesScrollersAndThisTimeIReallyMeanIt:NO Subclass NSScroller and override +isCompatibleWithOverlayScrollers to return NO. Then assign an instance of this subclass via -setHorizontalScroller:. --Kyle Sluder

Re: Mac OS X - Inter-Application Communications

2015-03-03 Thread Kyle Sluder
be greatly appreciated. The modern way to do this would be to have an XPC service exclusively own the database, and have all other applications talk to the XPC service to request data. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev

Re: Mac OS X - AppDelegate applicationDidFinishLaunching

2015-03-03 Thread Kyle Sluder
it in -applicationDidFinishLaunching:. Usually you create your app's main window controller here. --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: Mac OS X - AppDelegate applicationDidFinishLaunching

2015-03-03 Thread Kyle Sluder
controller is inside the main nib, and again because it's acting as File's Owner of the window's nib. --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: Error migrating: Unacceptable type of value for attribute

2015-02-28 Thread Kyle Sluder
Objective-C Exceptions”. Yes, “All Objective-C Exceptions” will catch it. --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: Exception on launch when clicking on an NSUserNotification

2015-02-27 Thread Kyle Sluder
at objc_exception_throw. You can select frame 0 and print the first argument (`po $rdi` on x86-64). --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: NSTask pseudo-TTY troubles

2015-02-25 Thread Kyle Sluder
descriptive, but this is most likely not going to be the most helpful place to ask terminal emulation questions. --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: Convert CGFloat to NSNumber

2015-02-24 Thread Kyle Sluder
On Tue, Feb 24, 2015, at 04:57 AM, Charles Jenkins wrote: My latest fruitless attempt has involved trying to simply cast the value into something for which NSNumber has a corresponding init():     let size:Float = font.pointSize as Float     let points = NSNumber( float: size ) You need to

Re: Displaying multiple errors in NSOpenPanel beginSheetModalForWindow:completionHandler:

2015-02-24 Thread Kyle Sluder
} }]; // end beginSheetModalForWindow }]; // end performActivityWithSynchronousWaiting } --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: NSOpenPanel() crash in Swift 1.1 -- SOLVED?

2015-02-23 Thread Kyle Sluder
-C Exceptions because of some problem with NSOpenPanel in C++. As soon as I did that, all NSOpenPanel crashes stopped. Does this mean you were misinterpreting being stopped in the debugger for actually having crashed? --Kyle Sluder ___ Cocoa-dev mailing

Re: Instantiate NSString from NSURL in Swift

2015-02-23 Thread Kyle Sluder
On Mon, Feb 23, 2015, at 01:48 PM, Marco S Hyman wrote: lowerCaseString is a non optional property. Therefore it makes no sense to write someString.lowercaseString? or someString.lowercaseString! It's chained through an optional access though. So the type of foo?.lowercaseString is String?.

Re: get class of a method's returned object

2015-02-23 Thread Kyle Sluder
On Mon, Feb 23, 2015, at 03:45 PM, Kyle Sluder wrote: On Mon, Feb 23, 2015, at 03:22 PM, BareFeetWare wrote: @interface NSObject (Private) - (NSString *) _shortMethodDescription; @end NSString *fullMethodList = [[self class] _shortMethodDescription]; which gives the full header

Re: get class of a method's returned object

2015-02-23 Thread Kyle Sluder
with uncaught exception of type NSException zsh: abort /tmp/foo --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: NSOpenPanel() crash in Swift 1.1 -- SOLVED?

2015-02-23 Thread Kyle Sluder
On Mon, Feb 23, 2015, at 04:08 PM, Bill Cheeseman wrote: On Feb 23, 2015, at 5:02 PM, Charles Srstka cocoa...@charlessoft.com wrote: That’s not a crash. That’s just some C++ code deep down in the system somewhere using exceptions as flow control. It sure wasted a lot of my

Re: get class of a method

2015-02-22 Thread Kyle Sluder
On Sun, Feb 22, 2015, at 12:11 PM, Jens Alfke wrote: On Feb 22, 2015, at 9:30 AM, Kyle Sluder k...@ksluder.com wrote: The compiler does keep type info for properties, but that’s not actually documented. It’s documented in the “Declared Properties” section of the “Objective-C

Re: get class of a method

2015-02-22 Thread Kyle Sluder
of method arguments. The compiler does keep type info for properties, but that’s not actually documented. --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: Color fun with IBOutlet named appNameLabel

2015-02-22 Thread Kyle Sluder
) sets the label color based on the outlet name. Aaahhhrrrgg. This is on Yosemite, Xcode 6.1.1. Purely informational in case someone else encounters this. Seems like addressLabel is another magic IBOutlet name that triggers the color-setting behavior. Have you filed a Radar? --Kyle

Re: get class of a method

2015-02-22 Thread Kyle Sluder
of object a method is declared to return. And that information simply is not available. --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

Re: -beginSheet:modalForWindow:modalDelegate:didEndSelector

2015-02-20 Thread Kyle Sluder
On Fri, Feb 20, 2015, at 12:54 PM, Raglan T. Tiger wrote: My App has one window which is displayed. I want to display a sheet when a button is clicked. In the action for the button click I do: ETAboutWindowController *windowController = [[ETAboutWindowController alloc]

Re: Connecting a button to MyView zeros integers

2015-02-13 Thread Kyle Sluder
-initWithCoder: method is being called? This depends on whether the prefer coder checkbox was checked when the XIB was authored. If that checkbox is checked, instantiation behaves like iOS, where custom views get -initWithCoder: instead of -initWithFrame:. --Kyle Sluder

Re: ARC dealloc best pratice

2015-02-06 Thread Kyle Sluder
be concerned with memory management. Removing observers, unbinding, unregistering notifications, and timer invalidation all happens in -viewWillMoveToWindow: or another similar place. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: Networking framework crash

2015-02-05 Thread Kyle Sluder
On Thu, Feb 5, 2015, at 05:54 PM, Graham Cox wrote: On 6 Feb 2015, at 6:48 am, Greg Parker gpar...@apple.com wrote: You can use getrlimit(RLIMIT_NOFILE, …) to query the limit in your process, and setrlimit(RLIMIT_NOFILE, …) to attempt to raise it. The default limit may be as low as

Re: Networking framework crash

2015-02-05 Thread Kyle Sluder
to get a process on 10.10 to do by default yet barring making launchd launch it. Have you installed Server.app (or upgraded from OS X Server)? --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: Resolving bizarre autolayout crashes.

2015-02-04 Thread Kyle Sluder
to add a UIView as a subview, pin its sides to its superview, and constrain _that_ view's height. --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: Job postings at Cocoa mailing list

2015-02-02 Thread Kyle Sluder
bounced. The address for moderators is cocoa-dev-adm...@lists.apple.com, which is mentioned at the bottom of this page: https://lists.apple.com/mailman/listinfo/cocoa-dev --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: copyWithZone archive/unarchive

2015-01-30 Thread Kyle Sluder
, but that may be preferable to devoting a chunk of time to a wholesale conversion. --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: How to avoid user interaction in WebView

2015-01-30 Thread Kyle Sluder
window. Especially since you probably want any of these actions to dismiss the screensaver. You’ll want to be careful to restrict this only to the window that draws your screensaver, and only to keyboard/mouse/other input events. --Kyle Sluder

Re: Modernising dragging problem

2015-01-30 Thread Kyle Sluder
the source implement the required method -[NSDraggingSource draggingSession:sourceOperationMaskForDraggingContext:]? This is the new replacement for -draggingSourceOperationMaskForLocal:. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com

Re: NSString stringByAbbreviatingWithTildeInPath and Sandboxing

2015-01-29 Thread Kyle Sluder
and replace occurrences of that with a tilde, but then you have to worry about encodings and all that muck. Since there’s no security risk here, it’s reasonable to ask that the existing API work in a sandbox too. --Kyle Sluder On Jan 29, 2015, at 7:45 AM, Jon Baumgartner j

Re: NSTableCellView Constraints?

2015-01-28 Thread Kyle Sluder
like a good enhancement request to file here might be: When converting a table view from cell-based to view-based, Interface Builder should automatically add constraints that fill the cell views. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev

Re: Torrential logging output from AVPlayer

2015-01-28 Thread Kyle Sluder
using AVPlayer. I'd appreciate a solution as well. 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

Re: Detecting Managed Object Property Change From Undo Redo

2015-01-27 Thread Kyle Sluder
On Tue, Jan 27, 2015, at 01:06 PM, Richard Charles wrote: On Jan 27, 2015, at 11:28 AM, Kyle Sluder k...@ksluder.com wrote: Historically, I've not been a big Core Data user, but does -[NSManagedObject setPrimitiveValue:forKey:] not do what you want? That is a key-value coding method

Re: NSString stringByAbbreviatingWithTildeInPath and Sandboxing

2015-01-27 Thread Kyle Sluder
/current_user portion of the path with a tilde. So how do I get /Users/current_user/file.txt to output as ~/file.txt when my app is sandboxed? Could you please file a Radar describing your use case and share the number here? --Kyle Sluder ___ Cocoa

Re: NSTableCellView Constraints?

2015-01-27 Thread Kyle Sluder
to mimic the behavior you get with auto layout disabled. This makes it possible to compile, debug, and test your app before you've set up all your constraints. Without this feature, all your underspecified views get resized to (0,0,0,0). --Kyle Sluder

Re: Detecting Managed Object Property Change From Undo Redo

2015-01-27 Thread Kyle Sluder
. The custom primitive accessor can’t use Apple’s backing store because the private internal store used by Core Data for managed objects is not exposed. Historically, I've not been a big Core Data user, but does -[NSManagedObject setPrimitiveValue:forKey:] not do what you want? --Kyle Sluder

Re: Detecting Managed Object Property Change From Undo Redo

2015-01-25 Thread Kyle Sluder
] context:observationContext]; } --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

Re: setApplicationIconImage:

2015-01-21 Thread Kyle Sluder
On Thu, Jan 22, 2015, at 01:03 AM, Rick C. wrote: Thanks for the reply. But how can I have multiple icon files in the bundle and then choose the one I want? You can't. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: recycleURLs doesn't enable Put Back or Undo in Finder

2015-01-19 Thread Kyle Sluder
, select the file, and choose Put Back. --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

Re: recycleURLs doesn't enable Put Back or Undo in Finder

2015-01-19 Thread Kyle Sluder
you trash a file in Finder, or if you trash it via AppleScript. Ah. You should certainly file a bug on Put Back. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list

Re: A Polite Request of Apple's Bug Triage Committee

2015-01-10 Thread Kyle Sluder
DTS and inquiring about the status of your bug. --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: deny file-read-data after launch

2015-01-09 Thread Kyle Sluder
. If NSPathControl needs to read the resource to determine, say, what icon to provide in a path segment, it will call -startAccesingSecurityScopedResource on its own. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: deny file-read-data after launch

2015-01-08 Thread Kyle Sluder
be Spotlight trying to do its best to fulfill your request. --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: URLByResolvingBookmarkData not case sensitive

2015-01-06 Thread Kyle Sluder
componentsToDisplayForPath:]. Then you don’t even need to canonicalize anything yourself. --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: Rearranging NSOutlineView via drag-and-drop

2015-01-05 Thread Kyle Sluder
to keep track of it myself. Use -rowForItem: and -viewAtColumn:row:makeIfNecessary:. But you might also want to file a Radar on -reloadItem: not actually requesting a new view. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please

Re: system sounds in iOS

2014-12-20 Thread Kyle Sluder
not a lawyer, nor am I making statements on behalf of Apple Legal. --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: Issues with applications running on background (Alarm Application)

2014-12-16 Thread Kyle Sluder
that? No. There is a hard limit of how long a background task will keep an app alive. (It’s on the order of a few minutes.) --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

Re: WTF is happening?

2014-12-13 Thread Kyle Sluder
code. --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: CGDisplayCreateImageForRect

2014-12-03 Thread Kyle Sluder
, can you just use NSReadPixel? That function has existed for a couple of decades. :) --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

Re: CGDisplayCreateImageForRect

2014-12-02 Thread Kyle Sluder
/library/mac/samplecode/SonOfGrab/Listings/Controller_m.html#//apple_ref/doc/uid/DTS10004490-Controller_m-DontLinkElementID_4 --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

Re: App fails on Yosemite - Cannot remove an observer

2014-12-01 Thread Kyle Sluder
malfunction of the app). WOA. This is NOT the way to solve this problem! NSView and NSScrollView (may) do important work in -setWindow:! You just haven't noticed what you’ve broken yet. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev

Re: wits end with nsview and nsrectfill()

2014-11-30 Thread Kyle Sluder
with the drawing pass. --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: -magnifyWithEvent: changed in Yosemite?

2014-11-16 Thread Kyle Sluder
that, which would give you the opportunity to use the existing GPU cache of your drawing. --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

Re: How to obtain paths of laid-out text

2014-11-11 Thread Kyle Sluder
aggressive caching in 10.10). What are you actually trying to do? That is, why and to what degree does it matter when and how often -showPackedGlyphs: is called? Also, have you tried disabling discontiguous layout? --Kyle Sluder ___ Cocoa-dev mailing

Re: Nil Coalescing and Optional Chaining?

2014-11-07 Thread Kyle Sluder
/languages/swift --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: Subclassing NSView in Yosemite?

2014-11-06 Thread Kyle Sluder
they’ll be in a nib or not, but it’s the only way the language can back up its safety guarantees. --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: Initializing Structures

2014-11-05 Thread Kyle Sluder
are initialized to zero. What I'm saying is, it's really handy and you should look it up. --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: dispatch_source does not work

2014-11-04 Thread Kyle Sluder
, since without O_CREAT, open() returns -1 (an invalid file descriptor). You need to pass O_RDONLY | O_CREAT to open() to ensure that the file exists before you start trying to monitor it for changes. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev

Re: Turn off background click behavior on a window?

2014-10-29 Thread Kyle Sluder
-sendEvent:. May I suggest you let background window clicks go through to certain key buttons, like mute playback? --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list

Re: Turn off background click behavior on a window?

2014-10-29 Thread Kyle Sluder
On Wed, Oct 29, 2014, at 11:57 AM, Quincey Morris wrote: However, this is the wrong solution. A button that doesn’t click through should *look* different when the app is in the background (and shouldn’t do rollover highlighting). So a better solution is to disable buttons you don’t want

Re: Extended Save Dialog Crashing

2014-10-28 Thread Kyle Sluder
the disassembly for the C++ throw statement. Can you please log the actual stack trace along with the exception that is logged to the console? --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: Extension to class for NSCoding protocol conformance

2014-10-25 Thread Kyle Sluder
On Sat, Oct 25, 2014, at 10:15 AM, Jaikanth CK wrote: Hi All, I need to extend a class for NSCoding protocol conformance. You can't do this yet. Required initializers must be implemented in the main class body, and NSCoding has a required init(coder:) initializer. --Kyle Sluder

Re: Predicate warning from text view

2014-10-24 Thread Kyle Sluder
a malformed “this is when I’m relevant” query. What apps do you have installed that provide extensions? --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: Swift: Any way to extract the bound self from a closure?

2014-10-24 Thread Kyle Sluder
that allowed this. What would it evaluate to if the caller *didn’t* pass in a method, but rather a pure closure? --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list

<    1   2   3   4   5   6   7   8   9   10   >