Presenting VCs as Sheets — Completion Handler?

2015-08-24 Thread Seth Willits
heck I didn't miss some other pattern we're supposed to be using. -- Seth Willits ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at c

Re: Completely baffled by NSTabViewController + Autolayout (OS X bug)

2015-08-25 Thread Seth Willits
> On Aug 17, 2015, at 9:13 PM, Seth Willits wrote: > > The goal of this project as is, is simple: using an NSTabViewController, add > multiple tab view items where each of the items has a view with its own > autolayout-determined fixed size (as in, either an intrinsic content

Autolayout requiring NSDisableScreenUpdates

2015-08-30 Thread Seth Willits
< at this point, the window is already visible > ... [stackView addView:view inGravity:NSStackViewGravityTop]; ... [self.window layoutIfNeeded]; [self.window center]; NSEn

Re: Autolayout requiring NSDisableScreenUpdates

2015-08-31 Thread Seth Willits
> On Aug 30, 2015, at 4:09 PM, Ken Thomases wrote: > > Turn off Visible at Launch on the window in the NIB. D'oh! You're right. I mistakenly left on that and that's what was causing it. Thanks! -- Seth Willits ___ Cocoa

Re: How OS X's system-wide "look up" feature is implemented?

2015-10-16 Thread Seth Willits
tionaryServicesProgGuide/Introduction/Introduction.html#//apple_ref/doc/uid/TP40006152-CH1-SW1 -- Seth Willits ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators a

Re: Presenting NSWindowController/NSWindow Pair as a Sheet?

2015-10-29 Thread Seth Willits
NSWindow has beginSheet:completionHandler: There's also NSViewController's presentViewControllerAsSheet: -- Seth Willits ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact th

Re: Nullability Question

2016-01-11 Thread Seth Willits
On Jan 11, 2016, at 8:04 AM, Dave wrote: > I’ve noticed there are two forms to specify nullability on properties, is one > preferred syntax over the other? Judging by Apple's usage, using the property attributes (nullable and nonnull) are preferred. -- S

Re: Weird Message from NSZombies

2016-01-12 Thread Seth Willits
s undefined. > > Not sure what this means? Anyone have any idea? Ignore it. It has nothing to do with you doing anything wrong. -- Seth Willits ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or mod

Re: Staggering new windows

2016-03-03 Thread Seth Willits
Mac behavior of > staggered windows? I think it was 20 pixels down and right. Window Cascading: https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/WinPanel/Tasks/SizingPlacingWindows.html -- Seth Willits ___ Cocoa-dev maili

Re: Multiple AVAudioPlayer - locking main thread?

2016-03-22 Thread Seth Willits
e main thread. Use a time profile in Instruments. That's where you're going to find the best indication of what's going on. -- Seth Willits ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or mod

All threads in app periodically blocked

2016-05-22 Thread Seth Willits
should look for to figure out *why* they're blocked? Looking at the system calls in the Instruments trace timeline just isn't telling *me* anything. -- Seth Willits ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not p

Re: All threads in app periodically blocked

2016-05-22 Thread Seth Willits
OS X. It happens in all circumstances. -- Seth Willits > On May 22, 2016, at 10:59 AM, Alex Zavatone wrote: > > Mac, iOS? If iOS, device or sim? IPad? > > Try publishing and not running through Xcode. > > Sent from my iPhone > >> On May 22, 2016, at

Re: All threads in app periodically blocked

2016-05-23 Thread Seth Willits
> On May 22, 2016, at 12:44 PM, Quincey Morris > wrote: > > On May 22, 2016, at 10:48 , Seth Willits wrote: >> >> Can anyone think of what I should look for to figure out *why* they're >> blocked? > > Do these operations go on long enough that you c

Re: All threads in app periodically blocked

2016-05-23 Thread Seth Willits
y skill I could think of, staring at zillions of system calls in traces etc, and in the end all I needed was a little luck and it was all due to a simple copy & paste error. Sigh. Thanks, -- Seth Willits > On May 22, 2016, at 10:48 AM, Seth Willits wrote: > > I'm thoroug

Efficient CVPixelBuffer display in a CALayer

2014-10-07 Thread Seth Willits
upload the copy to the GPU. I'm trying to easily avoid that copy. It seems my only choice is to create an CAOpenGLLayer, manually create a texture from CVPixelBuffer using the typical gl*() calls, and then draw in the layer's drawInCGLContext method. Is there a simpler optio

Re: Waiting for callback with GCD: impossible?

2014-10-08 Thread Seth Willits
> queue, causing a deadlock. > … > But given that dispatch queues can't do this, what's the solution to this > design problem, i.e. turning an async call into a sync one? Simply performing the rest of the task in the callbac

Re: NSSplitView divider tracking-area

2014-10-30 Thread Seth Willits
uot;a panel" mean to you? AFAIK the tracking area of the split view is not affected by anything in the way you describe, and looking at the disassembly shows nothing out of the ordinary. The delegate has the ability to add to the area, but that&#

Vibrancy + Floating Group Row bug?

2014-11-06 Thread Seth Willits
aren't visible when under the group row.) -- Seth Willits ___ 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: Vibrancy + Floating Group Row bug?

2014-11-06 Thread Seth Willits
On Nov 6, 2014, at 12:20 PM, Seth Willits wrote: > Some subviews of table view cells underneath a floating group row, in a > vibrant table view have strange drawing: > http://sethwillits.com/temp/upshot/upshot_EnYMpCzT.png > > Any thoughts? > > (In the case of the pink t

[PSA] Non-layer backed views + scrolling + visual artifacts

2014-11-28 Thread Seth Willits
llingWeirdness.zip For me, this is 100% repeatable, and 100% fixable by turning on layer-backing. I'm on 10.10.1, iMac14,2 NVIDIA 780M. I imagine it's a bug, but one that's worked around by using layer-backing. I'll be filing a bug report… -- Seth Willits _

Layer-backed multiline text view rendering dim

2014-12-01 Thread Seth Willits
difference only occurs when the LCD Font Smoothing option is turned off in System Preferences. Does anyone know if there's a workaround for this? I tried telling the text field to draw an opaque white background as well (to deal with subpixelness), but that didn't change an

Re: NSUserDefaults and home folder on different drive

2014-12-11 Thread Seth Willits
representation of what's in user defaults is to use $ defaults export Just worth mentioning… -- Seth Willits ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact th

Re: Self describing NSObjects.

2015-02-05 Thread Seth Willits
[ms appendString:@"}"]; free(propList); } return ms; } -- Seth Willits ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Co

