Re: Editable NSTextFieldCell with clickable button?

2009-08-21 Thread Seth Willits
Trying to avoid reinventing the wheel :-) http://developer.apple.com/samplecode/PhotoSearch/ 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

Re: Authorization Question (Possibly a simple POSIX question?)

2009-08-21 Thread Seth Willits
s everything up. -- 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/Update your Sub

Undocumented preparedCellAtColumn:-1 row:row

2009-08-21 Thread Seth Willits
mn:-1 returns though. Anyone know for sure? -- 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 Hel

Re: Undocumented preparedCellAtColumn:-1 row:row

2009-08-21 Thread Seth Willits
ableColumn *)tableColumn item:(id)item { // If we return a cell for the 'nil' tableColumn, it will be used as a "full width" cell and span all the columns Ah. And that happens when? I guess a group row is probably one ca

Drawing Text in an NSImage

2009-08-27 Thread Seth Willits
if the currently focused view is flipped. If we can't use these methods, are we really supposed to drop down to NSLayoutManager etc etc to draw a simple string? Is there really no secret API for image- friendly string drawing? Just want to double check before I have to go in

Re: Drawing Text in an NSImage

2009-08-29 Thread Seth Willits
s otherwise. The only way to get it to work is to apply an NSAffineTransform manually to trick the string into drawing the correct way (when the view is flipped). If you know you have to do that it's not so bad, but it's a pain in the butt trying to figure out that you need to do it. -- Seth

Standard Alert Note/Warning/Stop icon NSImage Names?

2009-08-29 Thread Seth Willits
Are the standard alert icons (note, warning, and stop) available through standard image names (like NSApplicationIcon)? They don't seem to be. -- Seth Willits ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

_NSAutoreleaseNoPool missing in Snow Leopard

2009-08-30 Thread Seth Willits
s. So it seems it's gone and I can't find anything similarly named. Does anyone know what I *should* be breaking on? I'd obviously like to track this down. -- Seth Willits ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Re: _NSAutoreleaseNoPool missing in Snow Leopard

2009-08-30 Thread Seth Willits
k on it with the debugger. That was actually what I tried first until I remembered the extra underscore typically being added. I then moved on to no underscores even. (I did find and fix the bug already, though.) -- Seth Willits ___ Cocoa-de

Re: NSWindow and setLevel

2010-07-22 Thread Seth Willits
> > Suggestions? -[NSWindow setCollectionBehavior:] -- 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

Re: question on speed and memory display on 10.6.

2010-09-12 Thread Seth Willits
ay of the > amount of system memory? Nothing changed except for the hard drive disk space display. -- 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 m

Re: NSOutlineView Drag and Drop

2010-09-14 Thread Seth Willits
SView method to register for dragged types. -- 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

Re: Why is NSPopUp broken in drop-down mode?

2010-09-17 Thread Seth Willits
ands. > > It refers to the style of the control. Pull-down controls are intended > to be filled with commands. They do not behave like popup controls. If > you want the popup behavior, you must have the popup appearance. Kyle speaks the truth. -- Seth Willits __

Re: Drawing a custom NSTabView Border

2010-09-17 Thread Seth Willits
x27;s frame, or even its bounds. It's some subrect of the view which needs to be redrawn. It could be {37, 53, 1, 1} for all you know. If you want to draw a rect around the bounds of the view, you need to use [view bounds], not the rect passed in. -- Seth Willits __

Re: Is it possible to have a plist date to be null?

2010-09-17 Thread Seth Willits
date, or must I resort to an empty > string? A null value in a plist is a value that isn't in the plist. -- Seth Willits ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to t

Re: Programmatic View Question

2010-09-17 Thread Seth Willits
o you don't have a massive blob of view creation code, and a big code landfill for every view in the window. Dunno how much that helps, -- Seth Willits ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or

Re: What's the point of @properties?

2010-09-20 Thread Seth Willits
ve* ivars for you to look at anyway. If you want to see its value, then you need to run the print/po command on the gdb command line. -- Seth Willits ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or m

Re: Instance an from an NSString Class name

2010-09-21 Thread Seth Willits
ss); > id thisObstacle = [[obstacle alloc] initWithImage:[[sender > draggedImage] retain] andLocation:[sender draggingLocation]]; > [m_obstacles addObject:thisObstacle]; Also no. The obstacle would retain it, if needed, as Jerry said. -- Seth Willits __

Re: Drag from Table To View

