Re: Snapping windows while moving

2013-03-13 Thread Seth Willits
On Mar 12, 2013, at 1:54 PM, Steve Mills wrote: >> Pretty sure you want to subclass and override constrainFrameRect:toScreen: >> but I can't recall off the top of my head whether this is called live for >> every movement. I believe it is. > > Nope. It only seems to be called when the window is

Re: Setting the position of new windows

2013-03-13 Thread Seth Willits
On Mar 13, 2013, at 2:38 PM, Steve Mills wrote: >> I think you want to use -setShouldCascadeWindows:NO. > > That's an idea. I was hoping there was some way to say "this is the frame for > the first new window, but all others should respect it AND then go ahead and > cascade down from there," be

Re: KeyboardType for an iOS searchBar.

2013-03-13 Thread Alex Zavatone
Yeah, that's the point. I know you can set it a la the storyboard, but once it is set (once it's on the scene, the default is what is set) it's really hard to change. I have cases where the data the searchBar will be searching will all start with numbers and other cases where it will all start

Re: KeyboardType for an iOS searchBar.

2013-03-13 Thread Diederik Meijer | Ten Horses
Maybe I'm missing the point, but you can set the keyboard type in the storyboard settings for it.. Or do you need to change it programmatically for some particular reason? Op Mar 13, 2013, om 6:51 PM heeft Alex Zavatone het volgende geschreven: > Hopefully, this will be a more constructive

Re: Setting the position of new windows

2013-03-13 Thread Steve Mills
On Mar 13, 2013, at 16:29:36, Kevin Perry wrote: > I think you want to use -setShouldCascadeWindows:NO. That's an idea. I was hoping there was some way to say "this is the frame for the first new window, but all others should respect it AND then go ahead and cascade down from there," because I

Re: Setting the position of new windows

2013-03-13 Thread Seth Willits
On Mar 13, 2013, at 2:20 PM, Steve Mills wrote: > I've spent most of the day researching and coding this, but still don't have > it perfect. I need to position our new document windows so they aren't > covered by palettes that might be visible. I've done this in my window > controller's windowD

Re: Setting the position of new windows

2013-03-13 Thread Kevin Perry
I think you want to use -setShouldCascadeWindows:NO. On Mar 13, 2013, at 2:20 PM, Steve Mills wrote: > I've spent most of the day researching and coding this, but still don't have > it perfect. I need to position our new document windows so they aren't > covered by palettes that might be visib

Setting the position of new windows

2013-03-13 Thread Steve Mills
I've spent most of the day researching and coding this, but still don't have it perfect. I need to position our new document windows so they aren't covered by palettes that might be visible. I've done this in my window controller's windowDidLoad method, as was suggested somewhere. I'm able to ca

Re: UIPopoverController

2013-03-13 Thread Alex Zavatone
Do you have a sample so we can see what you mean? I've been doing a few popovers recently that are completely independent from a UISplitViewController. It can be a little challenging getting a grip on how you should set things up. Generally, I'll programmatically set the popover's viewControl

UIPopoverController

2013-03-13 Thread koko
I have seen some popovers that have a wider frame with text information. I cannot find how to specify this style and text an am asking for a pointer to the documentation for this feature. -koko ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.co

Re: Another Gnarly Objective-C Question!

2013-03-13 Thread Jean-Daniel Dupas
Le 13 mars 2013 à 18:13, John McCall a écrit : > On Mar 13, 2013, at 2:13 AM, Jean-Daniel Dupas wrote: >> Le 13 mars 2013 à 01:55, Wim Lewis a écrit : >>> On 12 Mar 2013, at 2:08 AM, Graham Cox wrote: in a + method, [self class] === self. Once you've got that, you've got it. >

KeyboardType for an iOS searchBar.

2013-03-13 Thread Alex Zavatone
Hopefully, this will be a more constructive question for the list. On iOS in Xcode 4.2, I've put a storyboard scene together with a tableView and a searchBar. The searchBar searches the tableView just fine, but my problem is how and when the storyboard defaults are applied to the searchBar and

Re: Another Gnarly Objective-C Question!

2013-03-13 Thread John McCall
On Mar 13, 2013, at 2:13 AM, Jean-Daniel Dupas wrote: > Le 13 mars 2013 à 01:55, Wim Lewis a écrit : >> On 12 Mar 2013, at 2:08 AM, Graham Cox wrote: >>> in a + method, [self class] === self. Once you've got that, you've got it. >>> >>> >>> >>> You're overthinking this. >>> >>> A class method

Re: how to implement iphoto like animation while doing drag and drop on custom listview