Re: Self describing NSObjects.

2015-02-05 Thread Seth Willits
On Feb 5, 2015, at 3:54 PM, Seth Willits wrote: >> How would you think about implementing this? It seems like I run into this >> need year after year after year. > > > NSString * NSObjectDescriptionUsingProperties(id obj) > { > unsigned int propCount; >

Re: Idea for Improving Vibrancy

2015-02-16 Thread Seth Willits
Ugh. Mail used the wrong address again and bounced this... -- Seth Willits > On Feb 15, 2015, at 9:54 PM, Seth Willits wrote: > > On Feb 15, 2015, at 6:13 AM, Charles Jenkins wrote: > >> Is this possible, do you think, to open a window that always hides directly >

TextView : Shifting all text down to make room for a subview

2015-04-01 Thread Seth Willits
nough wall that with both that I'm kinda stumped. Anyone had any luck doing something like this? -- Seth Willits ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the li

Re: TextView : Shifting all text down to make room for a subview

2015-04-01 Thread Seth Willits
> On Apr 1, 2015, at 3:00 PM, Jonathan Hull wrote: > > Have you tried just setting the textContentInset to make room for your > subview? The inset by definition affects both the top *and* bottom. I only want the top. -- Seth Willits __

Re: NSNotification coalescing - which one gets through?

2015-05-06 Thread Seth Willits
s would go pull the data from the other source. But whether that's a better fit is questionable based on circumstances. -- Seth Willits -- Seth Willits ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin re

[PSA] OSStatus.com — Error code lookup

2015-05-30 Thread Seth Willits
consider it useless.) I finally got fed up, wrote some code, and made a website. So, here's v1. http://www.osstatus.com/ I hope someone besides me finds it useful. ;-) -- Seth Willits ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.