2010-09-25 Thread Seth Willits
On Sep 25, 2010, at 1:43 PM, k...@highrolls.net wrote: > But, It don't work so what now brown cow? Try to never say "it doesn't work." Explain *how* it doesn't work. Half the time you'll answer the question yourself. -- Seth Willits _

Re: Why is NSPopUp broken in drop-down mode?

2010-10-01 Thread Seth Willits
ore important than consistency across platforms. > Also, nothing > indicates to the developer why the data-handling behavior of the > control has changed simply because he chose an "up" or "down" style of > opening. Yo

Re: what are the scenarios for an app to be terminated?

2010-10-06 Thread Seth Willits
he details there. Anytime your application is quit, that will be called. Anytime your application is force-quit, it won't, but that's the point of force quitting. -- Seth Willits ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Ple

Re: Return value of performSelector:onThread:?

2010-10-08 Thread Seth Willits
mutable dictionary, you can shove multiple "parameters" into it for the method to use, and the method can add the return value. Whatever gets triggered after the method is done can examine the dictionary to see the result. Just make sure you do the memory management

CALayer renderInContext: performance

2010-11-03 Thread Seth Willits
it a lot faster, or something else I could be doing. Everything that's being drawn (about 80 layers), was previously drawn using Quartz very quickly, so I'm hoping there's some way to force renderInContext: to ditch transparency layers o

Re: Best way to get outlet from one NIB to another NIB

2010-11-04 Thread Seth Willits
ou should be doing. -- 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/Update your

CATransaction setCompletionBlock - Nested Transactions bug?

2010-11-07 Thread Seth Willits
commit]; [CATransaction commit]; NSLog(@"After commit"); Result: 0.000 seconds - After commit 1.000 seconds - Inner completion block 1.000 seconds - Completion block -- Seth Willits _

Re: CATransaction setCompletionBlock - Nested Transactions bug?

2010-11-07 Thread Seth Willits
diction at the very least seems wrong. It's certainly undocumented and unclear. -- 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

Re: CATransaction setCompletionBlock - Nested Transactions bug?

2010-11-07 Thread Seth Willits
to me, nested transactions with animations should count. Whether they do or not is not clear. Using an animation group to try to achieve the same would be a lot more code and involve more entanglement between things. -- Seth Willits ___ Cocoa-dev mailin

Re: CATransaction setCompletionBlock - Nested Transactions bug?

2010-11-07 Thread Seth Willits
ated to your own. I don't see how it'd make anything unsafe. Waiting on the timing of all nested animations is the point of the completion block. Apple agrees, given that in my second example it does that as I expect. -- Seth Willits ___

Re: CATransaction setCompletionBlock - Nested Transactions bug?

2010-11-08 Thread Seth Willits
stuff as you suggest. But the only way to know when all nested things are done, is the transaction's completion block. I guess since nobody else has chimed in on the behavior I'm seeing, I'll file report about it and see what Apple has to say about it. -- Seth Willits _

CALayer convertPoint:toLayer: affecting animations bug?

2010-11-10 Thread Seth Willits
f the convertPoint:toLayer: line is in there, it ignores the first transaction entirely and simply animates from whatever layerA's current position is, to end. Sample project: http://www.sethwillits.com/temp/CAConvertPointBug.zip -- Seth Willits

Re: OS X Desktop

2010-12-06 Thread Seth Willits
still need to use AppleScript to get/set the file position reliably, unless you're going to force the user to quit Finder, rewrite the private file, and relaunch Finder. -- Seth Willits ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Pl

Re: OS X Desktop

2010-12-07 Thread Seth Willits
it, rewrite the file, and relaunch Finder. Either way, it's more likely to break and is more disruptive to the user than AppleScript. -- Seth Willits ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or

Re: NSToolbarItem Craziness

2010-12-16 Thread Seth Willits
nds to that same action. -- 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/Updat

Re: NSView setAlphaValue question

2010-12-16 Thread Seth Willits
7;t have to start over completely. Off the top of my head I can't think of a simpler solution. -- Seth Willits ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list

Re: NSView setAlphaValue question (Update still not working)

2010-12-16 Thread Seth Willits
be nice to keep it the same on both. Any thoughts of what maybe I'm doing > wrong? Thanks again, I really can't tell from what you've said what would be wrong. There's certainly no reason it shouldn't work on Leopard. Make a movie and/or sample project/code. -- S

Re: NSView setAlphaValue question (Update still not working)