2013-03-13 Thread Chuck Soper
Take a look at the MultiPhotoFrame sample source: http://developer.apple.com/library/mac/#samplecode/MultiPhotoFrame/Introduc tion/Intro.html The dragged images are animated as they enter/exit views by tracking the mouse using this NSDraggingSource Protocol method: - (void)draggingSession:(NSDragg

Re: how to implement iphoto like animation while doing drag and drop on custom listview

2013-03-13 Thread Jens Alfke
On Mar 6, 2013, at 10:28 PM, Muthulingam Ammaiappan wrote: > here i am including the drag and drop code please help me how i can > implement the above mentioned animation while doing drag and drop... This is too broad and vague. What you’re asking is something for a paid consultant, not m

Re: Snapping windows while moving

2013-03-13 Thread Ken Thomases
On Mar 12, 2013, at 3:11 PM, Steve Mills wrote: > What's the best way to go about snapping windows to screens and other windows > while dragging the window? I've tried catching it in windowDidMove (only when > the mouse is down), but that isn't called for every single movement of the > mouse. I

Re: Snapping windows while moving

2013-03-13 Thread Tamas Nagy
Exactly. On Mar 13, 2013, at 1:56 PM, Steve Mills wrote: > And you're seeing that getting called for every single movement of the mouse? > > -- > Steve Mills > office: 952-818-3871 > home: 952-401-6255 > cell: 612-803-6157 > > On Mar 13, 2013, at 00:11:50, Tamas Nagy wrote: > >> - (void)wind

Re: Snapping windows while moving

2013-03-13 Thread Steve Mills
And you're seeing that getting called for every single movement of the mouse? -- Steve Mills office: 952-818-3871 home: 952-401-6255 cell: 612-803-6157 On Mar 13, 2013, at 00:11:50, Tamas Nagy wrote: > - (void)windowDidMove:(NSNotification *)notification __

Re: Objective-C Question

2013-03-13 Thread Dave
On 13 Mar 2013, at 09:24, Markus Spoettl wrote: On 3/13/13 9:36 AM, Dave wrote: On 12 Mar 2013, at 21:34, Graham Cox wrote: On 13/03/2013, at 6:53 AM, Dave wrote: If that is the case, then how do you signal to the compiler/ analyzer that you are returning a retained object? In genera

Re: Snapping windows while moving

2013-03-13 Thread Tamas Nagy
I'm using this: //http://www.cocoadev.com/index.pl?MagneticWindows - (void)windowDidMove:(NSNotification *)notification { NSEnumerator *e; NSWindow *theWindow; id edgeObject; NSArray *frames = NSApp windows] copy] autorelease] arrayByAddingObjectsFromArray:[N

how to implement iphoto like animation while doing drag and drop on custom listview

2013-03-13 Thread Muthulingam Ammaiappan
Hi Friends, i had developed the custom list view which is having NSView as a cell with variable sizes to represent the video clips in the timeline. and i had implemented the drag and drop for reordering functionality... that is working as per the expectation... but i wanted to add the animation

Moderator - Re: Objective-C Question

2013-03-13 Thread Scott Anguish
Moderator I've had a number of complaints about this thread. This thread has gone beyond all reasonable value and the behavior is not acceptable. Nobody has a requirement to read and answer questions. The questions have been answered politely by posters who have a long history on the list of h

Re: Objective-C Question

2013-03-13 Thread Dave
On 12 Mar 2013, at 21:25, Graham Cox wrote: On 13/03/2013, at 2:41 AM, Dave wrote: So, what is it? Wind up merchant or Moron? I don't think there's any need for this. If I caused offence, it was unintended (I sometimes have trouble anticipating how others might receive statements I m

Re: Objective-C Question

2013-03-13 Thread Markus Spoettl
On 3/13/13 9:36 AM, Dave wrote: On 12 Mar 2013, at 21:34, Graham Cox wrote: On 13/03/2013, at 6:53 AM, Dave wrote: If that is the case, then how do you signal to the compiler/analyzer that you are returning a retained object? In general you shouldn't return a retained object (unless it's

Re: Another Gnarly Objective-C Question!

2013-03-13 Thread Jean-Daniel Dupas
Le 13 mars 2013 à 01:55, Wim Lewis a écrit : > > On 12 Mar 2013, at 2:08 AM, Graham Cox wrote: >> in a + method, [self class] === self. Once you've got that, you've got it. >> >> >> >> You're overthinking this. >> >> A class method is just an instance method of the class object. No magic at

Re: Objective-C Question

2013-03-13 Thread Dave
On 12 Mar 2013, at 21:34, Graham Cox wrote: On 13/03/2013, at 6:53 AM, Dave wrote: If that is the case, then how do you signal to the compiler/ analyzer that you are returning a retained object? In general you shouldn't return a retained object (unless it's temporarily retained and will