Nullability annotation "best practice"

2015-08-08 Thread Seth Willits
? I'm curious how Apple is adopting these annotations themselves. -- Seth Willits ___ 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

Constraints across sibling stack views?

2015-08-09 Thread Seth Willits
label. What's the proper way to have these labels all equal width, when they're in different NSStackViews? What I want: http://www.sethwillits.com/temp/upshot/upshot_7Yna0OGF.png After dumping into stack views: http://www.sethwillits.com/temp/upshot/upshot_yX7dV6OL.png

Why is overriding unavailable designated initializer of super required?

2015-08-10 Thread Seth Willits
ss's designated initializer must be overridden in the subclass? If the subclass is going to call super's designated initializer via [super init] then this subclass override would never get called anyway... What am I missing? -- Seth Willits _

Re: Why is overriding unavailable designated initializer of super required?

2015-08-10 Thread Seth Willits
NS_UNAVAILABLE; -(id) convenienceInitializer NS_UNAVAILABLE; @end … this now leaves us correctly unable to call [[YourSubclass alloc] init] or [[YourSubclass alloc] convenienceInitializer]. Which brings me right back to my original question. If neither of those can be called, then impleme

Re: Why is overriding unavailable designated initializer of super required?

2015-08-10 Thread Seth Willits
nings and errors like this. Thanks. -- Seth Willits ___ 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/Unsubsc

Re: Initialisation pattern

2015-08-13 Thread Seth Willits
fault parameter - too late, -init is already unavailable. No, it's fine. Just declare the -init method as NS_DESIGNATED_INITIALIZER in the @interface of the child class, and implement it to call -initWithParameter: of the parent class. -- Seth Willits

Re: Initialisation pattern

2015-08-13 Thread Seth Willits
gt; unavailable" being issued by the compiler when instantiating Child. I'm using > xcode 6.3.2, does your version differ? I'm using Xcode 7 (beta 5) which has a newer version of clang in it than you have, so it appears this has changed. -- Seth Willits __

Re: Nullability annotation "best practice"

2015-08-16 Thread Seth Willits
Really? This list has no opinions? That's hard to imagine :-) -- Seth Willits > On Aug 8, 2015, at 1:15 PM, Seth Willits wrote: > > Let's stipulate that _Nullable and _Nonnull are great to have because they > can catch bugs and express API intent better than before, s

Completely baffled by NSTabViewController + Autolayout

2015-08-17 Thread Seth Willits
sing an NSTabViewController? Using NSTabViewControllerTabStyleSegmentedControlOnTop shows the segmented control, but there's no border? Using NSTabViewControllerTabStyleUnspecified + tabView.tabViewType = NSTopTabsBezelBorder; is as close as I can get, but then the tab view item's

Re: Constraints across sibling stack views?

2015-08-18 Thread Seth Willits
ilding, and reopening the xib everything is fine. So either two vertical stacks, or a vertical stack of three horizontal stacks, either works just fine. http://www.sethwillits.com/temp/upshot/upshot_taR2gwwa.png All is good! -- Seth Willits ___ C

Re: Nullability annotation "best practice"

2015-08-18 Thread Seth Willits
al edge cases in the future which could have resulted in problems that now would be caught by the compiler. Although it was tedious to add those annotations and validate them (it only took half a day or so), I feel better for having done it. -- Seth Willits

Re: navigating NSPopUpButton menu items with arrow keys