2010-12-17 Thread Seth Willits
on doesn't support or you're not using Core Animation. -- 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(

Re: CALayer and pixel alignment

2010-12-21 Thread Seth Willits
it'll be unaligned. Same with an even sized layer on a X.5 coordinate. -- 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: Drawing to two CALayers at once (or pretend to)?

2010-12-27 Thread Seth Willits
one to fetch and read the data and create the path from it, then save that CG path. When either layer draws, it would simply use that path. It'd be trivial. -- Seth Willits ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not

Re: Drawing to two CALayers at once (or pretend to)?

2010-12-27 Thread Seth Willits
f > the CA API. Well nobody says you have to keep the CGPaths around forever. Release them at your will. You can use NSCache even if you want. You also have the option of simply assigning to the contents property of the layer. You don't *have* to wait for the drawing event to occur. -- S

Re: A Quick Look contribution and a question

2011-01-03 Thread Seth Willits
roller imageForItems:[NSArray arrayWithObject:item]]; } -- 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

Re: NSBorderlessWindowMask & frontmost behaviour

2011-01-04 Thread Seth Willits
7;m looking for > a way to solve this. > > Any hints? Sorry to bother you, but I'm drawing a blank in my google searches > and I figured I'd try here. You need canBecomeMainWindow to return YES too. -- Seth Willits ___ Coc

Re: Making a window topmost within an application

2011-01-06 Thread Seth Willits
as a child of another, you can force it to always be ordered above or below it. 2) Call orderFrontRegardless when it's ordered out? 3) Intercept sendEvent and call NSApplication's preventWindowOrdering? You'll have to tinker, but the window level is the right solution and should

Re: keyDown event processing -- harder than it looks?

2011-01-11 Thread Seth Willits
On Jan 11, 2011, at 11:17 AM, Michael Crawford wrote: > I'm trying to process a simple keyDown event by overriding -keyDown on the > NSWindowController derived class for my main window. The NSWindowController doesn't receive events, only views do.

Re: keyDown event processing -- harder than it looks?

2011-01-11 Thread Seth Willits
ed it and I'm not sure what that log message is supposed to mean. -- 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

Core Image increases memory use a lot

2011-01-16 Thread Seth Willits
CIContext * context = [CIContext contextWithCGContext:theContext options:NULL]; CGRect extent = [image extent]; [context drawImage:[blur valueForKey:@"outputImage"] inRect:self.bounds fromRect:extent]; [context drawImage:[gradient valueForKey

Re: Core Image increases memory use a lot

2011-01-16 Thread Seth Willits
That's not applicable here. I'm not drawing many many things before returning to run loop so my memory usage isn't increasing due to repeated calls. It's just this single image. Just for giggles I tried it anyway, and as expected there's no difference at all. --

Re: Core Image increases memory use a lot

2011-01-16 Thread Seth Willits
increase at all, as I would expect. > I expect Core Image is caching stuff for future use... I have the same thought, but if I kill off the filter and every other CI-related object, I'd expect that to go away. Creating new filters and executing it again isn't significant

Re: starting with Cocoa!

2011-01-21 Thread Seth Willits
pletely. The latest tools (which is the only way to support the latest iOS releases) require Snow Leopard. Your MacBook can run Snow Leopard, so I suggest you upgrade. Welcome to the club. I'm sure your embroidered jacket and fez with fluffy tassels is on its way in the

Re: Cocoa Drawing vs. Quartz Drawing

2011-01-22 Thread Seth Willits
e is pretty different, but a lot simpler to use than CG. I use NS wherever I can, and use CG wherever it's needed. It ends up to be less code that way. -- Seth Willits ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post a

Re: Undomanager for custom object?

2012-03-13 Thread Seth Willits
; NSResponder has undo/redo features, but how should I implement this for a > custom object? It's covered pretty well in the documentation. https://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/UndoArchitecture/UndoArchitecture.html#//apple_ref/doc/uid/10

Re: Making a NSPanel to look active

2012-03-14 Thread Seth Willits
and row highlights, so I think your only option is to subclass the controls to tweak drawing. Otherwise you'll have to go along with the standard behavior. -- Seth Willits ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not p

Re: An approach sought

2012-03-14 Thread Seth Willits
object and simply want the model to persist, then you could store the whole model somewhere (perhaps user defaults). Serialize it to a dictionary object or use NSCoding, and save that into your persistent store. When the app launches, load it back up. -- Seth Willits _

Re: Undomanager for custom object?

2012-03-14 Thread Seth Willits
and reading apple documentation it seems to be the preferred solution in many cases. It doesn't always have to be that way. I hope that helps, -- Seth Willits ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post ad

Re: Undomanager for custom object?

2012-03-15 Thread Seth Willits
NSDocument * document; Or if you're using ARC, you can actually use the strong and weak keywords -- Seth Willits ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the

Re: NSViewAnimation fade[In/Out]effect not working

2012-03-15 Thread Seth Willits
means the new view must be in the window before the animation starts, and the old view can only be removed after the animation ends. Instead of swapping out the content view of the window, you need to add these views as subviews of the content view, fade them as desired,

Re: NSViewAnimation fade[In/Out]effect not working

2012-03-16 Thread Seth Willits
sds1View]; [[[wc window] contentView] addSubview:genView]; That's fine, but then in fadeInView:fadeOutView: you simply replaced the entire content view with one of those views: [[wc window] setContentView:fadeInView]; You don't want to do that.

Re: iTunes like Fast Forward and Rewind Buttons

2012-03-16 Thread Seth Willits
epeats:YES]; } - (void)scrubTimer:(id)timer { NSBeep(); NSLog(@"Scrub"); } -- 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 moderat

