A further thought - why are you trying to do a hit-test during a drawing method
anyway?
If your aim is to perform some highlighting during tracking, then the cell has
well-defined methods and states for determining when to do that. This
hit-testing is performed when the cell is being tracked in
i too get hung up (and still am to some degree) on converting points etc ... is
there an easy guide for this ?
On May 12, 2010, at 1:01 AM, Graham Cox wrote:
>
> On 12/05/2010, at 2:51 PM, aaron smith wrote:
>
>> To me the first "localPoint = ..." should be the correct way to
>> convert the w
On 12/05/2010, at 2:51 PM, aaron smith wrote:
> To me the first "localPoint = ..." should be the correct way to
> convert the windowPoint to the control views' coordinate space. But
> it's never right.
>
> Any ideas?
> localPoint = [[self controlView] convertPoint:windowPoint toView:nil];
You
Heyo, quick question.
I've got an NSControl and NSCell, and am doing some logic with testing
if the mouse is down, and making sure the event location is within the
bounds of the cell's control view.
I've tried quite a bit of different ways of getting the event point
converted to the control view.
I am on OS X 10.6, XCode 3.2.2, GC and Core Data. I have a single entity app
where I subclassed NSManagedObject so I can generate a "Job Ticket ID" for my
Job entity whenever a new Job is inserted. However I am getting an error in my
Log that is complaining that...
-[NSCFNumber count]: unrecogn
On May 11, 2010, at 10:17 AM, Keary Suska wrote:
> There have been some lengthy discussions about this. An object may choose to
> emit KVO notifications for its collection properties (but this behavior
> should never be expected unless it is specifically documented), but no
> collection will ev
"I would be surprised since it is developer-fault anyway"
developers don't make mistakes. machines do!. hahah. j/k.
Thanks for the tips and links everyone.
On Tue, May 11, 2010 at 3:26 PM, Keary Suska wrote:
> On May 11, 2010, at 2:42 PM, Quincey Morris wrote:
>
>> On May 11, 2010, at 12:45,
On May 11, 2010, at 2:42 PM, Quincey Morris wrote:
> On May 11, 2010, at 12:45, Joanna Carter wrote:
>
>> Only if you implement the KVO pattern in the setters:
>>
>> - (void) setCornerSize:(NSSize) _size
>> {
>> [self willChangeValueForKey:@"CornerSize"];
>> [[self cell] setCornerSize:_size];
>>
Since no one had any suggestions...
I ended up doing some interesting stuff with this. When constructing my
predicate, I turn the offset into a substitution variable. So in the example I
gave, "NOW() - 1 day" would become the variable "$NOW86400". Then any time I
need to evaluate that predic
I have a WebView that I use to capture a thumbnail of a loaded webpage
using cacheDisplayInRect:. The WebView object is created
programmatically and not attached to a window. About half the time,
the image it grabs is blank. I can't seem to figure out if I'm trying
to grab it too soon or what. Woul
Hi Seth
> This is not true. -setCornerSize: -cornerSize are KVO/C compliant method
> names and require no manual triggering of will/didChangeValueForKey:.
>
> To quote the documentation:
>
> "... it is not necessary to bracket changes to a property with invocations of
> willChangeValueForKey:
On May 11, 2010, at 12:44 PM, Joanna Carter wrote:
>> Will that still trigger the normal binding behavior?
>
> Only if you implement the KVO pattern in the setters:
>
> - (void) setCornerSize:(NSSize) _size
> {
> [self willChangeValueForKey:@"CornerSize"];
> [[self cell] setCornerSize:_size];
On May 11, 2010, at 12:45, Joanna Carter wrote:
> Only if you implement the KVO pattern in the setters:
>
> - (void) setCornerSize:(NSSize) _size
> {
> [self willChangeValueForKey:@"CornerSize"];
> [[self cell] setCornerSize:_size];
> [self didChangeValueForKey:@"CornerSize"];
> }
Um, not so muc
Greetings LA Cocoa Heads!
Imagine a world without games. A world without fun. Now forget that world. That
world doesn't exist. We live in a world with fun and games. This led Jonathan
Badeen (http://badeen.com) to develop his first iPad game, Match Made
(http://indeedstudios.com/matchmade), 2 w
Hi Scott
> You can always put the nil on the left. (I know, looks odd to me too, but I
> might just have to get into the habit eventually.)
Personally, I feel so uncomfortable with that idea. And using nil (or not) as a
"boolean" is so well documented and used, I have been using it for at least
On May 10, 2010, at 2:43 PM, Todd Heberlein wrote:
> The only problem is that from time to time I enter a single = instead of a
> double ==, so it does ever so slightly increase the risk of a bug.
You can always put the nil on the left. (I know, looks odd to me too, but I
might just have to get
Le 11 mai 2010 à 20:45, Joanna Carter a écrit :
Sorry, the case of the property names is wrong in my code.
Assuming the properties are called cornerSize, upImage and downImage:
- (void) setCornerSize:(NSSize) _size
{
[self willChangeValueForKey:@"cornerSize"];
[[self cell] setCornerSize:_siz
> You'd only be getting draggingExited/draggingEntered when going into and out
> of the image view because the image view 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
Perfect. Thanks for the tips!
On Tue, May 11, 2010 at 12:45 PM, Joanna Carter
wrote:
> Hi Aaron
>
>> Inside of the setter methods it forwards the value to the cell. Here's
>> a quick snippet:
>>
>> @implementation GDScale9Button
>> - (void) setCornerSize:(NSSize) _size {
>> [[self cell] set
>
> Ahhh. Yes, that's much more specific.
>
> You'd only be getting draggingExited/draggingEntered when going into and out
> of the image view because the image view is registered for one of the types
> being dragged (a file perhaps). If you *only* want the content view to accept
> the drop, t
Hi Aaron
> Inside of the setter methods it forwards the value to the cell. Here's
> a quick snippet:
>
> @implementation GDScale9Button
> - (void) setCornerSize:(NSSize) _size {
> [[self cell] setCornerSize:_size];
> }
>
> - (void) setUpImage:(NSImage *) _image {
> [[self cell] setUp
On May 11, 2010, at 12:31 PM, aaron smith wrote:
> Inside of the setter methods it forwards the value to the cell. Here's
> a quick snippet:
>
> @implementation GDScale9Button
> - (void) setCornerSize:(NSSize) _size {
> [[self cell] setCornerSize:_size];
> }
>
> - (void) setUpImage:(NSImag
Inside of the setter methods it forwards the value to the cell. Here's
a quick snippet:
@implementation GDScale9Button
- (void) setCornerSize:(NSSize) _size {
[[self cell] setCornerSize:_size];
}
- (void) setUpImage:(NSImage *) _image {
[[self cell] setUpImage:_image];
}
- (void)
On May 11, 2010, at 11:50 AM, Sandro Noël wrote:
> the image in the item view seems to be hogging the mouse when the mouse is
> over it
> which sends the draggingExited notification to the window
>
> when the mouse exist the image rect, the window receives another
> draggingEntered notification
On 2010-05-11, at 2:09 PM, Seth Willits wrote:
> On May 11, 2010, at 10:46 AM, Sandro Noël wrote:
>
>> ok, now, the drag operation happens in the window controller.
>> as long as I do not have an item vie inserted into the items view i can drag
>> anywhere on the window.
>> as soon as I have a
On 11 May 2010, at 19:00, Uli Kusterer wrote:
> On May 11, 2010, at 7:46 PM, Sandro Noël wrote:
>> Question: is it possible for the drag operation to be ignored by everything
>> except the main window?
>
> You could create a custom content view and override NSView's -hitTest: method
> to retur
On May 11, 2010, at 11:01 AM, aaron smith wrote:
> Hey, quick question.
>
> How does one handle binding with an NSControl which forwards all of
> it's getters/setters to the NSCell? I've built a custom NSControl and
> cell, and want to be able to bind to the control, but since everything
> is for
On May 11, 2010, at 10:46 AM, Sandro Noël wrote:
> ok, now, the drag operation happens in the window controller.
> as long as I do not have an item vie inserted into the items view i can drag
> anywhere on the window.
> as soon as I have a NSImageView in there the drag operation pauses for the
>
Hey, quick question.
How does one handle binding with an NSControl which forwards all of
it's getters/setters to the NSCell? I've built a custom NSControl and
cell, and want to be able to bind to the control, but since everything
is forwarded none of the binding mechanisms work correctly.
Any ide
On May 11, 2010, at 7:46 PM, Sandro Noël wrote:
> Question: is it possible for the drag operation to be ignored by everything
> except the main window?
You could create a custom content view and override NSView's -hitTest: method
to return self, I suppose? You'd need a flag to only do that duri
Greetings.
I'm experimenting with drag and drop.
i have a window, and a couple of view's arranged as so.
window - |
content view-|
decoration view
item's view -|
This user has been removed from the list.
On May 10, 2010, at 4:26 PM, Rajashekhar Managoli wrote:
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at co
On May 11, 2010, at 4:53 AM, Jonathan del Strother wrote:
> Long shot : has it hit a breakpoint?
No
> And if not, what happens if you pause the debugger and step through?
Here's the stack after I launch, see "Run", then hit 'Pause'
#0 0x9809d2fa in mach_msg_trap
#1 0x9809da67 in ma
On 5/10/2010 7:36 AM, Sachin Porwal wrote:
I also tried using noteFileSystemChanged after creating the shortcut :
Try sending a kAESync event to the Finder. Here's my code to do it.
Note that although this is Carbon code, it will compile for the x86_64
architecture. Use CFURLGetFSRef to go
Hi,
I'm currently working on some reading application that will support pagination
of xhtml/html content.
Since I plan on using the UIWebView for displaying the content i'm wondering
how to realize pagination.
CSS3 column layout seems to be kinda broken as even when using column-policy:
strict t
On Mon, May 10, 2010 at 6:56 PM, douglas welton <
douglas_wel...@earthlink.net> wrote:
> > CALayer is not KVO-compliant for its properties.
>
> Kyle... Would you provide a pointer to where this is explicitly stated in
> the documentation. thx
>
No property should be treated as KVO compliant un
Well, I'll use the NSString and things like that it will be safer for sure but
I just wanted to see where the problem came from.
Anyway,thanks again for your help,
Paul
> Subject: Re: Problem mac os X version 10.6 when using sprinft
> From: alast...@alastairs-place.net
> Date: Mon, 10 May 2010
I've got a minimal browser app that is linked against the WebKit framework
that I'm building with XCode. I'm developing a website that uses some HTML5
local storage features, including the ability to create a local SQL
database. This site works properly in in Safari and Chrome, but I can't
create
On May 11, 2010, at 8:53 AM, Eric Giguere wrote:
> Also my though, this is a job for custom accessors.
>
> I also guess that your answer concerning the collections don't include the
> cases where you do it outside the model but in the controller layer. This has
> proven to be working in other p
Hi Keary
Also my though, this is a job for custom accessors.
I also guess that your answer concerning the collections don't include the
cases where you do it outside the model but in the controller layer. This has
proven to be working in other parts of my app:
[personsController addObse
On May 11, 2010, at 8:10 AM, Eric Giguere wrote:
> Everybody tends to point in using the KVO notifications instead of the custom
> accessors, even if those are generated. Ok, but I couldn't make it work.
> Using controllers, no problem but what if I want my parent entity to be its
> own observe
Thanks Kevin,
Thanks also to Paul Sanders and Jean-Daniel Dupas. The advice to use an
NSApplication subclass overriding sendEvent: along with noodlesoft's timer
setup works perfectly.
In my application, the app is "locked" after an idle time and the user must
authenticate again. I put a flag (
On 11 May 2010, at 11:01, Chaitanya Pandit wrote:
> Is there any way to make CAScrollLayer to scroll to a point without animating?
>
> I tried this just before i call scrollToPoint, but didn't work
>
> [CATransaction begin];
> [CATransaction setValue: (id) kCFBooleanTrue forKey:
> kCATransacti
Hi all
I have to deal here with a pretty usual situation where my entity has a to-many
relationship to another entity. I need, in my parent entity, to be notified
when children are added or removed since I have another attribute in my entity
and its value depends on this relationship's content.
The next meeting of Columbiao CocoaHeads will be held on Tuesday, May 11th at
6:30 PM at Nemetschek North America, Inc.
Up-to-date agenda & directions are available at:
http://cocoaheads.org/us/ColumbiaMaryland/index.html
___
Cocoa-dev mailing list (C
On May 11, 2010, at 11:39 AM, Steve Cronin wrote:
> If I try and build and go on the debug build I see "Run" appear in the lower
> console log in XCode and then nothing.
> I've been over the build configurations (but I admit I weary).
>
> I have cleared XCode caches and done clean build - 10.6
Oh, i fondly remember when it used to support it. But anyway, this is
off topic.. so i'll be quiet.
On 11 May 2010 12:52, Joanna Carter wrote:
> Le 11 mai 2010 à 12:36, steven Hooley a écrit :
>
>> Not really valid, given xcode doesn't support code coverage.
>
> Try Googling "Xcode code coverage"
Le 11 mai 2010 à 12:36, steven Hooley a écrit :
> Not really valid, given xcode doesn't support code coverage.
Try Googling "Xcode code coverage"
Joanna
--
Joanna Carter
Carter Consulting
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Pleas
> Fourth reason: it doesn't play well with code coverage. If the 'if' and
> its body are on the same line then knowing that that line executed does
> not tell you as much as it could if the body was on its own line.
Not really valid, given xcode doesn't support code coverage.
My Apologies for the duplication. Actually I got a message that 'the
question' needs to be get approved by moderator, so i tried to post it thru
authenticated channel(my mistake). Intention wasn't to flood/annoy the
people around & get the issue resolved sooner.
Apologies once again.
Thanks,
Sac
Is there any way to make CAScrollLayer to scroll to a point without animating?
I tried this just before i call scrollToPoint, but didn't work
[CATransaction begin];
[CATransaction setValue: (id) kCFBooleanTrue forKey:
kCATransactionDisableActions];
[CATransaction commit];
Any idea?
Thanks,
Ch
On 11 May 2010 10:39, Steve Cronin wrote:
> Folks;
>
> I need to pare back a project, remove some of the cruft.
>
> I copied the entire project directory and renamed the project and bundle
> identifier for now.
> I've removed various IB widgets as well as objC classes.
>
> I can now build without
Folks;
I need to pare back a project, remove some of the cruft.
I copied the entire project directory and renamed the project and bundle
identifier for now.
I've removed various IB widgets as well as objC classes.
I can now build without any issues in debug and release.
If I double click the re
HAHAHa it was simpler than I thought. !
I just need to place another NSTokenField wit all the tokens strings
coma-separated and then APi allows me to Drag and Drop from one to
another..
Why I didn't try that before?
Gustavo.
On May 11, 2010, at 10:39 AM, Gustavo Pizano wrote:
> Hello
Hello all, once again.
Im trying to reproduce something similar to the name formatting of Aperture
when importing images. So the idea is to allow the user to to set a format by
dragging "tokens" into a NSTokenField, to later apply the format into when
required.
So these are my theories on how
55 matches
Mail list logo