2015-08-23 Thread Seth Willits
e last, or vice > versa, this is a bit irritating. It's the standard behavior that's been in Mac OS for ages. I suggest not trying to fight it and introduce non-standard behavior. -- Seth Willits ___ Cocoa-dev mailing list (Cocoa-dev@lis

Mutation in Enumeration -- Breakpoint?

2009-09-06 Thread Seth Willits
I'm updating some rally old code, and I'm getting a bunch of: Collection was mutated while being enumerated. I'm wondering if there's a handy method I can break on to drop right into the location of these errors?

Re: Mutation in Enumeration -- Breakpoint?

2009-09-06 Thread Seth Willits
On Sep 6, 2009, at 2:04 PM, Seth Willits wrote: I'm updating some rally old code, and I'm getting a bunch of: Collection was mutated while being enumerated. I'm wondering if there's a handy method I can break on to drop right into the location of these errors?

NSLineBreakByClipping is not clipping

2009-09-07 Thread Seth Willits
tal room, both axis are properly clipped to the rect. I've also noticed that if I use NSLineBreakByTruncatingTail, it works fine all the time. Screenshot: http://www.sethwillits.com/temp/StringClippingBug.png Code: http://www.pasteit4me.com/32015 I

Crash - NSPopUpCell performClickWithFrame:inView:

2009-11-14 Thread Seth Willits
aking the call to performClick. So where is this deallocated instance coming from? Any ideas? -- Seth Willits ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list.

Re: Example of categorized lists in a Mail-type interface

2009-11-15 Thread Seth Willits
thods for NSOutlineView. -- Seth Willits ___ 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/U

Re: Trouble with NSSegmentedControl

2009-11-16 Thread Seth Willits
t? Yes. This I can help you with. I'll send you the code off-list. -- Seth Willits ___ 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: Sync .DS_Store files

2010-03-25 Thread Seth Willits
ly not possible. As far as I can tell 10.6 doesn't even write the file until it absolutely must for some reason, and the only way I've been reliably able to get that to happen is quit Finder or remove the media the DS_Store is saved on. (I did this to test DMG Canv

Re: OS X Game Programming

2010-04-07 Thread Seth Willits
On Apr 7, 2010, at 12:34 AM, Pascal Harris wrote: > Sorry to post such a non-technical question - I didn't know who else to ask. Hi Pascal, http://www.idevgames.com/forum/ -- Tons of active members willing to help. -- Seth

SFAuthorization bug / crash

2010-04-07 Thread Seth Willits
ags rights:&rights environment:kAuthorizationEmptyEnvironment]; if (![mAuthorization obtainWithRight:kAuthorizationRightExecute flags:flags error:nil]) { [mAuthorization release]; mAuthorization = nil; } } return mAuthorization

Re: The right place for an importer in the document architecture

2010-04-08 Thread Seth Willits
al top-level controller that does the reading, creates a new document of your native type, and sets the data on that document. -- Seth Willits ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comment

Re: ObjC question

2010-04-10 Thread Seth Willits
r > this type of question, apologizes in advance. You don't. That just doesn't make any sense. "f" can be "contained" by a billion different objects. -- Seth Willits ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.

Re: ObjC question

2010-04-10 Thread Seth Willits
eSystemEvent object from the Volume. Additionally, you could also create a struct which separately contains references to both the FileSystemEvent and the Volume if for some reason you don't have and don't want a reference to the Volume in the FileSystemEvent. -- Seth Willits _

Re: Changing the drag image on the fly

2010-04-11 Thread Seth Willits
code for the effect. Awesome link. Thanks! -- Seth Willits ___ 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.app

Re: NSMutable setArray Behavior

2010-04-20 Thread Seth Willits
g back to the source object? setArray: is equivalent to removeAllObjects and addObjectsFromArray: -- Seth Willits ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the modera

Re: Matching the style of a HUD?

2010-04-30 Thread Seth Willits
#x27;t see how to create matching black windows. > Any clues? It's right inside IB. It's an NSPanel with the HUD style turned on. -- Seth Willits ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin request

Re: NSSegmentedControl in a toolbar

2010-05-04 Thread Seth Willits
On May 4, 2010, at 5:46 PM, Graham Cox wrote: > I haven't found a need to use toolbar groups myself (though presumably they > solve a problem I haven't needed to solve so far) AFAICT, multiple labels on a single toolbar item?

Re: Authenticate NSFileManager Operations

2010-05-05 Thread Seth Willits
case, I have code in my application to install and load a kext on demand, and unload and uninstall. That involves authenticating to run kextload/unload, cp, rm, and chown. It works, and instead of being *thousands* of lines of code, it's under 200. But I'd still rather do it the ri

Re: Using a keyboard to push a button

2010-05-05 Thread Seth Willits
to the button, release. Select performClick: -- Seth Willits ___ 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: Authenticate NSFileManager Operations