Re: Transition from [NSEvent phase] to [NSEvent momentumPhase]

2012-03-16 Thread Seth Willits
ally come to thinking of it, that dispatch probably gets executed at the end of the current event loop run anyway. Perhaps there's a better time to do cleanup altogether? -- Seth Willits ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com

Re: Transition from [NSEvent phase] to [NSEvent momentumPhase]

2012-03-16 Thread Seth Willits
> I'm hoping there is one, I'm not happy with the way its working right now. > Thanks anyway! Well you could spitball about why you need post-scroll clean up. Maybe there's a way to eliminate it. -- Seth Willits ___ Cocoa-dev

Re: Need a progress indicator in my cell-based NSTableView

2012-03-19 Thread Seth Willits
subview. If it shouldn't be in the tv, it's removed if it is there. You can optionally set the indicator on the cell and have the cell do the layout. -- Seth Willits ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not pos

Re: makeObjectsPerformSelector on a sub class

2012-03-21 Thread Seth Willits
ierarchy, or even what category on any of those classes the method is implemented at. The method will always be called even if the object *doesn't* implement it. The only reasons it wouldn't be called are: 0) self is nil 1) self.view is nil 2) self.view has no subviews. -- Seth Willits

Re: NSData, CFData maximum length question

2012-03-21 Thread Seth Willits
d it took me a long time, but I found it. The bug is in __CFDataRoundUpCapacity, and has to do with a bad (1 << ….) which should be (1L << …). I'll file a report. -- Seth Willits ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com

Re: NSData, CFData maximum length question

2012-03-21 Thread Seth Willits
On Mar 21, 2012, at 10:49 PM, Seth Willits wrote: > On Mar 21, 2012, at 6:00 PM, Grandinetti Philip wrote: > >> I am confused about different behavior I'm seeing with CFData and NSData. >> If I create a new project in XCode 4.3.1 as a Core Foundation command line >

Re: advice for creating these controls

2012-03-22 Thread Seth Willits
e, and the popup would draw the vertical separator as its left edge), or you could make it a single custom control. Either approach would work, but I always do the latter. -- Seth Willits ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Pleas

Re: advice for creating these controls

2012-03-22 Thread Seth Willits
right? It's NSSegmentedCell that does the drawing for the control. Same goes for all of the other controls - their cells do the drawing. -- Seth Willits ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: advice for creating these controls

2012-03-23 Thread Seth Willits
less than 200 lines to create a basic segmented control anyway. -- 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)li

Re: Order of Finder labels

2012-03-31 Thread Seth Willits
That is, I'd like to conform to Apple's > interface. Is this possible? Why wouldn't it be? Just display them in the same order as Finder and don't rely on the display index being the same as the label index you use in the assignment. I don't really see

Re: Order of Finder labels

2012-04-01 Thread Seth Willits
:) But as you say, in practice it'll work. The order doesn't make any sense to me either, but the label names and colors don't change their index in 10.7 or 10.6 so you can rely on it. I doubt they've changed for 10.8 either. -- Seth Willits

Re: Dictionary not returning objects

2012-04-15 Thread Seth Willits
ou have key and object reversed. -- 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/Unsubscr

