NSTimer retain and release questions

2008-09-10 Thread Kyle
The documentation for this autoreleased method: + (NSTimer *)scheduledTimerWithTimeInterval:(NSTimeInterval)seconds target:(id)target selector:(SEL)aSelector userInfo:(id)userInfo repeats:(BOOL)repeats states: "If repeats is NO, the timer will be invalidated after it fires." If I call t

Converting non-English date string to NSDate

2009-03-31 Thread Kyle
? Thanks in advance. -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)lists.apple.com Help/Unsubscribe/Update your Subscription

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

2014-08-22 Thread Kyle Sluder
de codepoints. The documentation on the 'Zapf` table implies that font designers can name their glyphs whatever the hell they want: <https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6Zapf.html> (see section "The GlyphIdentifier Struc

Re: -glyphWithName:

2014-08-23 Thread Kyle Sluder
uot;For example, if the text storage contains the character (o-umlaut) and the glyph store contains the two atomic glyphs "o" and (umlaut), and if the glyph range given encloses only the first or second glyph, then actualGlyphRange will be set to enclose both glyphs."""

Re: -glyphWithName:

2014-08-23 Thread Kyle Sluder
On Aug 23, 2014, at 4:30 PM, "Raglan T. Tiger" wrote: > > > -rags > > > >> On Aug 23, 2014, at 3:30 PM, Kyle Sluder wrote: >> >> So the user types "abcdef" into > > no, more like “Zoe’s First Birthday" So what if Zöe’s n

Re: -glyphWithName:

2014-08-23 Thread Kyle Sluder
On Aug 23, 2014, at 5:49 PM, Raglan T. Tiger wrote: > > >> On Aug 23, 2014, at 5:43 PM, Kyle Sluder wrote: >> >> So what if Zöe’s name has an umlaut? As the documentation describes, that >> can result in two separate glyphs. > > apparently -glyphWithNam

Re: Auto Layout with purple

2014-08-27 Thread Kyle Sluder
Ah, the *icons* are purple, not the constraints themselves. Those definitely look like Xcode 4-era automatically-generated constraints. You might want to rebuild your constraints. --Kyle Sluder > On Aug 26, 2014, at 11:52 PM, "Gerriet M. Denkmann" > wrote: > > >&

Re: Prompting user (NSAlert) during document reading

2014-08-27 Thread Kyle Sluder
uper showWindows]; if (_autoConverted) { NSAlert *autoConversionAlert = …; NSWindow *docWindow = self.windowControllers[0].window; [alert beginSheetModalForWindow:window completionHandler:…]; } --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-de

Re: CALayer disappears on view resize...

2014-08-27 Thread Kyle Sluder
de/Introduction/Introduction.html#//apple_ref/doc/uid/TP40002978 --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)

Re: Best practice for creating a temporary file

2014-09-02 Thread Kyle Sluder
But how do I > find it programmatically? .TemporaryItems doesn't get cleaned up automatically AFAIK, so I don't think you'll gain anything by trying to use it. If you want to hide the folder, I'd try setting its hidden flag via chflags(2). --Kyle Sluder _

Re: Best practice for creating a temporary file

2014-09-02 Thread Kyle Sluder
ocuments directory and Library. Who knows, maybe next week we'll get support for removable SD cards. (*laugh*) --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the lis

Re: Resizing issue with NSSplitView

2014-09-02 Thread Kyle Sluder
tes: https://developer.apple.com/library/mac/releasenotes/AppKit/RN-AppKitOlderNotes/ --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 coc

Re: Responder Chain Confusion

2014-09-07 Thread Kyle Sluder
o the app’s delegate. (It also inserts window controllers as well as the shared NSDocumentController instance if one has been created.) If the message never reached your app delegate, I suspect you failed to patch the view controller’s nextResponder in correctly. --Kyle Sluder

Re: How to copy Color Panel behaviour?

2014-09-09 Thread Kyle Sluder
ed to refuse FR by overriding -acceptsFirstResponder to return NO. There's also the corresponding method, -needsPanelToBecomeKey, which is used by things like text fields to ensure they actually work when clicked on. --Kyle Sluder ___ Cocoa-dev mailing

Re: NSUserDefaults not sticking

2014-09-10 Thread Kyle Sluder
h before and after doing so to ensure that the changes are picked up by cfprefsd. --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: NSUserDefaults not sticking

2014-09-10 Thread Kyle Sluder
tion with the preferences system. That's what the `defaults` command uses too. --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: NSUserDefaults not sticking

2014-09-10 Thread Kyle Sluder
ce it, you should file a Radar. Also, you should almost never need to call -synchronize yourself. The framework does it at appropriate times. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or m

Re: Reset dispatch_once_t if the initialization failed?

2014-09-13 Thread Kyle Sluder
alization finishes anyway), but I invite someone from the runtime team (*cough* Greg Parker *cough*) to explain why I’m wrong. :) --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comm

Re: Want NSTableView NSOutlineView to load lazy like iOS?

2014-09-15 Thread Kyle Sluder
> a typical one of those 13,000 messages. Are you using a view-based outline view? Does your outline view have constant row heights, or are you implementing -tableView:heightOfRow:? --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Re: Want NSTableView NSOutlineView to load lazy like iOS?

2014-09-15 Thread Kyle Sluder
On Sep 15, 2014, at 12:31 PM, Jerry Krinock wrote: > > >> On 2014 Sep 15, at 11:56, Kyle Sluder wrote: >> >> Are you using a view-based outline view? > > No. It is cell-based. App currently runs in Mac OS X 10.6. Can’t very well keep “only the onscreen

Re: NSOutlineView not lazy when expanding items :(

2014-09-16 Thread Kyle Sluder
lineView … > > I can’t find any such control, Jens. I'd try wrapping things in an NSAnimationContext with allowsImplicitAnimation=NO. Though I'm not sure where you would have the opportunity to wrap the built-in expand behavior. --Kyle Sluder _

Re: Heavy flickering on Retina Macs with Yosemite & NSVisualEffectView & overlay windows

2014-09-17 Thread Kyle Sluder
screenshots and/or a version of your movie you know to work) before bothering to make a demo app. Be sure to include your system configuration—this is one case where it really matters, and you don’t want to burn time waiting for a bug screener’s “please attach a system configuration” reply. --Kyle

Re: Doc links broken

2014-09-17 Thread Kyle Sluder
On Wed, Sep 17, 2014, at 06:46 PM, Rick Mann wrote: > It seems that Apple broke all the existing documentation links. Dunno if > that was deliberate or not. Bad form, either way. > > Filing a bug… Happens every single OS release. -

Re: Document Packages

2014-09-17 Thread Kyle Sluder
which appears as a > single file? The documentation is woefully out of date, or at least fails to adequately cover all topics. Your document type’s UTI must conform to com.apple.package. That’s a “physical” UTI, so you’ll probably want to conform too public.composite-content as well.

Re: Heavy flickering on Retina Macs with Yosemite & NSVisualEffectView & overlay windows

2014-09-18 Thread Kyle Sluder
Behrens, the UI and App Frameworks Evangelist: If this doesn’t fall under his purview, he’ll at least be able to forward you to the right person. --Kyle Sluder > On Sep 18, 2014, at 10:29 AM, Markus Spoettl wrote: > >> On 17/09/14 17:32, Kyle Sluder wrote: >> Your video won’

Re: Heavy flickering on Retina Macs with Yosemite & NSVisualEffectView & overlay windows

2014-09-19 Thread Kyle Sluder
d against them, years after the bug had been introduced. That said, I don’t file every bug I encounter with the OS (particularly things that have seen obvious changes over time, like the WindowServer in Yosemite), but I do file a lot of framework bugs. --Kyle Sluder _

Re: return string that is the difference between two other strings

2014-09-20 Thread Kyle Sluder
that works for many non-Latin languages as well: CFStringTokenizer. --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

Re: return string that is the difference between two other strings

2014-09-20 Thread Kyle Sluder
it is nowhere near a common operation to perform on strings. It’s common for *programmers* to perform on their source code. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comme

Re: Custom layout and constraints

2014-09-21 Thread Kyle Sluder
code that’s using -setFrame:. You’re the third person on this mailing list in the past month to be bitten by this surprising behavior. I would suggest you file a Radar. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

Re: Changes to Core Data in iOS 8

2014-09-23 Thread Kyle Sluder
s propagatesDeletesAtEndOfEvent property on iOS 7 and iOS 8? But more fundamentally, why aren’t you listening for NSManagedObjectContextObjectsDidChangeNotification to trigger your UI updates? --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@list

Re: What is NSAnimationSlowMotionOnShift?

2014-09-25 Thread Kyle Sluder
u set it either with `defaults write` or by passing it as an argument on the command line. Slow animations are a debugging aid; testing for the shift key often results in legitimate key combinations taking forever to animate. --Kyle Sluder ___ Cocoa-dev mai

Re: What is NSAnimationSlowMotionOnShift?

2014-09-25 Thread Kyle Sluder
On Sep 25, 2014, at 8:31 AM, Bill Cheeseman wrote: > > >> On Sep 25, 2014, at 10:33 AM, Kyle Sluder wrote: >> >> Notice it says “the default”. This is a noun, used in the same sense as the >> defaults(1) command. Therefore you set it either with `defaults wri

Re: What is NSAnimationSlowMotionOnShift?

2014-09-25 Thread Kyle Sluder
ive about keyboard shortcuts. And it's a rather poor design to explicitly implement a feature like a shortcut key and then punish its users by not thinking about its interactions with other parts of the system. --Kyle Sluder ___ Cocoa-dev mailin

Re: Showing Application Credits

2014-09-26 Thread Kyle Sluder
an create an NSAttributedString from RTF rather easily. --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/Unsubs

Re: Dragging to Rearrange Outline View

2014-09-27 Thread Kyle Sluder
no data. (This is actually how Safari tabs work.) --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 He

Re: -[NSTabView mouseDown:] blows stack in Yosemite SDK

2014-09-28 Thread Kyle Sluder
? Remember than NSViewController now inserts itself into the responder chain on 10.10. --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 coco

Re: Validate NSDocument on Quit

2014-10-05 Thread Kyle Sluder
that your data is more or less always up to date on disk. Why can’t you write the “invalid” data? It’s the user’s work-in-progress. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator co

Re: Responsive scrolling: prepareContentInRect: not called

2014-10-08 Thread Kyle Sluder
method > is called. Thanks for you effort anyway. Hmm, this sounds like it would make a great compiler warning. File a Radar, maybe? --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

Re: PushKit dyld errors on 64bit

2014-10-09 Thread Kyle Sluder
y plain to me. The dylib doesn't contain a slice for your target hardware architecture. Are you building for only the active architecture (the ONLY_ACTIVE_ARCH build setting)? This is the default for debug builds. --Kyle Sluder ___ Cocoa-dev mail

Re: PushKit dyld errors on 64bit

2014-10-09 Thread Kyle Sluder
On Thu, Oct 9, 2014, at 03:42 PM, Kyle Sluder wrote: > The error seems pretty plain to me. The dylib doesn't contain a slice > for your target hardware architecture. Are you building for only the > active architecture (the ONLY_ACTIVE_ARCH build setting)? This is the > default

Re: Concurrent tasks are getting hung up

2014-10-10 Thread Kyle Sluder
ad safety in any > of the headers for these: https://developer.apple.com/library/mac/qa/qa1238/_index.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

Re: Kerning Pairs

2014-10-11 Thread Kyle Sluder
stion, as usual, becomes: what are you actually trying to do? I bet you could get it done via the NSTypesetter API. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. C

Re: Kerning Pairs

2014-10-12 Thread Kyle Sluder
#x27;s a means, not an end. The purpose of your program isn't to extract kerning information. The question now thrice posed to you: what does your program *do* that involves kerning information? > > I have read the reference from Kyle that describes the 'kerx' extended > ke

Re: Code signing problem using shared framework in Yosemite

2014-10-12 Thread Kyle Sluder
; going forward? That would be a huge change to spring on the developer > community without advance warning. What do you mean “shared frameworks”? As in, frameworks that live outside of your app wrapper? Because frameworks in and of themselves are certainly still usable. --Kyle Sluder

Re: Problem getting import UTI recognised

2014-10-15 Thread Kyle Sluder
at a loss. Is there another app on your system declaring that file extension for its own UTI? You can dump the database with lsregister(1). --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderat

Re: Problem getting import UTI recognised

2014-10-16 Thread Kyle Sluder
> You’re not conforming to any physical types. You probably want to conform to public.data as well as public.content. Also, can you provide your CFBundleDocumentTypes array? Most of those keys have been supplanted by the UTI declaration, but you still need that to connect the UT

Re: Set UICollectionView UIScrollViewDelegate delegate

2014-10-18 Thread Kyle Sluder
te. The good news is that every member of UICollectionViewDelegate is optional, so this is a trivial change. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Con

  1   2   3   4   5   6   7   8   9   10   >