2010-05-05 Thread Seth Willits
use doing AEWP correctly > is confusing. Which makes me wonder why Apple doesn't make an API for doing it "the right way" easily? :-) -- Seth Willits ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

Re: Using a keyboard to push a button

2010-05-05 Thread Seth Willits
On May 5, 2010, at 2:05 PM, Jens Alfke wrote: > In Interface Builder, select the button and then use the Attributes inspector > to set its key equivalent. (Click the box to the right of “Key Equiv.:” and > press the Enter key.) On May 5, 2010, at 2:03 PM, Seth Willits wrote:

Re: Using a keyboard to push a button

2010-05-06 Thread Seth Willits
#x27;t usable via vo to build an interface from > scratch at all, though it is (slowly) getting better in this regard, so any > code samples are greatfully accepted. That must be a challenge! You'd do: [button setKeyEquivalent:@"\r"]; -- Seth Willits

Re: Determining when dragging begins and ends

2010-05-07 Thread Seth Willits
On May 7, 2010, at 9:14 PM, Dave DeLong wrote: > How can I reliably know when dragging begins and ends? NSDraggingSource protocol? -- Seth Willits ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: how to cut and paste from an image to other image

2010-05-09 Thread Seth Willits
On May 9, 2010, at 11:15 AM, Jonathan Chacón wrote: > I don't know how can I cut a piece of an image and paste it in other image. > And more dificult, the second image is a button. Are you simply asking how to put an image/icon inside of a button? -- S

Re: Mouse Drag Ignore.

2010-05-11 Thread Seth Willits
... but drag operations are only noticed by views that have registered for dragging of a type that is currently being dragged. If you don't want anyone but a particular destination to notice the drag, use a custom drag type that only that destination

Re: Handling bindings of an NSControl which forward everything to an NSCell?

2010-05-11 Thread Seth Willits
but since everything > is forwarded none of the binding mechanisms work correctly. Forwarded how? -- Seth Willits ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Re: Mouse Drag Ignore.

2010-05-11 Thread Seth Willits
is registered for one of the types being dragged (a file perhaps). If you *only* want the content view to accept the drop, then you need to use a custom drag type (if you can), or unregister the image view for drags. What is being dragged? -- Seth Willits _

Re: Handling bindings of an NSControl which forward everything to an NSCell?

2010-05-11 Thread Seth Willits
ith leading underscores for their own private variable and method names. A lot of people still do it though, because conflicts are rare. The second most popular form is to use a leading m. At any rate, using _ for parameters is odd. -- Seth Willits

Re: Handling bindings of an NSControl which forward everything to an NSCell?

2010-05-11 Thread Seth Willits
oncepts/AutoVsManual.html#//apple_ref/doc/uid/20001844-BAJEAIEE -- Seth Willits ___ 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)l

Re: drawing border of NSPopUpButtonCell drawInteriorWithFrame:inView:

2010-05-16 Thread Seth Willits
s wrong? Well I don't know what you're seeing exactly, but the cells in a table view are spaced out. - (void)setIntercellSpacing:(NSSize)aSize The default intercell spacing is (3.0, 2.0). -- Seth Willits ___ Cocoa-dev mailing list (Cocoa

Re: drawing into a hidden view

2010-05-16 Thread Seth Willits
g set, and the view is still drawing the old content. That or something is calling setNeedsDisplay:NO. There's not really enough information here to go on. -- Seth Willits ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admi

Re: drawing border of NSPopUpButtonCell drawInteriorWithFrame:inView:

2010-05-17 Thread Seth Willits
On May 17, 2010, at 5:48 PM, Shane wrote: > [path moveToPoint:NSMakePoint(cellFrame.origin.x, cellFrame.size.height)]; > [path lineToPoint:NSMakePoint(cellFrame.size.width, cellFrame.size.height)]; If cellFrame = {500, 300, 120, 20} You're drawing from {500, 20} to {120, 20} -- S

Re: Which color space?

2010-05-30 Thread Seth Willits
olorSpace / NSDeviceWhiteColorSpace -- Seth Willits ___ 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/Up

Re: Which color space?

2010-05-31 Thread Seth Willits
10.0 and later. > I thought that NSDeviceWhiteColorSpace had BOTH a white and alpha channel. It does. Colorspace != bitmap format. -- Seth Willits ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or

NSOpenPanel won't allow selecting aliases

2010-06-23 Thread Seth Willits
CanChooseFiles:YES]; [panel setCanChooseDirectories:NO]; [panel beginSheetForDirectory:nil file:nil types:nil modalForWindow:window modalDelegate:self didEndSelector:@selector(..) contextIn

Re: NSOpenPanel won't allow selecting aliases

2010-06-29 Thread Seth Willits
figure out how allow aliases through in my delegate method. Since they don't just pop up as folders, I have to find something that identifies them as aliases to folders... Thanks -- Seth Willits ___ Cocoa-dev mailing list (Cocoa-dev@lis

Re: NSImage mouse events

2011-08-10 Thread Seth Willits
issues with layer-backed controls, so if your window has other views with controls in it, that can get annoying. -- Seth Willits ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the

Re: NSImage mouse events

2011-08-10 Thread Seth Willits
On Aug 10, 2011, at 3:48 PM, Seth Willits wrote: >> Currently I'm using the NSView's drawRect: method to composite the images, >> but also free to render them via NSImageView instances, if that will make >> things easier. My initial instinct was to setup NSTracki

Re: File Copy With Progress?

2011-08-14 Thread Seth Willits
;t too bad. I wrote a wrapper around it which can be both synchronous and asynchronous (to the caller), provides status updates on bytes and files copied, time remaining, etc, and is cancelable. Internally it's not too bad either. -- Seth Willits

Lion - CopiesOnScroll Bug with table view

2011-08-18 Thread Seth Willits
ly stumped on why this is broken all of a sudden. -- Seth Willits ___ 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: Lion - CopiesOnScroll Bug with table view

2011-08-19 Thread Seth Willits
the scrollview? Is it integral? > > -raleigh > > > On Aug 18, 2011, at 5:23 PM, Seth Willits wrote: > >> >> I have an NSTableView in a scrollview, and on Lion it's now smearing all of >> the drawing when scrolling: >> http://sethwillit

Re: Lion - CopiesOnScroll Bug with table view

2011-08-19 Thread Seth Willits
mice (such as Apple's trackpads and Magic Mice) will output >> non-integral mouse coordinates as well. > > And, on Snow Leopard and earlier, if the user had used > Ctrl-Scrollwheel to zoom in the screen, the window server would hand > you non-integral event coordinates

Re: How do you create a QTMovieView programmatically?

2011-08-19 Thread Seth Willits
it’s deprecated. > > So how are we supposed to make a QTMovieView in code? Ignore the documentation; it's a bug. Use initWithFrame: initWithFrame: used to be explicitly listed in the QTMovieView header, and my guess is when it was removed, it was marked as deprecated in the do

Custom Cell Bindings

2011-09-02 Thread Seth Willits
d reflect the change in the array controller's content. I've been looking in the documentation, headers, and Googling for clues for an hour now and I really can't find an answer. Surely someone has to have done this. :\ -- Seth Willits

Re: Custom Cell Bindings

2011-09-02 Thread Seth Willits
ue into the table view and/or delegate, but that's messy. It seems to me there's a single simple missing step which would make a custom cell completely support bindings when in a table column. NSCell has a value binding and I'm surprised it's not already being used here. -

Re: Custom Cell Bindings

2011-09-03 Thread Seth Willits
s observing or bound to anything on the cell, and no action is triggered on the table view either. On Sep 3, 2011, at 1:15 AM, Ken Thomases wrote: > The default implementation of -[NSCell > trackMouse:inRect:ofView:untilMouseUp:] takes care of invoking > -sendAction:to: for yo

Re: Custom Cell Bindings

2011-09-03 Thread Seth Willits
o a table view subclass or a controller which just seems wrong. The table view shouldn't care what kind of cell it is, it should just watch for objectValue to change after some user interaction and send the object on its merry way via bindings or to the data source. -- Seth Willits ___

Re: Custom Cell Bindings

2011-09-03 Thread Seth Willits
On Sep 3, 2011, at 10:43 PM, Ken Thomases wrote: > On Sep 3, 2011, at 10:20 PM, Seth Willits wrote: > >> Hence, my thinking is since it doesn't work right out of the box as I'd >> expect, then perhaps there's some undocumented thing I'm supposed to be >

Re: Custom Cell Bindings

2011-09-05 Thread Seth Willits
On Sep 3, 2011, at 11:35 PM, Seth Willits wrote: >> I believe that invoking -sendAction:to: on the table view is the X you're >> looking for. > > It's not. sendAction:to: is always called from the mouse tracking for > instance, even when the cell's target an

Re: Telling apart different save panels

2011-09-22 Thread Seth Willits
f solving the original problem is to have an instance variable for the sheet and use a comparison to distinguish them in the delegate methods. -- Seth Willits ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin request

Years-old mysterious bindings crash

2011-10-03 Thread Seth Willits
mory smashers etc What can I do to figure this out? Anybody have any tricky ideas? I'm hoping somebody has seen this stack trace before and knows what kind of subtle bug causes it. :\ Thanks, -- Seth Willits ___ Cocoa-dev mailing list (C

Re: Years-old mysterious bindings crash

2011-10-04 Thread Seth Willits
On Oct 3, 2011, at 8:56 PM, Quincey Morris wrote: > On Oct 3, 2011, at 18:29 , Seth Willits wrote: > >> I've been receiving reports of this rare but persistent crash over the past >> few years, and I've never been able to reproduce it or figure out what's

Re: Years-old mysterious bindings crash

2011-10-04 Thread Seth Willits
a ton of windows and tabs while connected to Instruments trying to find a leak. I tried to replicate it... can't. It's so rare. I've opened hundreds and hundreds of windows and tabs and closed them in all kinds of random orders... -- Seth Willits ___

Re: Strange mystery with Core Animation

2011-10-04 Thread Seth Willits
interesting one to play with if you can replicate it in a new project. The weirdest one I've come across is the CALayer convertPoint methods actually break CATransactions (sometimes). -- Seth Willits ___ Cocoa-dev mailing list (Cocoa-dev@lists

Re: Windows _findfirst , _findnext

2011-10-05 Thread Seth Willits
On Oct 5, 2011, at 1:31 PM, koko wrote: > Is there a best way to get thins done with NSFileManager? Just the straightforward loop and pathExtension comparison. -- Seth Willits ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: Years-old mysterious bindings crash

2011-10-05 Thread Seth Willits
Ok, this is long but I think I've maybe found an answer to something. I'm guessing I'm somehow rarely triggering a bug in Cocoa. I've had a couple of these exceptions, and this may be more helpful. So [AQConnTabController initWithNibName:bundle:windowController:] creates a NSObjectController

Re: Strange mystery with Core Animation

2011-10-06 Thread Seth Willits
On Oct 4, 2011, at 10:20 PM, Seth Willits wrote: >> Can anyone offer any explanation for this? > > Hmm. That would be an interesting one to play with if you can replicate it in > a new project. The weirdest one I've come across is the CALayer convertPoint >

Re: Strange mystery with Core Animation

2011-10-06 Thread Seth Willits
On Oct 6, 2011, at 1:06 PM, Kyle Sluder wrote: > On Thu, Oct 6, 2011 at 12:47 PM, Seth Willits wrote: >>> Hmm. That would be an interesting one to play with if you can replicate it >>> in a new project. The weirdest one I've come across is the CALayer >>>

Re: Screen Coordinates of Menu. Use CTM? (was: Give menu keyboard focus)

2011-10-09 Thread Seth Willits
Yeahh... What you did there was pretty nasty. :p The status icon/view in the menu bar is in a window. You can thus get that window's coordinates by [[[statusItem view] window] frame]. This relies on how it's currently implemented, however I don't see it changing any time s

Re: Screen Coordinates of Menu. Use CTM? (was: Give menu keyboard focus)

2011-10-09 Thread Seth Willits
ght location. The only annoying thing is the top corners are rounded and not square, but it does work. In my case, I have to have a custom view, but needed a normal menu so that's what I had to do. Graham's suggestion should work otherwise. Just make a view of the

  1   2   3   4   5   6   7   >