Re: scrollPoint in NSScrollView does not scroll

2013-06-17 Thread Kyle Sluder
ns YES from -isFlipped, and thus the clip view's bounds.origin is the UPPER-left corner. --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 moderat

Re: scrollPoint in NSScrollView does not scroll

2013-06-17 Thread Kyle Sluder
ttps://developer.apple.com/library/mac/#documentation/cocoa/Conceptual/NSScrollViewGuide/Articles/Introduction.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

Re: Confused by memory issue with UIDatePicker

2013-06-16 Thread Kyle Sluder
On Jun 16, 2013, at 6:08 PM, Quincey Morris wrote: > On Jun 16, 2013, at 17:29 , Kyle Sluder wrote: > >> For this reason, that document recommends you use a weak declared >> property for outlets to non-top-level objects. You should probably >> follow that recommend

Re: Confused by memory issue with UIDatePicker

2013-06-16 Thread Kyle Sluder
ason, that document recommends you use a weak declared property for outlets to non-top-level objects. You should probably follow that recommendation. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin request

Re: Multiple Observations

2013-06-15 Thread Kyle Sluder
ved anew each time a new instance is needed. As of 10.8, you can also manually register a nib. > I still consider this to be a bug. It is not a bug. You just need to learn the framework. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com

Re: Multiple Observations