Re: Responder chain inclarity

2012-04-15 Thread Seth Willits
efore getting to your stack trace, but that's not what the problem is here. And it is fine for it to remove itself, just as long as nothing else after the removal references the view controller further if the removal causes a deallocation. -- Seth Willits

Re: Tabbing between text fields

2012-04-18 Thread Seth Willits
thin one > of the delegate methods? http://developer.apple.com/library/mac/documentation/Cocoa/Reference/ApplicationKit/Classes/NSWindow_Class/Reference/Reference.html#//apple_ref/occ/instm/NSWindow/makeFirstResponder: -- Seth Willits ___ Cocoa

Re: Sandbox Frustrations - A Good Idea handicapped by poor docs

2012-04-27 Thread Seth Willits
On Apr 27, 2012, at 9:57 AM, Andrew Satori wrote: > Don't get me wrong, I think the sandbox is a good idea in the long run, but > at the moment, it seems to be incomplete at best. Yyyyup. > Has anyone else run into problems with the ipc-sysv-shm restrictions? How > did you work around them

PubSub Framework Alternative

2012-08-11 Thread Seth Willits
Wondering if there are others I can't seem to find. (You'd think there would be a few…) -- Seth Willits ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Conta

Re: PubSub Framework Alternative

2012-08-12 Thread Seth Willits
unk with this assertion and I've come across at least one other before. I find it somewhat surprising that there are dozens of Mac and iOS feed readers out there, but no major open source Cocoa alternative to PubSub. -- Seth Willits ___ Coco

Re: NSTextView paste:

2012-08-13 Thread Seth Willits
ot;]; return YES; } } return [super readSelectionFromPasteboard:pboard type:type]; } -- Seth Willits ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or

Re: NSTextView paste:

2012-08-13 Thread Seth Willits
tringPboardType]; result = [super readSelectionFromPasteboard:pboard type:type]; [pboard setString:@"foo" forType:NSStringPboardType]; return result; } } return [super readSelectionFromPasteboard:pb

Re: PubSub Framework Alternative

2012-08-21 Thread Seth Willits
useful and faster, so I started working on that — and then promptly got distracted by something else. ;-) -- Seth Willits ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. C

Re: Implementing Manual KVO For Bitfields Set in Atomic Operations

2012-08-21 Thread Seth Willits
orValuesAffectingFoo / Bar; { return [NSSet setWithObject:@"state"]; } That way you only need to do will/didChangeValueForKey:@"state" and the other KVO methods get triggered as well, instead of having to next multiple will/dids for each key (foo, bar,

Re: Ordering of Completion Handlers

2012-08-31 Thread Seth Willits
A complete before B. The trouble with this is that it ends up with a chain of retains through the dependencies properties (dependencies aren't dropped from the operation even if they're met), so you need to manually remove it from within the operat

Re: Ordering of Completion Handlers

2012-09-01 Thread Seth Willits
On Sep 1, 2012, at 9:53 AM, Andreas Grosam wrote: > On 31.08.2012, at 19:35, Seth Willits wrote: > > Thank you very much Seth. It's a feasible approach. > Your idea inspired me to a simple solution which is demonstrated in the > running example below. > > There is onl

Re: Best data source for table view in document window

2012-09-05 Thread Seth Willits
{ NSTableView * resultListTableView; NSArrayController * resultListArrayController; } @property (readwrite, retain) NSArray * results; @end The view controller is the delegate and data source for the table view and manages a bunch of little things related to the table

Re: View based outline view and custom NSTableCellViews

2012-09-06 Thread Seth Willits
It's like any other custom class stuff in IB, so there aren't any hidden tricks involved. Elaborate on "not letting me do that." -- Seth Willits ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admi

Re: Code Comments

2012-09-08 Thread Seth Willits
xmlParser release]; } …but then one has to wonder why you need this method in this particular object. It's a bit awkward. I don't know what your delegate does exactly, particularly handling the results, but I would lean towards handing the data to the delegate object and t

Re: Mac cursor hotspot is not at the tip of the cursor

2012-09-13 Thread Seth Willits
On Sep 5, 2012, at 5:16 AM, Ernesto Monde wrote: > Is there any way to make using default cursor as customer expects… Yes. Leave it alone. That's what the customer expects. Why should the arrow cursor behave any differently in your application versus every other application? -- Seth

Re: Static Cocoa Library

