Re: Disabling Exposé in SystemUIMode

2009-08-07 Thread Benjamin Dobson
On 7 Aug 2009, at 06:46:25, Eric Schlegel wrote: On Aug 6, 2009, at 5:13 PM, Pierce Freeman wrote: Hi Eric: I'll make sure to file a big about that - hopefully it can get resolved before shipment. But, when using the key, it should stop Exposé, shouldn't it? I have also tested this a

Re: How to change focus ring color?

2009-08-02 Thread Benjamin Dobson
NSBezierPath's -setClip. http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSBezierPath_Class/Reference/Reference.html#/ /apple_ref/occ/instm/NSBezierPath/setClip On 2 Aug 2009, at 11:46:27, Squ Aire wrote: Nonetheless, can you (or someone else in here) tell us

Re: Yet another memory management question

2009-07-05 Thread Benjamin Dobson
On 5 Jul 2009, at 05:10:12, mmalc Crawford wrote: If you manipulate an instance variable anywhere other than in an initialiser or a dealloc method, you should use a suitable accessor method. Does this apply to instance variables that are not objects too? ___

Re: Movable Document Modal Dialogs

2009-07-03 Thread Benjamin Dobson
On 3 Jul 2009, at 19:23:04, Development wrote: This is more for the user interface experts, than the cocoa programming experts... What is the suggested user interface when creating modal dialogs for documents that have be movable? For our application (think of it as a drawing program), t

Re: How to customize the context menu appearances.

2009-06-22 Thread Benjamin Dobson
On 22 Jun 2009, at 21:37:52, 慧 松本 wrote: Thank you for the IB Plugin BWToolkit. http://brandonwalkin.com/bwtoolkit/ I can implement transparent popup buttons in my HUD windows. But the menu, that appears from a transparent popup button, has still the same appearance as the normal menu, ie.

Re: Card Game (like Spider-Solitaire) in Cocoa -- Conceptual ideas needed

2009-06-14 Thread Benjamin Dobson
On 13 Jun 2009, at 11:20:36, Florian Witteler wrote: Hi Kyril, Nick, Brian and Erik! I'd really like to thank you all for your comments. You gave me a good starting point to move on! I'll work through these ressources and get back, if I have further questions. Have a nice weekend. - Flor

Re: Making an NSButton appear selected.

2009-06-05 Thread Benjamin Dobson
On 5 Jun 2009, at 12:41:10, Shraddha Karwan wrote: I have a series of buttons of type NSButton. When a particular button is selected, I want to make it appear gray as in this button is selected. When another button is selected, I need to change the color of the previously selected button fr

Re: Touchscreens and control scaling