2013-06-15 Thread Kyle Sluder
hod. It is also sent to the File’s Owner and any placeholder objects that define it as well. """ --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the li

Re: Multiple Observations

2013-06-15 Thread Kyle Sluder
S team made -awakeFromNib behave more sanely in UIKit. --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.c

Re: Multiple Observations

2013-06-15 Thread Kyle Sluder
's Owner, because it lives in the nib. Please read the documentation for -[ tableView:viewForTableColumn:row:] and -[NSTablezview makeViewWithIdentifier:owner:]. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not pos

Re: Multiple Observations

2013-06-15 Thread Kyle Sluder
t a bug. Please read the Resource Programming Guide. Unlike iOS, -awakeFromNib is sent to File's Owner as well as every object deserialized from the nib. OS X has behaved like this for 20 years. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-de

Re: Isolated process for each NSDocument of my app

2013-06-14 Thread Kyle Sluder
told amounts of state and memory. It would be *astronomically* more difficult to accomplish this than it would be to 1) either fix your UIKit clone or 2) just stop treating the Mac as a second-class citizen and use AppKit natively for your UI. Both of those are under your control; the code within App

Re: Supporting rotation and zoom gestures with autolayout?

2013-06-13 Thread Kyle Sluder
On Thu, Jun 13, 2013, at 02:15 PM, Rick Mann wrote: > > On Jun 13, 2013, at 14:13 , Kyle Sluder wrote: > > > During pinching and zooming, remove all constraints involving the view, > > turn on translatesAutoresizingMaskIntoConstraints for that view, and > > directl

Re: Supporting rotation and zoom gestures with autolayout?

2013-06-13 Thread Kyle Sluder
raints for that view, and directly manipulate its bounds and rotation. Reinstall the constraints when you're done. --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: Isolated process for each NSDocument of my app

2013-06-13 Thread Kyle Sluder
On Thu, Jun 13, 2013, at 12:06 PM, Daniele Margutti wrote: > That’s not possible due to some important reason I can’t explain here :( It's far more possible than trying to slice portions of your app into subprocesses. --Kyle Sluder ___ C

Re: Search field in menu, like Help menu has

2013-06-10 Thread Kyle Sluder
But you _may_ be able to use a custom view menu item that overrides -viewDidMoveToWindow: to set up a border less window of its own. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator co

Re: error in using NSNumber's numberWithInt: method not flagged

2013-06-09 Thread Kyle Sluder
A pointer must be convertible to integer type, because it can be used in the form `if (expressionOfPointerType)`. It follows that casting to int must also be allowed. I'm not sure what the spec says about the actual value of the result. --Kyle Sluder ___

Re: how to cache images

2013-06-08 Thread Kyle Sluder
On Sat, Jun 8, 2013, at 10:23 PM, Gerriet M. Denkmann wrote: > This is the archiver format, not the property list format. My mistake. _Keyed_ archives are property lists. And thankfully the binary plist format is smart enough not to inflate the image data. --Kyle Slu

Re: how to cache images

2013-06-08 Thread Kyle Sluder
Image alloc ] initWithContentsOfURL: url ]; >BOOL ok = [ NSArchiver archiveRootObject: image toFile: @"/tmp/anImage" ]; > got 307559 bytes (NSKeyedArchiver adds another half kB) > > This 16-fold increase of data is - regardless of image quality - not

Re: Layout on Mini is broken

2013-06-06 Thread Kyle Sluder
ow. Ok, so it looks to me like the constraint system within your content area is screwing up the layout for your entire window. So it's probably related to your pinch/zoom troubles from the other thread. Care to describe the view hierarchy and constraint system in your content area? --Kyle Slu

Re: Layout on Mini is broken

2013-06-05 Thread Kyle Sluder
r sense), and using standard bar button items around 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(at)lists.appl

Re: Layout on Mini is broken

2013-06-05 Thread Kyle Sluder
hich is still sold) as well. > I'm going to simplify, and look only at the lower toolbar. Fritz, I'm not sure what you're on about here. Did Rick share his code with you, and that's how you know he's using auto layout? --Kyle Sluder

Re: creating temp files or temp folders in standard temp file locations in mdimporter on Mac OS X 10.8.3

2013-06-03 Thread Kyle Sluder
On Jun 3, 2013, at 1:17 AM, Quincey Morris wrote: > On Jun 1, 2013, at 14:04 , Kyle Sluder wrote: > >> Spotlight importers run within a worker process; thus, they inherit the >> sandbox of the worker process, not the sandbox of your app (which might >> not even be ru

Re: creating temp files or temp folders in standard temp file locations in mdimporter on Mac OS X 10.8.3

2013-06-03 Thread Kyle Sluder
On Jun 2, 2013, at 2:16 PM, "Cianflone, Chris" wrote: > Just to be clear too, I was running into the problem first when debugging in > Xcode. Then I tried installing the plugin in /Library/Spotlight and started > seeing all these problems in the console: This _probably_ won’t work, but what i

Re: creating temp files or temp folders in standard temp file locations in mdimporter on Mac OS X 10.8.3

2013-06-01 Thread Kyle Sluder
y be a good idea to file a request that Spotlight importers be run within their owning app's sandbox container (thus granting it access to the container's temp directory), I'm kind of curious why your Spotlight importer needs to create temporary fi

Re: NSCell interiorBackgroundStyle wrong?

2013-05-31 Thread Kyle Sluder
-attributedStringValue is never even called. Yes, the relationship between attributed string values, text cells, and the field editor is quite murky, and we could cut through it all if we had direct access to the cell's text system. --Kyle Sluder ___ Cocoa

Re: NSCell interiorBackgroundStyle wrong?

2013-05-31 Thread Kyle Sluder
fact (Apple folk, see rdar://problem/12011090, which deals with NSTextCell in particular completely avoiding any methods with "hilight" in their name). --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post a

Re: Dismissing menu from menu item that uses custom view

2013-05-30 Thread Kyle Sluder
n sends the action. Seriously. Just use -performSelector:afterDelay:. --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-a

Re: Dismissing menu from menu item that uses custom view

2013-05-30 Thread Kyle Sluder
g, not your app. Yes, -performSelector:afterDelay: is slightly smelly, but much less so that trying to force the compositing engine to fake drawing menu selection. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moder

Re: Flash inside an app

2013-05-29 Thread Kyle Sluder
On Wed, May 29, 2013, at 11:46 AM, Kyle Sluder wrote: > On Wed, May 29, 2013, at 12:06 AM, Alexandru Gologan wrote: > > Hey, per OSX app-store regulations would an app be approved if it loads a > > flash player inside a uiwebview > > How do you propose to achieve this? Ne

Re: Flash inside an app

2013-05-29 Thread Kyle Sluder
On Wed, May 29, 2013, at 12:06 AM, Alexandru Gologan wrote: > Hey, per OSX app-store regulations would an app be approved if it loads a > flash player inside a uiwebview How do you propose to achieve this? --Kyle Sluder ___ Cocoa-dev mailin

Re: Reserved method prefixes in Cocoa. Is there a reference list?

2013-05-29 Thread Kyle Sluder
y we don't need namespaces in a modern object oriented programming language. --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: rate limiting calls

2013-05-28 Thread Kyle Sluder
it > is cancelled once it starts executing. That way, once it starts, it is > assured to complete and you will get periodic updates. So which are you using, NSOperationQueue or GCD? --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.

Re: rate limiting calls

2013-05-28 Thread Kyle Sluder
ppen while mouse-tracking. --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

Re: NSMapTable with C strings as keys

2013-05-28 Thread Kyle Sluder
character casted to int? > > If we take the expense of calculating hash once for each search, then > comparing hash values is very quick, plus a few string comparisons in > the end if hash is not unique It's not useful to purs

Re: Restricted FontPanel

2013-05-26 Thread Kyle Sluder
On May 26, 2013, at 5:41 PM, "Gerriet M. Denkmann" wrote: > > The documentation says: > "Important: This delegate method is not called in OS X versions 10.3 and > later." Have you confirmed the documentation is correct? If it is, does NSFontManager.h cont

Re: what does "err = Resource busy" mean?

2013-05-26 Thread Kyle Sluder
rnal state got corrupted. --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 you

Re: Running event loop while showing non-standard popup

2013-05-21 Thread Kyle Sluder
On May 21, 2013, at 9:52 AM, Steve Mills wrote: > On May 21, 2013, at 10:11:45, Kyle Sluder wrote: > >> You could try it, but +runModalForWindow might not invoke -sendEvent: to >> dispatch the events it pulls off the event queue within its nested runloop >> invoca

Re: Running event loop while showing non-standard popup

2013-05-21 Thread Kyle Sluder
On May 21, 2013, at 6:51 AM, Steve Mills wrote: > On May 21, 2013, at 01:58:00, Kyle Sluder wrote: > >> The docs for +[NSEvent addLocalMonitor…] state that it does not work with >> nested event loops like the kind -[NSApplication runModalForWindow:] uses. > > The doc

Re: Running event loop while showing non-standard popup

2013-05-21 Thread Kyle Sluder
e modal window only beep and don't > get caught by the event monitor. Should they, or is the very nature of > runModalForWindow preventing that? The docs for +[NSEvent addLocalMonitor…] state that it does not work with nested event loops like

Re: Widow / Orphan protection in text layout

2013-05-20 Thread Kyle Sluder
use them. Then file a radar asking for -[NSTypesetter setCurrentTextContainerIndex:] for use by subclasses. (I haven't spent the time thinking about whether -willSetLineFragmentarect:… is the appropriate place to do pagination.) --Kyle Sluder ___ Cocoa-dev m

Re: Sandboxing and Apple System Log (asl) searches

2013-05-20 Thread Kyle Sluder
way that is sandbox friendly? No. Last I checked, for some crazy reason the sandbox people think that reading your own logs is a security concern because you can then read logs from other components. Personally I think this is ludicrous, but them's the

Re: Trigger nextkeyview based on NSTextField input length

2013-05-17 Thread Kyle Sluder
cters in a field? Or position yourself at the front of a full field and hit Delete? So rather than the four-field approach, why not use _one_ text field with an NSFormatter subclass that adds and removes the dashes in the license code? Then you

Re: Getting a splash screen to show

2013-05-15 Thread Kyle Sluder
sure you're not relying on getting -applicationOpenUntitledFile:. --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)list

Re: UIView drawRect will update whole bounds

2013-05-15 Thread Kyle Sluder
Can you just set the CGImage as the .contents of the view's layer? --Kyle Sluder On May 15, 2013, at 3:42 AM, li shunnian wrote: > Hi all, > I implement drawRect of a subclass of UIView. I found view will update whole > bounds when I switch from another app to myapp. Because I

Re: Document Window Versions Drop-down Menu

2013-05-14 Thread Kyle Sluder
NSDocument automatically turns that on for windows owned by secondary window controllers. --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-de

Re: way to update Apple Menu's Recents Items

2013-05-14 Thread Kyle Sluder
Dock icons to reveal all recent items), but it's certainly possible that I'm wrong. --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: way to update Apple Menu's Recents Items

2013-05-13 Thread Kyle Sluder
x:0]. > > OR do I need to kill some process (which will then restart) to achieve > this. Recent Items are managed by Powerbox, and the number of included items is set by the user in System Preferences. You should not attempt to modify this submenu. --Kyle Sluder __

Re: Can scroll direction be changed programmatically?

2013-05-09 Thread Kyle Sluder
to be natural. But when I'm plugged in and using > a mouse, I'd prefer it to be unnatural. Ah, yeah, I doubt there's any way other than what you've found. But I'd also consider just adopting the "natural" approach. It took me about a week to adjust. --Kyle

Re: Can scroll direction be changed programmatically?

2013-05-09 Thread Kyle Sluder
e, which can be used to override the user's setting when it makes sense. Does that satisfy your needs? --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the

Re: Showing numpad key equivs in menu items

2013-05-07 Thread Kyle Sluder
#x27;re not using a custom view-based NSMenuItem? It might be easier to get good results that way. --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 mode

Re: Showing numpad key equivs in menu items

2013-05-07 Thread Kyle Sluder
After Effects but also for all "DVA" products > (many of the ones in "Creative Cloud") > > so, please consider that "all of adobe wants this" The correct way to express this request is to file a Radar: http://bugreport.apple.com --Kyle Sluder _

Re: Showing numpad key equivs in menu items

2013-05-07 Thread Kyle Sluder
fect you desired. As for why the replies to this list do not consist solely of technical suggestions tailor-made to the requestor’s rubric: how many times have you agonized over a solution only to realize you're tackling the wrong problem? Moreover, we don't know your constraints. We don&#

Re: beginOpenPanel:forTypes:completionHandler woes

2013-05-05 Thread Kyle Sluder
t open panels are supposed to do is whether the app can open the file. --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-adm

Re: NSDocument saveDocumentWithDelegate deadlocked during App termination

2013-05-03 Thread Kyle Sluder
ill loading? If so, what does this have to do with synchronous dialogs? --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-admin

Re: delaying forced sleep after initial 30 seconds delay

2013-05-03 Thread Kyle Sluder
On May 3, 2013, at 1:01 AM, Nick Rogers wrote: > Hi, > > Thanks for all the inputs. > The app doesn't run any scheduled operations. > So the situation would occur only when the user wants it to. No. It will happen at the worst possible time. Forced sleep is forced for a re

Re: delaying forced sleep after initial 30 seconds delay

2013-05-02 Thread Kyle Sluder
cbook pro sometime taking more than 2 minutes to go into > sleep, after closing the lid. So is this possible at all? This shouldn't happen. It's a bad thing when it does. So the system is designed to prevent you from causing it to happen. Please don't try to give your users a "R

Re: Need advice: Object ownership and threading issue, causing a rare crash.

2013-05-02 Thread Kyle Sluder
and have that factory method add the MyB instances to an object pool. When MyB operations are cancelled, they perform their cleanup and message the thread they were created on to remove themselves from the pool. Using dispatch queues should simplify this quite a bit. --Kyle Sluder ___

Re: Field editor in view-based table

2013-04-28 Thread Kyle Sluder
lick behavior. > 4) If the row is not selected, and I single click in the textfield, the > row is selected, but the field editor is not shown This is standard behavior for table views. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.appl

Re: More constraints confusion

2013-04-26 Thread Kyle Sluder
have enough constraints to give every view in the window a well-defined size. --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: Core data commit changes made programmatically

2013-04-24 Thread Kyle Sluder
wasteful, you will need to add another property that you mutate in a KVC-compliant manner to trick Core Data into noticing your attributed string has changed. --Kyle Sluder On Apr 23, 2013, at 11:41 PM, Peng Gu wrote: > I have a textview that is binding to Core data, I want to be able

Re: Drawing an overbar on text?

2013-04-03 Thread Kyle Sluder
On Apr 3, 2013, at 10:00 PM, Rick Mann wrote: > I suppose I could use the combining Unicode character. This is probably your best bet. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: Setting position of CALayer doesn't animate

2013-04-02 Thread Kyle Sluder
elegate methods mirrors that of UIView's on iOS. -[NSView actionForLayer:forKey:] returns NSNull if the current NSAnimationContext returns NO from -allowsImplicitAnimation. You should not make an NSView instance the delegate of a CALayer that is not the view's layer. --Kyle Sluder _

Re: Convert spelled out numbers to digits?

2013-03-28 Thread Kyle Sluder
rrectly parse "thirty-six", "thirty–six", "thirty—six", and "thirty six?" --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list.

Re: Convert spelled out numbers to digits?

2013-03-28 Thread Kyle Sluder
't think this is going to work. For example, in Spanish, “ciento” is the counting word for “hundred,” but “cien” is the adjective, and is also used when combining with “mil” (“thousand”). --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.

Re: Custom insertion point

2013-03-27 Thread Kyle Sluder
You posted this same question yesterday. If anyone has any ideas, they will reply. You don't need to post it again. --Kyle Sluder On Wed, Mar 27, 2013, at 12:55 PM, Peng Gu wrote: > Hi, > > I'm changing the insertion point size by overriding > *-(void)drawInsertionPoi

Re: CALayer with AppKit objects inside

2013-03-20 Thread Kyle Sluder
king layers to CALayers. If you want to manage the superlayer of a view, that layer must itself be the backing layer for a view. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator commen

Re: Triggering an NSTextStorage Bug

2013-03-20 Thread Kyle Sluder
19 bits is because for speed purposes NSParagraphStyle implements its own inline retain count rather than relying on NSObject's external refcount table. Which is also why you can't make ARC weak references to NSParagraphStyle instances. ;-) --Kyle Sluder _

Re: Custom view in NSScrollView in IB

2013-03-19 Thread Kyle Sluder
to use constraints directly on your document view will lead to unsatisfiable constraint exceptions, ambiguous layout, or both. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

Re: Triggering an NSTextStorage Bug

2013-03-19 Thread Kyle Sluder
ictionaries!! --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 Subscrip

Re: Triggering an NSTextStorage Bug

2013-03-19 Thread Kyle Sluder
Bizarrely, running your sample project in under the Zombies Instrument produces no crash, but it _does_ spin the pinwheel forever during startup, creating infinitely many instances of NSDictionary. --Kyle Sluder On Tue, Mar 19, 2013, at 04:54 PM, Seth Willits wrote: > > This has take

Re: Week of month confusion?

2013-03-19 Thread Kyle Sluder
On Mar 19, 2013, at 8:22 AM, Izak van Langevelde wrote: > > On 2013-03-19, at 3:59 PM, Kyle Sluder wrote: > >> >> Haven't confirmed it for all the values you've shown, but I believe it is >> returning 0 in instances where the week in which the date fa

Re: Week of month confusion?

2013-03-19 Thread Kyle Sluder
gt; > You wrote "%ld" in the NSLog param, maybe the cast from NSInteger to long > breaks things on your end... No, computers don't increment and decrement values without you telling them to do so. --Kyle Sluder ___ Cocoa-dev mail

Re: Week of month confusion?

2013-03-19 Thread Kyle Sluder
which is probably greater than the calendar's default minimumDaysInFirstWeek. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admi

Re: Understanding user defaults

2013-03-18 Thread Kyle Sluder
On Mon, Mar 18, 2013, at 05:15 PM, Rick Mann wrote: > > On Mar 18, 2013, at 16:30 , Kyle Sluder wrote: > > > 2. NSCoding is not trustworthy. Your app must blindly trust any object > > archive it loads. This is a significant security risk. > > I don't think th

Re: Understanding user defaults

2013-03-18 Thread Kyle Sluder
ring it in their preferences, despite your app being unmodifiable by the user. The mantra is that you must treat any user data as hostile until proven otherwise. Allowing user data to control such a fundamental operation as allocating objects is like playing Russian roulette. --Kyle Sluder ___

Re: ambiguous layout for documentView in NSScrollView

2013-03-17 Thread Kyle Sluder
On Mar 17, 2013, at 9:37 AM, Kyle Sluder wrote: > > So that we're all on the same page: your internal vertical constraints can be > expressed as @"V:|[subview1(>=70)][subview2(>=70)]…|". Then you add a > constraint of @"|[documentView]|" to your sc

Re: ambiguous layout for documentView in NSScrollView

2013-03-17 Thread Kyle Sluder
in the view hierarchy. But even if you had added it to the clip view, it is still not correct. The clip view's height is governed by an autoresizing mask constraint. As soon as your scroll view gets shorter than 70 points tall (plus the height of the legacy horizontal scroller, if it is v

Re: ambiguous layout for documentView in NSScrollView

2013-03-16 Thread Kyle Sluder
consistently picks 0 for all free variables when you click “Exercise Ambiguity.” It just so happens that this is the desired documentView position for correct scrolling behavior. So the short-term fix is to add leading- and bottom-margin constraints relating your documentView to its superview.

Re: ambiguous layout for documentView in NSScrollView

2013-03-16 Thread Kyle Sluder
gt; constant, like this: subview1.widthConstraint.constant = 220.0; If you're manually updating the constants of these constraints, you either need to clamp the value at a minimum of 80, or you need to make the ">= 80" constraints a higher p

Re: ambiguous layout for documentView in NSScrollView

2013-03-16 Thread Kyle Sluder
e but I don't know if there is a guarantee that it will always > break that one. These two constraints are not in conflict, so neither is broken. > > I'm not sure why you would have to set both the constraints, setting the > absolute width seems like something that should

Re: guidelines for using autolayout with NSScrollView?

2013-03-16 Thread Kyle Sluder
e logic I described above could be added to NSClipView, and suddenly NSScrollView would be constraint-aware. Let's see what 10.9 brings. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: forward decls vs #import

2013-03-14 Thread Kyle Sluder
use it means that a simple change to an seldom-used interface doesn't cause your entire framework target to rebuild just because the umbrella header imports that file. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not p

Re: Objective-C Question

2013-03-11 Thread Kyle Sluder
lasses_and_metaclasses.html > > So from a + method, what do: > > [super someMethod]; and Invokes the superclass's (or an ancestor's) implementation of +someMethod. > [[self superclass] someMethod]; Sends +someMethod to the superclass, which will invok

Re: Dragging NSManagedObject subclass within app

2013-03-10 Thread Kyle Sluder
'll add bridging > retain/release to that, but really, the pboard should allow me to just > put retained references onto it. This also works, but I'd be leery about violating Core Data's confinement rules now or in the future. MO IDs are the safe way to go. --Kyle Sluder

Re: NSImage TIFFRepresentation crashes

2013-03-09 Thread Kyle Sluder
gine anyone trying to work with a billion-pixel-per-row image. --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: 2 icons showing in dock

2013-03-03 Thread Kyle Sluder
app's main(), check for a certain command-line argument and exec() your helper instead of calling NSApplicationMain if it isn't found? --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin req

Re: Documents not opening from Finder

2013-03-02 Thread Kyle Sluder
On Mar 2, 2013, at 1:17 PM, "Mills, Steve" wrote: > On Mar 2, 2013, at 15:06, "Kyle Sluder" wrote: > >> The documentation is pretty clear about how NSDocument's default >> implementation works. -[NSDocument >> runModalPrintOperation:del

Re: Documents not opening from Finder

2013-03-02 Thread Kyle Sluder
e delegate with the didPrintSelector. As long as you are calling that method with those arguments (either directly or by calling super in your override of -printDocumentWithSettings…), the delegate will be messaged appropriately. --Kyle Sluder __

Re: Is it possible to detect a virtual machine

2013-03-02 Thread Kyle Sluder
x27;s anti-piracy, I would not bother. Anyone who has gotten to the point of loading your app up in a VM is going to have the wherewithal to defeat its VM checks. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not po

Re: Focus ring and layer-backed views

2013-03-01 Thread Kyle Sluder
On Mar 1, 2013, at 1:26 AM, Oleg Krupnov wrote: > > It seems like a known problem. Is there some workaround? This is why Apple added the -drawFocusRingMask API. Try using that instead of drawing the focus ring manually. --Kyle Sluder ___ Coc

Re: archiving report

2013-02-27 Thread Kyle Sluder
gt;>> >>> I have filed the $null bug. Got back as duplicate with a very low >>> id-number. Meaning: this bug is known to Apple since several years. Still >>> no fix. >> >> Thank you for your bug reports. Yes, we do get them and we do listen to

Re: Build setting for embedded dylib?

2013-02-27 Thread Kyle Sluder
se, but it's useful: http://www.mikeash.com/pyblog/friday-qa-2009-11-06-linking-and-install-names.html --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: Issue of NSStatusBar

2013-02-27 Thread Kyle Sluder
No. Don't do this. The class name might change at any time. Do what I suggested. Check something which is under your control. --Kyle Sluder On Feb 26, 2013, at 10:59 PM, anni saini wrote: > > I got the solution, just need to check for NSStatusBarWindow className as > follows:

Re: NSScrollView and autolayout

2013-02-26 Thread Kyle Sluder
n we set up constraints that keep us correctly sized and positioned relative to our enclosing clip view. This is a terrible hack that I really hope is fixed in a future version of OS X with a constraint-aware implementation of NSScrollView that works like UIScrollView o

Re: NSTrackingInVisibleRect not working when view is resized

2013-02-26 Thread Kyle Sluder
reas seems like the appropriate time for the view to install its own tracking area. --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: NSTrackingInVisibleRect not working when view is resized

2013-02-26 Thread Kyle Sluder
On Tue, Feb 26, 2013, at 01:32 PM, Kyle Sluder wrote: > I will repeat my request from your last NSTrackingArea query: > (This isn't meant to be snark, BTW. It just makes debugging a lot easier.) --Kyle Sluder ___ Cocoa-dev mailing list

Re: NSTrackingInVisibleRect not working when view is resized

2013-02-26 Thread Kyle Sluder
ouseExited: events on the floor. A correct override of -updateTrackingAreas only creates and installs the tracking area if it has not already been created and installed. --Kyle Sluder On Tue, Feb 26, 2013, at 12:46 PM, Steve Mills wrote: > I have an NSControl subclass that has installed an NSTrac

Re: archiving report

2013-02-26 Thread Kyle Sluder
plying with terrible requests for information you've already received. But refusing to report future bugs is only going to harm yourself. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moder

Re: archiving report

2013-02-26 Thread Kyle Sluder
On Feb 26, 2013, at 10:04 AM, Kyle Sluder wrote: > On Feb 26, 2013, at 9:47 AM, "Gerriet M. Denkmann" > wrote: > >> But it does create unnecessary data. E.g. in the case of an array >> containing identical objects, like: >> NSArray *a = @[ @"

Re: archiving report

2013-02-26 Thread Kyle Sluder
ed. > > I have not reported these bugs, as I am convinced that Apple has no interest > in fixing these problems. This is not a helpful attitude to take. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not po

Re: Issue of NSStatusBar

2013-02-26 Thread Kyle Sluder
of the windows prior to sending them -close. Perhaps check the class of their window controller or their delegate. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the

<    3   4   5   6   7   8   9   10   11   12   >