Re: NSWindowController, bindings and Garbage Collection

2009-02-24 Thread Nikita Zhuk
I think I've found a workaround for this problem. It seems that the model object is accessed from the GC thread's finalize only when the keyPath to which a value is bound contains at least three components. For example, if a value in the window is bound to "model.name" property, my model is

Re: plug-in

2009-02-24 Thread XiaoGang Li
Thanks very much. It is what I need. You are so nice. 2009/2/25 Karolis Ramanauskas > if this is the file you are talking about, I had no problem downloading it. > Here I uploaded it to my site: > > http://strangeinversion.com/Paper2002.dmg.sit > > If it's something else, let me know... > __

Binding an OutlineView and/or its TableColumn to a TreeController

2009-02-24 Thread Stuart Malin
I have a data model that is bound to a TreeController. The TreeController manages an OutlineView. When I first implemented this, I bound the TableColumn backing the OutlineView to the TreeController (the TableColumn's Value property to the TreeController's arrangedObjects with a Model Key P

Re: Stop edit session with a NSTextField

2009-02-24 Thread Patrick Mau
Hi Eric I was going through your last messages on this list, because I'm working on a similar problem. Reading through the code snippets you showed here, it isn't clear to me how your controls are being created. Are you creating a subclass of NSControl and afterwards add your GUI elements

Re: Adding text to NSImage using lockFocus/unlockFocus not working

2009-02-24 Thread Graham Cox
On 25/02/2009, at 4:04 PM, ashish_tiw...@persistent.co.in wrote: Hi Graham, I tried what you have suggested still only images are shown with titles. I'm not clear what the problem is - what did you expect to see? - (NSString*) imageSubtitle { NSDictionary* attribs = [image im

Re: plug-in

2009-02-24 Thread Karolis Ramanauskas
if this is the file you are talking about, I had no problem downloading it. Here I uploaded it to my site: http://strangeinversion.com/Paper2002.dmg.sit If it's something else, let me know... ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Plea

Re: Adding text to NSImage using lockFocus/unlockFocus not working

2009-02-24 Thread ashish_tiwari
Hi Graham, I tried what you have suggested still only images are shown with titles. May be there is something wrong with my other code segments. Please have a look at my code if you can spot anything wrong. I suspect imageBrowser:itemAtIndex: should have different implementation. My AppControlle

Re: Strange NSManagedObjectContextObjectsDidChangeNotification behavior

2009-02-24 Thread Karolis Ramanauskas
OK, I managed to replicate my problem in this example project: http://strangeinversion.com/weird.zip If you are interested download it, only 44KB. It contains two core data entities: BigBagOfFruit and Fruit. 1. Run the program 2. Add a bag 3. Now add some fruit in it ;) 4. Move your mouse around

plug-in

2009-02-24 Thread XiaoGang Li
Hi, List I want to develop an application which should have a plug-in architecture, in order to give a way for third party to extend new feature without touching the source code of my main application. So, I have read the document <>, and then I also have read the artical written by Rainer

Re: do i need to create autorelease pool?

2009-02-24 Thread Peter N Lewis
I know what autorelease pools are and how they work so my question isn't about that. In my iPhone app I create a NSTimer to run at 60fps, in it I update a bunch of stuff and draw opengl. Currently I have: -(void) timerLoop { // create autorelease pool in case anything needs it

OmniObjectMeter is now free

2009-02-24 Thread Ken Case
OmniObjectMeter tracks every retain, release, and autorelease in your application, and helps you pair them up to find zombies and leaks. We've been selling it for years, but today we've decided to release it as freeware (along with OmniWeb, OmniDiskSweeper, and OmniDazzle) as we focus our

Re: Strange NSManagedObjectContextObjectsDidChangeNotification behavior

2009-02-24 Thread Dave Fernandes
On Feb 24, 2009, at 6:41 PM, Jerry Krinock wrote: But, just a warning. I originally had this grand plan which may be similar to yours -- I was going to simply observe NSManagedObjectContextObjectsDidChangeNotification, decode whatever happened as I just advised you to do, and then implem

Re: Alternative to NSWorkspace iconForFileType for icons?

2009-02-24 Thread Ken Thomases
On Feb 24, 2009, at 5:57 PM, Kevin Walzer wrote: As I read it, the iconForFileType and related methods form NSWorkspace returns an NSImage. I don't want an NSImage. I want the path to the 'icns' file that the iconForFileType NSImage is based on. What makes you think that all icons come from

do i need to create autorelease pool?

2009-02-24 Thread Memo Akten
I know what autorelease pools are and how they work so my question isn't about that. In my iPhone app I create a NSTimer to run at 60fps, in it I update a bunch of stuff and draw opengl. Currently I have: -(void) timerLoop { // create autorelease pool in case anything needs it

Re: Help with sheets, NSArrayController & NSTableView (all working together) ...

2009-02-24 Thread Ken Thomases
On Feb 24, 2009, at 4:59 PM, Mic Pringle wrote: If I hook up a button to the add selector of the NSArrayController it works as you'd expect and the new instances populate the table (using default data). I have looked for delegate methods in both NSArrayController and NSTableView to see if I can

Re: NSDate And Super Class

2009-02-24 Thread Andy Lee
On Feb 24, 2009, at 8:25 PM, Richard Good wrote: -(DateTest*)init{ [super init]; aDate =[NSDate date]; return self; } Wait a minute. I just figured out you're saying the *debugger* says datesubClass.aDate is out of scope, not the compiler as I thought. The

Re: NSDate And Super Class

2009-02-24 Thread Andy Lee
On Feb 24, 2009, at 8:25 PM, Richard Good wrote: Instance var creation DatesubClass* datesubClass = [[DatesubClass alloc]init]; At this point the datesubClass.aDate Instance variable is "out of scope" Your code works for me, verbatim, so there's something you're not showing us that's causin

Re: Moving oneself to /Applications (or ~/Applications)

2009-02-24 Thread Michael Ash
On Tue, Feb 24, 2009 at 12:34 AM, Tommy Nordgren wrote: > > On Feb 24, 2009, at 3:34 AM, Shawn Erickson wrote: > >> On Mon, Feb 23, 2009 at 6:22 PM, Tommy Nordgren >> wrote: >>> >>> The following code will test if you are running from the DMG: >>> >>> NSString * volName = @"Mother"; >>> NSString

Re: [Q] What causes an NSArrayController to know that an entity was inserted via a different window?

2009-02-24 Thread Michael Ash
On Tue, Feb 24, 2009 at 3:37 PM, Jon C. Munson II wrote: > In the method, > -(void)managedObjectContextUpdatedNotification:(NSNotification *)notif, the > notif contains userInfo.  [userInfo valueForKey:] returns an NSSet.  This > set has a -description, which returns a string formatted as a proper

Re: Metrics for a NSTextField

2009-02-24 Thread Martin Wierschin
Hi Eric, NSTextView *fieldEditor = (NSTextView*)[[self window] fieldEditor:YES forObject:self]; NSRect usedRect = [[fieldEditor layoutManager] usedRectForTextContainer:[fieldEditor textContainer]]; But the used rect returned is empty and [self stringValue] does contain a string of > 0 ch

Re: Editing a multi-line NSTextField as a single line

2009-02-24 Thread Martin Wierschin
When editing, I would like the editor which appears to edit this text on just a single line and not do any wrapping. I was able to accomplish this by doing: [[textField cell] setLineBreakMode:NSLineBreakByClipping]; before I start the edit session. However, I am curious (because I think it

NSDate And Super Class

2009-02-24 Thread Richard Good
I clearly don't understand how inheritance works for Objective C, at least not with the NSDate type. When I create a super class with an NSDate type as an instance variable and then instantiate a subclass of the superclass, I get an "out of Scope" error for the NSDate instance variable.

Core Data Relationships

2009-02-24 Thread Walker Argendeli
I apologize beforehand for the beginner-level of this question. I'm getting started with core data, and I've gone through several tutorials. Let's say I have 2 entities: an Item, and a Kind. Each Item has 1 Kind, and each Kind has multiple Items. The Item might have an attribute, Title, an

Alternative to NSWorkspace iconForFileType for icons?

2009-02-24 Thread Kevin Walzer
I'm trying to implement some command-line functionality that will retrieve the path to the icon for a specified file type, and I'm having trouble locating the correct API in Cocoa. As I read it, the iconForFileType and related methods form NSWorkspace returns an NSImage. I don't want an NSImag

Re: Responding to view controller memory warnings (was Re: Outlets / IBOutlet declarations)

2009-02-24 Thread Jonathan Hess
On Feb 20, 2009, at 1:05 AM, Alexander Spohr wrote: Am 20.02.2009 um 04:18 schrieb mmalc Crawford: On Feb 19, 2009, at 12:34 PM, mmalc Crawford wrote: See also updated: The Doc states: Y

Re: Strange NSManagedObjectContextObjectsDidChangeNotification behavior

2009-02-24 Thread Jerry Krinock
On 2009 Feb 24, at 10:25, Karolis Ramanauskas wrote: Weird behavior: After adding a few objects whenever I move a mouse over the NSTableViews (or more accurately NSScrollViews enclosing them), the NSManagedObjectContextObjectsDidChangeNotification is triggered! Actually it gets triggered b

Re: Stop edit session with a NSTextField

2009-02-24 Thread Eric Gorr
On Feb 24, 2009, at 5:47 PM, Eric Gorr wrote: On Feb 23, 2009, at 11:35 AM, Eric Gorr wrote: On Feb 23, 2009, at 11:01 AM, Patrick Mau wrote: On 23.02.2009, at 16:50, Eric Gorr wrote: I am not sure I understand this. Are you are saying is that you looked for the NSTextView being us

Help with sheets, NSArrayController & NSTableView (all working together) ...

2009-02-24 Thread Mic Pringle
Hi, I hoping someone can point me in the right direction on this as I'm really struggling to get it all to work. I have a class which holds two NSString properties, an NSImage property and an NSPredicate property. I have an array that holds instances of this class, and an NSArrayController hooke

Re: Stop edit session with a NSTextField

2009-02-24 Thread Eric Gorr
On Feb 23, 2009, at 11:35 AM, Eric Gorr wrote: On Feb 23, 2009, at 11:01 AM, Patrick Mau wrote: On 23.02.2009, at 16:50, Eric Gorr wrote: I am not sure I understand this. Are you are saying is that you looked for the NSTextView being used as the field editor for the NSTextField and th

Re: [Q] What causes an NSArrayController to know that an entity was inserted via a different window?

2009-02-24 Thread mmalc Crawford
On Feb 24, 2009, at 12:37 PM, Jon C. Munson II wrote: I do have one question, an answer to which I could not readily find in the dox. [...] So, my question is, what is the preferred/best method to access the property list to return the name of the entity that had an insertion, update, or

Re: How to center a custom NSView in a NSScrollView

2009-02-24 Thread Andrew Farmer
On 24 Feb 09, at 13:46, Meik Schuetz wrote: If the visible area (NSScrollView) is GREATER than the fixed size of the custom NSView, the custom NSView should be positioned centered in the NSScrollView, otherwise, the default behaviour of the scroll view should apply. I just want to avoid that

Re: Drawing a badge in an OutlineView column cell: but width changes on expanding

2009-02-24 Thread Stuart Malin
On Feb 24, 2009, at 11:48 AM, Corbin Dunn wrote: I've just published a blog that has screen shots of these states: http://stuartmalin.blogspot.com/2009/02/troubles-with-cocoa-custom.html Your table column's width is changing automatically (because you have setAutoresizesOutlineColumn:YES),

Re: Drawing a badge in an OutlineView column cell: but width changes on expanding

2009-02-24 Thread Corbin Dunn
I've just published a blog that has screen shots of these states: http://stuartmalin.blogspot.com/2009/02/troubles-with-cocoa- custom.html Your table column's width is changing automatically (because you have setAutoresizesOutlineColumn:YES), but your view is set to not show horizontal s

Re: How to center a custom NSView in a NSScrollView

2009-02-24 Thread Meik Schuetz
Hi Ben, thanks for you answer and my apologies for answering with that delay. I've already tried with a custom NSClipView, as explained here: http://www.bergdesign.com/missing_cocoa_docs/nsclipview.html This is the standard way to do this. After working some time on other subjects, I tried t

Re: Drawing a badge in an OutlineView column cell: but width changes on expanding

2009-02-24 Thread Stuart Malin
On Feb 24, 2009, at 10:51 AM, Corbin Dunn wrote: On Feb 24, 2009, at 12:38 PM, Stuart Malin wrote: I have been reading various blogs, tried to search CocoaBuilder, and have ben looking at the code in Apple's PhotoSearch sample, but am not clear about the best way to handle this situation:

Re: Drawing a badge in an OutlineView column cell: but width changes on expanding

2009-02-24 Thread Corbin Dunn
On Feb 24, 2009, at 12:38 PM, Stuart Malin wrote: I have been reading various blogs, tried to search CocoaBuilder, and have ben looking at the code in Apple's PhotoSearch sample, but am not clear about the best way to handle this situation: I have an NSOutlineView for which I have set a cu

RE: [Q] What causes an NSArrayController to know that an entity was inserted via a different window?

2009-02-24 Thread Jon C. Munson II
> > > > [[NSNotificationCenter defaultCenter] addObserver:self > > selector:@selector(managedObjectContextUpdatedNotification:) > > name:NSManagedObjectContextObjectsDidChangeNotification > > object:[self managedObjectContext]]; > > [Jon C. Munson II] This is the method I ended up impl

Drawing a badge in an OutlineView column cell: but width changes on expanding

2009-02-24 Thread Stuart Malin
I have been reading various blogs, tried to search CocoaBuilder, and have ben looking at the code in Apple's PhotoSearch sample, but am not clear about the best way to handle this situation: I have an NSOutlineView for which I have set a custom cell (sub class of NSTextViewCell) in order to

NSWindowController, bindings and Garbage Collection

2009-02-24 Thread Nikita Zhuk
I'm running a Cocoa application with Garbage Collection enabled, linking against 10.5 SDK. My application has a NSWindowController subclass which instantiates a window from a nib file (- [NSWindowController initWithWindowNibName:]) and acts as the File's owner of that nib. The window in the

[ANN] BWToolkit 1.1 IB Plugin: Codeless Split Views

2009-02-24 Thread Brandon Walkin
Hi all, I've just released a new version of my IB plugin with a split view that requires no programming for common split view functionality. Right within Interface Builder, you can specify which subviews should resize with the split view, set min and max sizes on subviews, mark a subview

Metrics for a NSTextField

2009-02-24 Thread Eric Gorr
I am attempting to get some measurements for the text being displayed in a NSTextField and am running into trouble. It looks like all of the measurement methods are related to NSTextView. I tried asking for a NSTextView for my NSTextField by doing the following: NSTextView *fieldEditor =

Re: [Q] What causes an NSArrayController to know that an entity was inserted via a different window?

2009-02-24 Thread Jacob Evans
On Feb 24, 2009, at 8:48 AM, Jon C. Munson II wrote: This is why Hillegass' book was extremely useful to me as I could see the concepts put into practice. Jon, like I.S. mentioned, it seems you need to get a better grasp on KVC/KVO concepts. Perhaps a re-read of Chapter 7 of Hillegass' "Coc

Strange NSManagedObjectContextObjectsDidChangeNotification behavior

2009-02-24 Thread Karolis Ramanauskas
Good day, everyone, I have a core data document based app. There are two windows for each document. One is the "Inspector" window with mostly NSTableViews representing objects and their relationships. Another window consists of a custom view which draws graphical representation of the objects. In

How can I authenticate using a client certificate with NSURLConnection?

2009-02-24 Thread Richard Frith-Macdonald
I need to connect to a a service where the company running the service uses certificate based authentication over SSL. They have given me a certificate to use when sending requests to their server, but I can't find anything in the NSURLConnection or NSURLRequest documentation which tells me

Re: Getting CGImage out of NSBitmapImageRep in 10.4

2009-02-24 Thread David Alter
I removed the use of the NSBitmapImageRep as you suggested and it is working much better now. Thanks for the help -dave On Tue, Feb 24, 2009 at 10:10 AM, douglas welton < douglas_wel...@earthlink.net> wrote: > David, > > perhaps I'm missing something simple... Is there some reason that you are

IMKit window not reappearing

2009-02-24 Thread Daniel Child
I have a background app (an input method) that has a window associated with MainMenu.nib. The first time the app launches when I select it from the input methods list, the window launches. But if I close the window, it seems there is no way to get it back. My current settings in IB are: -

Re: Getting CGImage out of NSBitmapImageRep in 10.4

2009-02-24 Thread douglas welton
David, perhaps I'm missing something simple... Is there some reason that you are using NSBitmapImageRep to handle the jpg file? why not use CGImageSource to read your jpg file, create a CGImage from the CGImageSource, draw the new CGImage into a CGBitmapContext, do your additional drawin

Re: Getting CGImage out of NSBitmapImageRep in 10.4

2009-02-24 Thread David Alter
On Mon, Feb 23, 2009 at 7:42 PM, Michael Ash wrote: > On Mon, Feb 23, 2009 at 4:51 PM, David Alter > wrote: > > I need to get a CGImage out of a NSBitmapImageRep. This needs to work in > > 10.4. > > I tried doing this by setting the bitmap as the graphics context and then > > creating the image

Re: [Q] What causes an NSArrayController to know that an entity was inserted via a different window?

2009-02-24 Thread I. Savant
On Tue, Feb 24, 2009 at 10:48 AM, Jon C. Munson II wrote: > [Jon C. Munson II] With regards to the dox, and I'm not being grumpy or > "short" when saying this, if, situationally speaking, these things were > *explicitly* explained (and not just "conceptually" explained), I'd probably > have a bet

Re: Disabled, auto-disappearing placeholder in search field like Safari, Console.app

2009-02-24 Thread Jerry Krinock
On 2009 Feb 24, at 03:57, Andrew Farmer wrote: This is placeholder text. You can set it with the "placeholder" field on text input fields, or programatically using the setPlaceholderString on a NSTextFieldCell. Thank you, Andrew. Yes, that gives the behavior that I want. And it takes les

Re: simple memory management question

2009-02-24 Thread Matt Neuburg
On Tue, 24 Feb 2009 07:37:43 -0600, James Cicenia said: >Hello - > >I have the following snippet: > >- (void)stateAction:(id)sender{ > StatePickViewController *spvc = [[StatePickViewController >alloc]initWithNibName:@"StatePicker" bundle:nil]; > [spvc setMyParentController:self]; > [spvc setDialog

Re: simple memory management question

2009-02-24 Thread Joar Wingfors
On Feb 24, 2009, at 5:37 AM, James Cicenia wrote: Hello - I have the following snippet: - (void)stateAction:(id)sender{ StatePickViewController *spvc = [[StatePickViewController alloc] initWithNibName:@"StatePicker" bundle:nil]; [spvc setMyParentController:self]; [spvc setD

Re: [Q] What causes an NSArrayController to know that an entity was inserted via a different window?

2009-02-24 Thread Matt Neuburg
On Tue, 24 Feb 2009 09:16:18 -0500, "Jon C. Munson II" said: >The user adds records on one screen. On a different screen, there is an >NSArrayController to which an NSTableView is hooked. When the records are >added on the first screen, the tableview (on the other screen) updates >itself automag

Re: [Q] What causes an NSArrayController to know that an entity was inserted via a different window?

2009-02-24 Thread mmalc Crawford
On Feb 24, 2009, at 7:48 AM, Jon C. Munson II wrote: I'm NOT one of those people who learn well from reading technical documentation, It is truly obnoxious, then, and unhelpful to others, to continue to make assertions that various issues are not covered in the documentation when they v

RE: [Q] What causes an NSArrayController to know that an entity was inserted via a different window?

2009-02-24 Thread Jon C. Munson II
> > > So, my question is, how is the array controller receiving notification > of > > the newly added records so that I can, hopefully, do the same with my > custom > > view? > > It's done by having the array controller observe (via KVO, using the > Bindings mechanism) the managed object contex

Editing a multi-line NSTextField as a single line

2009-02-24 Thread Eric Gorr
I start an edit session of a NSTextField by doing the following: [textField selectText:nil]; NSTextView *currentEditor = (NSTextView*)[textField currentEditor]; NSPoint windowLocation = [theEvent locationInWindow]; NSPoint screenLocation = [[self window] con

Re: Capture highlighted menu name

2009-02-24 Thread I. Savant
On Tue, Feb 24, 2009 at 9:50 AM, Graham Cox wrote: > There is virtually no API for getting at the menu bar layout metrics, even > in Carbon (it used to be possible to ferret out some of the info, but I > think much of that stuff - MBDFs and so on - has long gone). I think given this: >> As I

Re: [Q] What causes an NSArrayController to know that an entity was inserted via a different window?

2009-02-24 Thread I. Savant
On Tue, Feb 24, 2009 at 9:16 AM, Jon C. Munson II wrote: > The user adds records on one screen. On a different screen, there is an > NSArrayController to which an NSTableView is hooked. When the records are > added on the first screen, the tableview (on the other screen) updates > itself automa

Re: Capture highlighted menu name

2009-02-24 Thread Graham Cox
On 25/02/2009, at 1:15 AM, Cauvery K wrote: Hi There, Any updates on this guys? Regards, Cauvery Hi There, [...] I'm going to ignore the approach you mentioned because it sounds incredibly painful for what could very well turn out to be a very simple thing. The problem is that it's hard

Re: Changing the height of a NSTextField for editing

2009-02-24 Thread Eric Gorr
Ah, thank you. I think I knew that bounds and frame had different uses...hopefully this time that information will stick. And, yes, it worked. On Feb 23, 2009, at 5:14 PM, Nate Weaver wrote: Try setting the frame of the field/field editor instead (doing unit conversions if necessary). When

Re: Capture highlighted menu name

2009-02-24 Thread I. Savant
On Tue, Feb 24, 2009 at 9:15 AM, Cauvery K wrote: > Any updates on this guys? It doesn't appear so, but it's likely because your clarification answer still didn't clarify things much. See below. On Thu, Feb 19, 2009 at 12:58 AM, Cauvery K wrote: > We are developing a screen capture applica

[Q] What causes an NSArrayController to know that an entity was inserted via a different window?

2009-02-24 Thread Jon C. Munson II
Namaste! I'm not sure what to actually title this nor what search terms to use as preliminary shots-in-the-dark didn't turn up much with the exception of one possibility. The situation is this: The user adds records on one screen. On a different screen, there is an NSArrayController to which an

Re: Capture highlighted menu name

2009-02-24 Thread Cauvery K
Hi There, Any updates on this guys? Regards, Cauvery Hi There, [...] I'm going to ignore the approach you mentioned because it sounds incredibly painful for what could very well turn out to be a very simple thing. The problem is that it's hard to tell exactly what you're trying to do beca

Re: View with Subviews + Drawing on top of everything

2009-02-24 Thread rajesh
sorry I got confused over the term " lightweight drawing objects " :) . I just started with the CA programming guide , its amazing !!! Thanks Graham. ~Rajesh On Feb 24, 2009, at 1:57 PM, Graham Cox wrote: On 24/02/2009, at 11:52 PM, rajesh wrote: Yes indeed , but I chose such approach is

simple memory management question

2009-02-24 Thread James Cicenia
Hello - I have the following snippet: - (void)stateAction:(id)sender{ StatePickViewController *spvc = [[StatePickViewController alloc]initWithNibName:@"StatePicker" bundle:nil]; [spvc setMyParentController:self]; [spvc setDialogView:fruitTypeView]; [spvc viewWillAppea

Re: Simple way to traverse 2D array?

2009-02-24 Thread Peter N Lewis
At 18:36 -0600 23/2/09, Ashley Perrien wrote: This is relatively easy if I know how many arrays I'm working with (3 in this case) to simply nest the for loops but if I don't know how many arrays the primary array has, I can't think of a way to nest the loops if I don't know how deeply to nest t

Re: View with Subviews + Drawing on top of everything

2009-02-24 Thread Graham Cox
On 24/02/2009, at 11:52 PM, rajesh wrote: Yes indeed , but I chose such approach is that these subViews have lot of stuff to draw within itself That's irrelevant - you have to do all that drawing, whether it's inside an NSView or not. and not to mention the animations with which they

Re: Moving oneself to /Applications (or ~/Applications)

2009-02-24 Thread Rainer Brockerhoff
At 03:06 -0800 24/02/09, cocoa-dev-requ...@lists.apple.com wrote: >From: Tommy Nordgren >References: <67c1da73-c3cb-4854-9b46-70c0365d5...@mac.com> > <57b2a86d-b87c-486f-8d2e-6291d3f29...@comhem.se> > <4b898f01-2234-4d19-8b63-25f4cd275...@webis.net> > <15c43c09-ae0d-455e-ae10-5bc

Re: View with Subviews + Drawing on top of everything

2009-02-24 Thread rajesh
Yes indeed , but I chose such approach is that these subViews have lot of stuff to draw within itself and not to mention the animations with which they appear,disappear,move etc., is pretty much achievable. I don't know if the said things can be done the way you suggested then I better start

Re: View with Subviews + Drawing on top of everything

2009-02-24 Thread Graham Cox
On 24/02/2009, at 11:15 PM, rajesh wrote: Need help with drawing (I have done some basic drawings in Cocoa) Problem: I have a View which in-turn has subviews(elements) e.g., chocolates ,balloons,roses , etc., These elements have complex drawings and are subclasses of NSView. I place these

View with Subviews + Drawing on top of everything

2009-02-24 Thread rajesh
Hi All, Sorry for the bad subject line, Need help with drawing (I have done some basic drawings in Cocoa) Problem: I have a View which in-turn has subviews(elements) e.g., chocolates ,balloons,roses , etc., These elements have complex drawings and are subclasses of NSView. I place these el

Re: iTunes like transition?

2009-02-24 Thread Luca Pazzerello
Thanks!I solved with a simple subclass of NSTextField, in wich my beat (an NSTimer) updates the drawing coordinates of the text. Regards, --Luca C. 2009/2/23 Kyle Sluder > On Mon, Feb 23, 2009 at 2:18 PM, Luca Pazzerello > wrote: > > Maybe this screenshot clarifies about which transition i am

Re: Disabled, auto-disappearing placeholder in search field like Safari, Console.app

2009-02-24 Thread Andrew Farmer
On 23 Feb 09, at 20:52, Jerry Krinock wrote: When I bind to an NSSearchField with option key=value pair NSNullPlaceholderBindingOption="Search names", indeed "Search names" is displayed in the search field whenever the bound keyPath is nil. But it appears as normal black text which the user

Re: Adding text to NSImage using lockFocus/unlockFocus not working

2009-02-24 Thread Graham Cox
On 24/02/2009, at 9:50 PM, Ashish Tiwari wrote: I am trying to get finder icon view like behavior in my application. Using IKImageBrowserView I am able to show icons for contents of a directory but I also need file/directory name below those icons. For this I am trying to insert NString

how to modify 'PictureSharing' example?

2009-02-24 Thread Carlo Gulliani
I made app like 'PictureSharing'. In this example data changing just after i select my service in list (i should press on server line in Picture sharing browser to get new picture), how can i use NSNotificationCenter to catch event while my data is changed? In general i wanna change picture in P

Adding text to NSImage using lockFocus/unlockFocus not working

2009-02-24 Thread Ashish Tiwari
Hi All, I am trying to get finder icon view like behavior in my application. Using IKImageBrowserView I am able to show icons for contents of a directory but I also need file/directory name below those icons. For this I am trying to insert NString into NSImage but text is now showing up in IKI