2009-06-04 Thread Benjamin Dobson
On 4 Jun 2009, at 21:47:47, Ricky Sharp wrote: For a kiosk, you should definitely consider your own UI. That's what I have done. You'll also find that if your app will be exclusively used in touch environments, some of the Aqua controls may not fit well at all (since they were designed p

Re: Help on adding volume control

2009-06-03 Thread Benjamin Dobson
On 3 Jun 2009, at 19:57:53, I. Savant wrote: On Wed, Jun 3, 2009 at 2:49 PM, Benjamin Dobson wrote: It may be worth noting that these do exist in the Apple Symbols font, although relying on that could be very shaky ground. Hmm ... I can't seem to find the speaker symbols anywhere in

Re: Help on adding volume control

2009-06-03 Thread Benjamin Dobson
On 3 Jun 2009, at 16:23:20, I. Savant wrote: As for the overall approach, I don't know of a "mic photo", but in the Mac OS, icons to either side of a slider are usually a small speaker with no sound waves to the left and one with several (I think usually three or so) sound waves to the right. T

Re: Several Questions

2009-06-01 Thread Benjamin Dobson
On 1 Jun 2009, at 12:58:17, Jelle De Laender wrote: why should your app stops responding? Do you want to detect time-outs (network-times, IO-timeouts, ...) or will your app be crap and full with bugs? There will always be unforeseen circumstances. Better safe than sorry, right? Just be

Re: How to disable application menu bar item

2009-05-21 Thread Benjamin Dobson
On 21 May 2009, at 13:36:34, Ashish Tiwari wrote: Hi All, I want to conditionally disable some items of my application menu bar for example "Format", "Insert" etc, so that user can not click on it and can not see its submenu. When i do following: [[[NSApp mainMenu] itemWithTitle:@"Insert"

Re: how to enable by-default the dock menu "open at login" option

2009-05-12 Thread Benjamin Dobson
On 12 May 2009, at 15:26:10, Parimal Das wrote: Hello I want that my app should have the dock menu "open at login" item selected by default. I have seen it in few apps. Please tell me what to use for that. Adv Thanx Don't. I'm all for adding "open at login" as a preference inside you're

Re: How to make NSSplitView not dragable

2009-04-28 Thread Benjamin Dobson
On 28 Apr 2009, at 17:44:38, Ashish Tiwari wrote: Hi All, I have a horizontal NSSplitView, I want the splitter bar should remain in a fixed postion and user should not be able to change size of upper subview or lower subview by dragging it. Note: Split bar should be visible but not be dra

Strange NSShadow behaviour in overlapping NSVie ws—bug?

2009-04-26 Thread Benjamin Dobson
Hello all, I've subclassed NSButtonCell to provide custom drawing. This includes an NSShadow. All drawing is done inside the cell's bounds. As I want this to work easily in IB with minimum work, I've based it on the "Push" button style. This means the clickable button area is considerably

Re: Editable PopUpButtons

2009-04-26 Thread Benjamin Dobson
On 26 Apr 2009, at 04:18:56, Arun wrote: Hi Is the any control which is similar to NSPopUpButtonCell but still editable? Thanks Arun KA NSComboBox. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or mo

Re: Conversation-style controls?

2009-04-25 Thread Benjamin Dobson
On 24 Apr 2009, at 15:44:51, Christopher Gillis wrote: How would I go about attaining a conversation-style layout. Tweetie ( http://www.atebits.com/tweetie-mac/ ) is a perfect example of the layout I would like to achieve. I can get something similar by subclassing NSTableView but it seems t

Re: How to make app login window to look like OS X user login window ?

2009-04-22 Thread Benjamin Dobson
On 22 Apr 2009, at 17:06:10, Chris Williams wrote: So you'd rather the user sits there wondering if this huge, highly complex application (like any Office or Adobe app) that takes 10-15 seconds to load, even longer on a slow laptop, is actually starting up, or should I click it again, or

Re: How to make app login window to look like OS X user login window ?

2009-04-21 Thread Benjamin Dobson
On 22 Apr 2009, at 06:32:55, Mario Kušnjer wrote: Greetings everyone ! So the question is how to make a window that doesn't have a title bar and borders ? Actually I would like it to be just like user login window of OS X. This could also go for a so called "Splash Screen" on app launch.

Re: Exit an Application

2009-04-14 Thread Benjamin Dobson
On 13 Apr 2009, at 22:52:15, Uli Kusterer wrote: or the slightly shorter and a thoretically a tad more dangerous similar call with NSApp in it are really the only option. (Well, theoretically you could send yourself a "quit" Apple Event, but that's only of academical interest...) Why is

Re: Floating window on top of everything

2009-04-09 Thread Benjamin Dobson
On 9 Apr 2009, at 20:02:34, Matt Neuburg wrote: Oh, I thought "floats above another application" meant "floats above another *particular* application". After all, if that isn't what's meant, then why didn't he start by asking for a HUD window that just floats above all applications always?

Re: Floating window on top of everything

2009-04-09 Thread Benjamin Dobson
On 9 Apr 2009, at 16:49:48, Matt Neuburg wrote: On or about 4/8/09 11:25 PM, thus spake "Andrew Farmer" >: On 08 Apr 09, at 08:03, Matt Neuburg wrote: On Tue, 7 Apr 2009 12:37:05 -0400, Walker Argendeli said: I am making a simple application that consists of a small HUD window that needs

Transparent NSButtonCell highlight

2009-04-08 Thread Benjamin Dobson
Hi, I'm building a transparent interface, and I'm stuck at NSButtonCell. An NSGradient with transparency is drawn in the cell. It overrides - isOpaque to return NO. The gradient is drawn nicely from drawWithFrame:, but if it's called from -highlight:withFrame:inView:, the gradient is drawn

Re: finder file size

2009-04-08 Thread Benjamin Dobson
On 8 Apr 2009, at 19:40:35, Sean McBride wrote: On 4/7/09 9:04 PM, Jo Phils said: As for not using Carbon I suppose there's no reason I can't use it. I was just thinking with Finder going away from Carbon and since I'm just learning Cocoa I was trying to avoid it if I could. But if it's

Re: circular NSSlider not endless

2009-04-08 Thread Benjamin Dobson
On 8 Apr 2009, at 13:48:43, Tilo Villwock wrote: Does anyone know, whether there is a way to make a circular NSSlider not endless, so that it stops at a certain value? Thanks Tilo That depends what you mean. If you mean it should act like a physical volume control, where the slider only

Re: iPhone Tab bar Question

2009-03-24 Thread Benjamin Dobson
On 24 Mar 2009, at 01:02:27, Jason Todd Slack-Moehrle wrote: Hi All, I created a standard iPhone application using the built-in wizard and it builds and runs fine. My question is how do I modify the tab bar at the bottom to not make space for an image. I dont want to use images and I don

Re: Simulating (or obtaining) menubar effect in a Cell

2009-03-24 Thread Benjamin Dobson
On 24 Mar 2009, at 01:46:13, Tobias Zimmerman wrote: Hello all- I am working with an NSMatrix, and I would like one cell of the Matrix to act just like an item in the menu bar. Specifically: Single clicking should open a menu; holding the mouse down should open the menu and then close i

Re: De-Mystifying NSCell

2009-03-24 Thread Benjamin Dobson
Thanks for this, I've been doing a lot of NSCell work recently. I'll definitely be watching it when I get home! ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the mo

Re: Custom windows -- just curious

2009-03-23 Thread Benjamin Dobson
On 23 Mar 2009, at 17:13:22, Тимофей Даньшин wrote: Hi. Does anybody know how to make totally custom windows, such as the control window in DVD Player or the minimized iTunes window? As i said in the subject -- I am just curious. Timofey. Override -initWithContentRect:styleMask:backing:de

Re: how to say app using only my plug-in?

2009-03-22 Thread Benjamin Dobson
On 22 Mar 2009, at 18:34:46, Carlo Gulliani wrote: I finished project, which use Flash player plug-in. But if user has same plug-in (but old version), my application load his. I wanna that app use just my plug-ins from my folder (myapp.app/Contents/ PlugIns/Flash Player.plugin) and doesn't

Re: Customization of NSSavePanel

2009-03-20 Thread Benjamin Dobson
On 20 Mar 2009, at 13:39:42, Sourabh Sahu wrote: Hi Everyone, I am trying to customize NSSavePanel using method prepareSavePanel,but I want NSSavePanel browsing feature to be disabled that is user cannot change the directory ,apart from it I also want NSSavePanel to show file of any parti

Re: Is there an icon to represent "select all"?

2009-03-20 Thread Benjamin Dobson
On 20 Mar 2009, at 18:31:42, David wrote: Is there a standard icon to represent "select all"? I believe not. There generally isn't any icon for it at all. Is there a better website where I should ask this? Not that I know of. :-) ___ Cocoa-dev

Re: Custom NSManagedObject Class Initializer

2009-03-15 Thread Benjamin Dobson
On 15 Mar 2009, at 04:03:19, Kyle Sluder wrote: if(self = [super initWithEntity:desc insertIntoManagedObjectContext:ctx]) { This line will generate warnings, which is not helpful in this case. This will not, and is the default for built-in subclasses. As such, I prefer it: self = [s

Re: Background Process?

2009-03-10 Thread Benjamin Dobson
On 10 Mar 2009, at 23:11:03, Pierce Freeman wrote: Hi everyone: I am wondering how to create a background process that will only run when the user is logged in and will run every certain minutes (a bit like Time Machine). I am also not sure in which way the action in the background proc

Re: Making a border-less window is not working

2009-03-08 Thread Benjamin Dobson
On 8 Mar 2009, at 15:40:18, Gustavo Pizano wrote: Hello, I have created a custom NSWindow class, there I implemented the method - (id)initWithContentRect:(NSRect)contentRect styleMask: (NSUInteger)windowStyle backing:(NSBackingStoreType)bufferingType defer:(BOOL)deferCreation screen:(NSScre

Re: Setting 'is package' bit when building a plug-in bundle?

2009-03-07 Thread Benjamin Dobson
On 7 Mar 2009, at 03:31:44, Graham Cox wrote: I'm implementing a plug-in scheme based on Rainer Brockerhoff's design at http://cocoadevcentral.com/articles/68.php So far it's working fine, but I decided I wanted to use a particular extension for my plug-in files. When I do that, the bu

Re: Saving a plist file from a thumbdrive

2009-03-04 Thread Benjamin Dobson
On 4 Mar 2009, at 20:17:21, Francois Cournoyer wrote: Hi, We have an installer app that runs from the root folder of a thumbdrive like device, The installer is ran from a subfolder or from subfolder on a hard disk works correctly. The problem is when it runs from the root of the thumbdrive

Re: where to store this kind of data

2009-03-03 Thread Benjamin Dobson
On 3 Mar 2009, at 22:13:08, Stefan Groschupf wrote: Hi All, I'm very new to cocoa - though have other oo language experience. My goal is write an application that synchronize some servers with a local os x app. When my app starts it basically should list all available server connections if

NSCell highlighting for keyboard equivalents

2009-03-03 Thread Benjamin Dobson
Hello, I have a subclass of NSButtonCell. It overrides -drawWithFrame:inView: and -highlight:withFrame:inView: to produce a customised look. However, highlight:withFrame:inView: is not getting called from the keyboard equivalent. I'm sure I'll look pretty stupid for asking this, but I cou

Re: How to create a simple pop-up-menu

2009-03-02 Thread Benjamin Dobson
On 2 Mar 2009, at 16:42:00, Ulai Beekam wrote: Hi, How do I create a Safari-style pop-up menu? I'm talking about the pop-up menu (be sure to correct me if this thing is not even called a pop-up menu) that appears when you click the ">>" button to show off-screen tabs. Just open Safari

Changing the inactive selection highlight colour

2009-03-01 Thread Benjamin Dobson
Hi, In my app, I have HUD-style windows and controls. The field editor for the window has been customised to show a more appropriate selection colour. However, when the window is inactive, the selection is highlighted in the standard light grey. How can I change this colour to something m

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

2009-02-22 Thread Benjamin Dobson
On 23 Feb 2009, at 05:47:22, Adam Leonard wrote: (If you want another opinion, I don't think what you are doing is a bad idea. John Gruber made a point in a recent article (http://daringfireball.net/2009/02/untitled_document_syndrome ) that most users don't want to mess with the file system a

Re: Application Activation

2009-02-22 Thread Benjamin Dobson
On 22 Feb 2009, at 10:56:45, Gerriet M. Denkmann wrote: There are two ways an app can become active: 1. by explicit user action (clicking in Finder, clicking in Dock, using Command-Tab) or: 2. without user action (frontmost app is closed or hidden, so the next app becomes active). Comman

Re: Can anyone suggest a way to do this?

2009-02-14 Thread Benjamin Dobson
On 14 Feb 2009, at 03:52:11, Graham Cox wrote: This may be more appropriate for the Quartz mailing list, which I'm not on, so I'll ask here first... When stroking a path, I can clip to the inside or the outside of the path to get a stroke inside or outside of the path's edge. But if the

Re: Transparent Image

2009-02-12 Thread Benjamin Dobson
On 12 Feb 2009, at 04:37:35, Michael Ash wrote: On Wed, Feb 11, 2009 at 3:41 PM, Christian Graus wrote: Please file a bug and request this functionality. OK - that would not have occurred to me at all. That works in the Mac world ? Awesome !! I've found plenty of Microsoft bugs, and I was

Re: [Q] Control over the "You cannot use the application ... with this version of Mac OS X" string

2009-02-04 Thread Benjamin Dobson
On 4 Feb 2009, at 22:01:06, Eric Gorr wrote: On Feb 4, 2009, at 1:44 PM, Sean McBride wrote: On 2/4/09 10:24 AM, Joar Wingfors said: When launching an application which requires a newer version of the OS, the OS displays the string: "You cannot use the application "XXX" with this version

Re: Stroking a CATextLayer

2009-02-04 Thread Benjamin Dobson
Thank you. I now have it working nicely. On 3 Feb 2009, at 18:09:37, David Duncan wrote: On Feb 3, 2009, at 7:43 AM, Benjamin Dobson wrote: On 3 Feb 2009, at 15:05:51, glenn andreas wrote: On Feb 3, 2009, at 8:50 AM, Benjamin Dobson wrote: Has anyone managed this, short of creating a

Re: processName and Bundle Name -- the same?

2009-02-03 Thread Benjamin Dobson
On 3 Feb 2009, at 21:12:14, Stuart Malin wrote: In order to locate certain application-specific directories, I use the application's name (say, for example / Library/ Presently I am using [NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleName"] to get the application name. (in my

Re: Stroking a CATextLayer

2009-02-03 Thread Benjamin Dobson
On 3 Feb 2009, at 15:05:51, glenn andreas wrote: On Feb 3, 2009, at 8:50 AM, Benjamin Dobson wrote: Has anyone managed this, short of creating a separate layer for the stroke? The Google machine doesn't seem to provide any answers. Since CATextLayer uses an attributed string, why

Stroking a CATextLayer

2009-02-03 Thread Benjamin Dobson
Has anyone managed this, short of creating a separate layer for the stroke? The Google machine doesn't seem to provide any answers. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the

Re: Drawing Invalidation Question

2009-02-01 Thread Benjamin Dobson
On 1 Feb 2009, at 05:41:49, Seth Willits wrote: When inside of -[NSView drawRect:], what's the difference between - (void)drawRect:(NSRect)rect; { if ([self needsToDrawRect:someRect]) } ... and ... - (void)drawRect:(NSRect)rect; { if (NSIntersectsRect(rect, someRect

Re: How to draw text with fade out effect?

2009-02-01 Thread Benjamin Dobson
On 29 Jan 2009, at 06:32:45, Kyle Sluder wrote: Perhaps the better solution is to draw the text as normal and then re-draw the background with the appropriate alpha on top. Am I missing something or could you use an NSGradient object to do this? ___

Hillegass: Animation, NSProgressIndicator and Bindings

2009-01-27 Thread Benjamin Dobson
Hi, I'm in chapter 24 of Hillegass's book, which contains an NSProgressIndicator bound to AppController.count (AppController being an NSObject subclass). One thing is really bugging me: when AppController.count is updates, the progress bar immediately jumps to the new position, instead of

Re: NSCaledarDate's deprecation

2009-01-22 Thread Benjamin Dobson
On 22 Jan 2009, at 22:52:56, kvic...@pobox.com wrote: in anticipation of the deprecation of NSCaledarDate, i am in the process of converting my app to use NSDate and friends. and while the process is mostly straightforward and not all that difficult, it is tedious. when i think i'm done,

Re: Interaction with web javascript & cocoa

2009-01-20 Thread Benjamin Dobson
On 20 Jan 2009, at 22:06:52, Alex Mills wrote: Hey, I have built a Javascript WYSIWYG editor. I want to build a WebKit based cocoa app with buttons that can call a function from the editor loaded in webkit. For example I want to have a button within the Cocoa interface that calls the Jav

Re: Poll Processes For Menu Bar Items?

2009-01-15 Thread Benjamin Dobson
On 15 Jan 2009, at 18:44:22, Chunk 1978 wrote: i'm trying to poll the active processes for menu bar items (Volume, Date & Time, etc.) but the NSDictionary key @"NSApplicationBundleIdentifier" doesn't seem to recognize the bundle identifier for them. Each one of them is a plugin for SystemUISe

Re: Highlighting an NSPopUpButtonCell subclass

2009-01-12 Thread Benjamin Dobson
On 11 Jan 2009, at 11:45:49, Benjamin Dobson wrote: I have an NSPopUpButtonCell subclass for custom drawing. Quite simply, how can do custom highlighting before the popup menu appears? - highlight:withFrame:inView: is called before the menu appears, but no drawing is done. The same code

Re: Disabled button looks like enabled

2009-01-12 Thread Benjamin Dobson
On 12 Jan 2009, at 20:56:56, Donnie Lee wrote: Now that explains it. Take a look at NSSegmentedControl. Looks nice, but how to align an image in segment, how to implement imageDimsWhenDisabled and how to choose button style (I need a pop-up button there, I found how to add a menu to segment b

Re: Disabled button looks like enabled

2009-01-12 Thread Benjamin Dobson
On 12 Jan 2009, at 19:39:29, Donnie Lee wrote: I see there is unavoidable problem with my "fake" button and Accessibility tools which may happens. I planned to use it to emulate gradient bottom bar (under Source List control), looks like in Mail.app. I created three buttons, two gradient action

Re: Disabled button looks like enabled

2009-01-12 Thread Benjamin Dobson
On 12 Jan 2009, at 18:57:54, Donnie Lee wrote: The main problem that people think that I try something stupid. Instead of technical discussion they try to teach me what should I do and how should I do it. Like a religious zombies, seriously. Donnie. If someone was trying to build a car with

Re: Disabled button looks like enabled

2009-01-12 Thread Benjamin Dobson
On 12 Jan 2009, at 18:54:19, Donnie Lee wrote: You read too much Tolkien. It's hard to me to trace which messages sent to list and which is not because crazy lists.apple.com software didn't provide "reply-to" field and I enter "to" address manually. PS: Now only "reply to all" button. Ever h

Re: Mac Pro memory sizes

2009-01-11 Thread Benjamin Dobson
On 11 Jan 2009, at 22:04:09, Kenneth Bruno II wrote: In actuality a gibibyte (GiB) is 2^20 bytes but it's not used in all the places it should be used. It's rarely used at all, for several reasons. One is that it makes little sense to your average consumer, but the more amusing reason th

Highlighting an NSPopUpButtonCell subclass

2009-01-11 Thread Benjamin Dobson
I have an NSPopUpButtonCell subclass for custom drawing. Quite simply, how can do custom highlighting before the popup menu appears? - highlight:withFrame:inView: is called before the menu appears, but no drawing is done. The same code in an NSButtonCell subclass works fine. ___

Re: Which language to get started with cocoa development?

2009-01-06 Thread Benjamin Dobson
On 1 Jan 2009, at 17:23:50, Achim Domma wrote: Thanks to everybody giving feedback to my question! Obviously I'll have to get started with ObjC. Most people refer to the Cocoa design patterns I'll have to get used to. Currently I think about buying http://www.pragprog.com/titles/dscpq/cocoa-

NSBorderlessWindowMask and Leopard's Spaces

2009-01-06 Thread Benjamin Dobson
In my application, I am using a custom window based on NSBorderlessWindowMask. You can drag the titlebar to move it around. How do I make this play nice with Spaces? Dragging to the edge of the screen should switch space after a short delay, and holding the titlebar while switching space sh

Re: NSSplitView

2008-12-31 Thread Benjamin Dobson
On 31 Dec 2008, at 22:53:46, David Blanton wrote: In Xcode 2.4.1 , debug view, all in one, the stack and vars are split, and below is source and there is one control point that moves the vert and horiz splitters Some Apple magic perhaps? I think posting a screenshot on the web would help

Re: AW: NSColorWell shows no color

2008-12-30 Thread Benjamin Dobson
On 30 Dec 2008, at 19:22:04, tobias assmann wrote: // InActiveBeatColor has been selected - (IBAction)iaSelectInactiveBeatColor:(id)sender{ [topv.colors setColor:[sender color] forKey:@"inactiveBeat"]; } You can probably do this using Bindings. http://developer.apple.com/documentation/Co

Re: Scrollwheel ignores line scroll setting in NSScrollView - bug?

2008-12-30 Thread Benjamin Dobson
In addition to what Michael said, I say that the amount scroll wheels scroll is the same across all apps. Changing this value would make the application feel disproportionate and odd. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: [NSImageView animator] - will this animate setImage: ?

2008-12-30 Thread Benjamin Dobson
On 30 Dec 2008, at 12:52:45, Benjámin Salánki wrote: Hi all, I was playing around with core animation and was wondering if sending animator to a view, specifically an NSImageView, will it only manage animation of bounds and size and rotation changes or can it too be used for changing the

Re: toolbar to view gradient displaying correctly only sometimes?

2008-12-20 Thread Benjamin Dobson
It certainly doesn't blend the toolbar to the toolbar to the window, but I don't see anything else wrong with the gradient. Why do you want to do this anyway? Note that the gradient will always look silly on Tiger. On 20 Dec 2008, at 17:39:16, Chunk 1978 wrote: i have a window with a tool

Re: Where is the Computer Image ?

2008-12-16 Thread Benjamin Dobson
On 16 Dec 2008, at 16:45:44, Gerriet M. Denkmann wrote: On 16 Dec 2008, at 08:43, Brandon Walkin wrote: The image is in /System/Library/CoreServices/CoreTypes.bundle/ Contents/Resources This works fine: NSImage *anImage = [ NSImage imageNamed: NSImageNameComputer ]; but how to get an imag

Re: Where is the Computer Image ?

2008-12-15 Thread Benjamin Dobson
The image is already in Cocoa, named NSComputer. On 15 Dec 2008, at 04:53:12, Gerriet M. Denkmann wrote: Finder.app can show in its Sidebar an image of a computer. I want to create a button with this same (or similar) image. I can use [ sharedWorkspace iconForFile: fullPath ] to get an image

Re: Announce the time every 30 minutes

2008-12-12 Thread Benjamin Dobson
On 12 Dec 2008, at 18:36:21, has wrote: You could run 'say `date`' as a cron job. Make sure to specify your own date format. The user's default one will probably sound silly. For example, date "+The time now is %I:%m %p on %A %B %e %Y" will return The time now is 09:12 p

Re: Distributing apps

2008-12-10 Thread Benjamin Dobson
On 10 Dec 2008, at 18:15:51, Richard S. French wrote: I have found a lot of Cocoa books and tutorials about writing applications. I haven’t found any instructions as to how to put that application into an icon that can be run when clicked on your desktop or downloaded by others. Please le

Re: Detecting the Enter Key

2008-12-10 Thread Benjamin Dobson
I would go for the second one. I would guess that the second one would pick up all the various Enter keys, whereas the first would only pick up a single key. The second also looks much more elegant to me. I do not have any experience with this; I am merely saying what looks best from my poi

Re: Return Control To Next Active App Without Hiding?

2008-12-10 Thread Benjamin Dobson
I haven't tested this, but could you use [NSApp deactivate];? On 10 Dec 2008, at 09:22:18, Chunk 1978 wrote: the closest thing i've come to being able to bring front the most recent app is using this: [NSApp hide:self]; [NSApp unhideWithoutActivation]; but that flashes my app, and kinda look

Re: How to launch window of the application on clicking of dock icon?

2008-12-09 Thread Benjamin Dobson
On 9 Dec 2008, at 17:02:19, Arun wrote: Hi, I have created a simple application in cocoa. when it is ran, the main window appears and a default dock icon in the Dock. If i close the window, the dock icon still stays. But if i click on the dock icon then also the main window is visible. Th

Re: Fixed width of left pane in NSSplitView

2008-12-08 Thread Benjamin Dobson
On 8 Dec 2008, at 08:03:51, Jushin wrote: However, I have no idea how to do this. Should I create a subclass of NSSplitView? No. Just wire up a different object as the delegate for your split view. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.

Re: interact with users in a background app

2008-12-07 Thread Benjamin Dobson
On 8 Dec 2008, at 07:28:29, BirdSong wrote: Thank you for your answer... But seems it doesn't work, the window still can not accept the key events... Have you told it to makeKeyAndOrderFront:? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Re: 3-float struct?

2008-12-07 Thread Benjamin Dobson
On 7 Dec 2008, at 18:46:18, Dave DeLong wrote: Hi everyone, I was asked yesterday if there's a struct in Cocoa that has 3 float members. The person asking me was looking for a struct that could contain a 3 dimensional point (so like a CG- or NSPoint, but with a z member). My quick sear

Re: New to Cocoa and Objective C, and I need some basic pointers

2008-12-05 Thread Benjamin Dobson
The OP has sent me the original message body off-list. The rest of this message is what the original message was meant to say. ––– I've been programming almost exclusively in Java since 1998, and between 1985 through 1998 I was using C and C++. I just started le

Re: New to Cocoa and Objective C, and I need some basic pointers

2008-12-05 Thread Benjamin Dobson
On 5 Dec 2008, at 21:26:49, [EMAIL PROTECTED] wrote: Something wrong with your email? ___ 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-a

Re: How to extract individual icons from icns file?

2008-12-04 Thread Benjamin Dobson
On 4 Dec 2008, at 20:58:29, I. Savant wrote: Great. Now open the newly-created file in Photoshop (as if you were going to do something with it such as creating a branded folder or something similar). :-) Yes, I've noticed how bad Photoshop is with TIFFs. In Preview, File » Save As » Pretty

Re: How to extract individual icons from icns file?

2008-12-04 Thread Benjamin Dobson
On 4 Dec 2008, at 20:33:37, I. Savant wrote: On Thu, Dec 4, 2008 at 3:28 PM, Andy Lee <[EMAIL PROTECTED]> wrote: Are you asking where Icon Composer is? What happens if you type "icon composer" into Spotlight? As I recall, the /Developer folder isn't automatically indexed by Spotlight. A

Re: lid open and close notification

2008-12-04 Thread Benjamin Dobson
On 4 Dec 2008, at 18:29:26, sheen mac wrote: Hi All, In my app needs lid open and close notification.I used ioreg shell call for that (ioreg -n IOPMrootDomain | grep AppleClamshellState | sed 's/^.*=//' ).But when lid close and open it return "No". Always the clamshellstate is true.Insom

Re: Special Characters Edit Menu Item

2008-12-03 Thread Benjamin Dobson
On 4 Dec 2008, at 04:17:22, Michael Ash wrote: Consider that the special characters palette is system-wide, not app-specific. A user may activate it in another app and then bring yours up with the palette still available, even though it's not appropriate. A user may also wish to activate it wit

Re: Customizing menu drawing

2008-12-03 Thread Benjamin Dobson
I can offer you just two options: – Use Aqua menus. – Draw a custom view instead of a menu. Other people may have more ideas. On 3 Dec 2008, at 08:57:35, Joe Ranieri wrote: I'm attempting to draw custom menus as part of a kiosk application where normal Mac OS X menus would look out of place.

Re: Button title irregularities

2008-12-02 Thread Benjamin Dobson
On 3 Dec 2008, at 01:15:32, Randall Meadows wrote: And I'm using that because that's what my client used on their iPhone app, and they want the Mac app to have the exact same look and feel. Then why not use Helvetica? ___ Cocoa-dev mailing list

Re: Text blurred in application

2008-11-29 Thread Benjamin Dobson
Make sure the PDF is not larger than the button and that it does not contain bitmaps. On 28 Nov 2008, at 23:44:41, Richard Somers wrote: On Nov 28, 2008, at 3:06AM, Adil Saleem wrote: But the static text is not readable when application is launched. It is too blurred. I have been using

Re: Text blurred in application

2008-11-28 Thread Benjamin Dobson
On 28 Nov 2008, at 10:06:28, Adil Saleem wrote: Hi, I am having a problem with the way my application displays text. In my application, i have some NSTextFields (static text) on a custom window of mine. But the static text is not readable when application is launched. It is too blurred. A

Re: Preventing a user from moving a window

2008-11-26 Thread Benjamin Dobson
On 26 Nov 2008, at 03:28:11, Damien Cooke wrote: Hi all, I have an arrangement of windows that I do not want the user to move. What is the best way of doing this. There are several ways I thought of but they are not very elegant. Can someone point me in the right direction? Regards Da

Re: NSPopupUpButton not showing checked menu items

2008-11-23 Thread Benjamin Dobson
Actually, I only wanted to select a single item in the pulldown case, the same as what correctly happens for me in the popup case. The problem has always been that, even though the button itself is reporting that a particular item is "selected," none of the underlying NSMenuItems' state is

Re: Finder's sidebar background color

2008-11-16 Thread Benjamin Dobson
Well, it is kind of a source list (a list of command descriptions). It is hard to explain in words, please take a look at the link to OnMyCommand I've posted earlier. However, I do think it really fits its purpose :D I agree, but I don't understand why a real source list doesn't do what y

Re: NSGraphiteControlTint in app

2008-11-10 Thread Benjamin Dobson
At a guess, [[[yourWindow standardWindowButton:NSWindowCloseButton] cell] setControlTint:NSGraphiteControlTint]; Repeat for each window button. On 10 Nov 2008, at 07:51:23, Ralph Manns wrote: Hello, I don't think the method setControlTint is the solution I'm looking for, because only a few

Getting started with NSTableView

2008-11-07 Thread Benjamin Dobson
Hi all, I'm trying to use an NSTableView for the first time. I've got a four- column table view set up in IB, and class files for the dataSource as follows: .h: @interface ShowResults : NSObject { IBOutlet id theTable; @private NSMutableArray *finalData;

Re: Creating icons and other resources

2008-10-25 Thread Benjamin Dobson
On 25 Oct 2008, at 17:03:54, [EMAIL PROTECTED] wrote: I hope this is appropriate the list, if not, my apologies. I was wondering how people go about creating the artwork that goes into their applications. I don't have a professional budget, and do things myself, but I'm not an artist, so my

Re: Controls disappearing from window during resize

2008-10-23 Thread Benjamin Dobson
Any particular reason you want to scale to zero? Because if not, why not just give the window a minimum size? I see the problem. It seems like a bug. But allowing the custom view to scale into negative dimensions just seems... wrong. ___ Cocoa-dev

Re: WebView: Open new windows in default browser

2008-10-23 Thread Benjamin Dobson
On 23 Oct 2008, at 01:09:07, <[EMAIL PROTECTED]> <[EMAIL PROTECTED] > wrote: I've been trying to get a WebView to open in the user's default browser. In fact, I've succeeded, but it's rather clunky, and I'm wondering if there's a better way. Why not simply add "target=_'blank'" to your URLs

WebView: Open new windows in default browser

2008-10-22 Thread Benjamin Dobson
Hi all, I've been trying to get a WebView to open in the user's default browser. In fact, I've succeeded, but it's rather clunky, and I'm wondering if there's a better way. At the moment, this is what I do: My main WebView's method for opening windows is controlled via UIDelegate. These

Re: Custom button cells for NSMatrix

2008-10-20 Thread Benjamin Dobson
Highlighting each cell in a matrix will let you change the image for it. On 20 Oct 2008, at 12:19:04, norio wrote: Hi, I'm trying to make a custom cell object for NSMatrix which behaves like radio button, this is, when you press the second cell, the second cell is highlighting still. Wou

  1   2   >