2012-10-06 Thread Seth Willits
SBundle bundleForClass:[AClassInYourLibrary class]] pathForResource:...] to look in the right place for the images. -- Seth Willits ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Con

Re: Static Cocoa Library

2012-10-06 Thread Seth Willits
On Oct 6, 2012, at 1:05 PM, koko wrote: >> use a framework to keep the images bundled with the library > > Does the Framework Bundle behave as an App Bundle, i.e. is Bundle a Bundle no > matter what? I don't know what you're a

Re: NSScreen ID Unreliable

2012-10-09 Thread Seth Willits
On Oct 9, 2012, at 10:38 AM, Gordon Apple wrote: > OK, this sucks. So how does one get a reliable (and persistent storage > capable) way to identify a screen? I use frame comparisons. I think the answer is going to depend on what you need it for. -- Seth W

Re: Associate icon with file ext. / quick look

2012-10-17 Thread Seth Willits
ns those files? > Secondly, how can I tell quick look to preview the-said files just like it > would any other text file ? I believe if you specify that the UTI of the custom file types descends from the plain text UTI type, it'll just work. -- Seth Willits _

Re: Associate icon with file ext. / quick look

2012-10-18 Thread Seth Willits
On Oct 18, 2012, at 4:04 AM, Jean Suisse wrote: > Thank you for your reply. I am not familiar with the topic, but if I > understand you correctly, what you say implies that : > > 1. The icon for the file type must be the same than the icon for the app. > 2. If my app generates three files of dif

Re: Binding InfoPanel to currentDocument

2012-10-25 Thread Seth Willits
BecomeActive: (And actually, this is how Omni has been doing it for yars.) -- 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

Re: Binding InfoPanel to currentDocument

2012-10-25 Thread Seth Willits
On Oct 25, 2012, at 3:24 PM, Kyle Sluder wrote: > On Thu, Oct 25, 2012, at 09:42 AM, Seth Willits wrote: >> >> But, if you just use the -object in the notification to >> windowDidBecomeMain: you're fine. So if you keep a reference to that >> window/document your

Re: App rejection due to app-sandboxing invalid entitlement

2012-10-25 Thread Seth Willits
n the phone (I am not convinced he actually had a soul), he pretty much accused me of copying Apple (nevermind the facts), and hung up on me when I asked to speak to a manager. Unbelievable. Sorry. I'm not one to complain in public, but good grief… There&#

Re: Searching array with block

2012-11-11 Thread Seth Willits
g hereby that I ought to be building an indexSet rather than > duplicating the objects? and publishing the indexSet as perhaps - > selectionIndexes ? Yup. And -selection can be a read-only KVO-able array if you still need it etc. -- Seth Willits _

Re: What makes a URL Handler be persistent?

2012-11-14 Thread Seth Willits
sters it when the helper is launched, but if you're only launching the helper via the URL scheme then it doesn't get registered? In your main app, try simply adding a call to LSSetDefaultHandlerForURLScheme() on launch. -- Seth Willits ___

Re: Invoking protocol method on the main thread

2012-11-15 Thread Seth Willits
ispatch_async(dispatch_get_main_queue(), ^{ anything; }); -- 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)li

Re: Checking document structure in NSDocument based app

2012-11-27 Thread Seth Willits
validate it. If it doesn't make any sense (ie the cookie is wrong or the version number is wacky), you can assume it's the old file format. -- Seth Willits ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post a

Re: Reordering a table insanity

2012-11-27 Thread Seth Willits
;t put a ton of thought into this. If you have thusands of objects though, the indexOfObjects can get expensive. Also, be glad it's not an outline view... that can get super confusing in a hurry (what if the selection contains a mixture of ancestors and descendants etc). Hope th

Re: Reordering a table insanity

2012-11-28 Thread Seth Willits
just that easy? Well, you left some details out which made it appear easier. You do need to adjust the indexes in C1 because you're reordering the dragged items backwards otherwise. -- Seth Willits ___ Cocoa-dev mailing list (Cocoa-dev@lists.appl

Re: Reordering a table insanity

2012-11-28 Thread Seth Willits
roject: http://www.sethwillits.com/temp/TableViewReorder.zip -- 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

Re: Dragging CALayer in an event loop

2012-12-17 Thread Seth Willits
[CATransaction setDisableActions:YES]; inside the transaction. I don't think the animation duration being 0 has the exact same effect. -- Seth Willits ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator c

<    1   2   3   4   5   6   7   >