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
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
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
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
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
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
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
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)
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
>
> 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
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
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
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
__
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
__
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
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
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
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
__
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
_
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
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
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
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
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
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
_
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
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
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
___
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
_
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
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
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
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
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
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
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(
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-
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
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
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
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
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
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.
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
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
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.
--
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
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
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
; 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
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
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
_
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
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
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,
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.
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
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
> 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
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
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
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
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
>
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
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
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
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
:)
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
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
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
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
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
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
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
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
tringPboardType];
result = [super readSelectionFromPasteboard:pboard
type:type];
[pboard setString:@"foo" forType:NSStringPboardType];
return result;
}
}
return [super readSelectionFromPasteboard:pb
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
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,
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
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
{
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
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
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
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
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
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
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
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
_
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
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
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
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
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
_
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
___
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
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
;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
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
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
[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
201 - 300 of 601 matches
Mail list logo