Re: Open-source NSToolbar?

2008-04-09 Thread Geoff Beier
On Tue, Apr 8, 2008 at 12:25 PM, John Stiles [EMAIL PROTECTED] wrote: Well, I was thinking more along the lines of an RBSplitView, something you can just drop into your nib/code and suddenly your toolbars are better :) Is this what you're looking for? IB3 seems to have it natively, and this

Beginner TableView Questions

2008-04-09 Thread Peter Zegelin
I have an NSTableView with several columns of checkboxes. Each of my columns has an identifier. I also have an NSObjectController subclass acting as both data source and delegate. I can populate the table with some data. However I am stuck on how to know when a checkbox has been clicked on

NSPersistentDocument not saving after exception

2008-04-09 Thread Theo Vosse
Hi, My CoreData app (under 10.4) refuses to save the document once an exception has been thrown. Its a C++ exception thrown from a menu command after displaying an alert and it is caught. It happens both on Intel and PPC, in Debug and in Release mode. What happens after the exception, is

Re: NSTreeController / CoreData still broken in 10.5?

2008-04-09 Thread Jonathan Dann
On 7 Apr 2008, at 23:52, Adam Gerson wrote: However, I am using CoreData with my TreeController bound to a Managed Object Context. Can I still supply a contentArray in this situation? Adam On Sun, Apr 6, 2008 at 9:36 AM, Jonathan Dann [EMAIL PROTECTED] wrote: Hi Adam, I've just finished

More NSUndoManager woes

2008-04-09 Thread Graham Cox
The docs for NSUndoManager state for -removeAllActionsWithTarget: that: An object that shares an NSUndoManager with other clients should invoke this message in its implementation of dealloc. There is a problem with this - if the object being dealloced is itself the parameter to an undo

Text with translucent Background

2008-04-09 Thread fred . redcliffe
Dear All I am trying to set the background colour of a range of text in textview to a color with an alpha value less than 1. I get the text storage and set its NSBackgroundColorAttributeName attribute (through NSMutableAttributedString calls) to a colour with an alpha value less than

Re: Beginner TableView Questions

2008-04-09 Thread Ron Fleckner
On 09/04/2008, at 5:43 PM, Peter Zegelin wrote: I have an NSTableView with several columns of checkboxes. Each of my columns has an identifier. I also have an NSObjectController subclass acting as both data source and delegate. I can populate the table with some data. However I am stuck

core data and IB outlet binding

2008-04-09 Thread Torsten Curdt
I have a custom NSCollectionViewItem @interface FilterViewItem : NSCollectionViewItem { IBOutlet NSTextField *filterExpression; } - (IBAction) applyFilter:(id)sender; @end It's getting filled via core data just fine. Then I've also bound the filterExpression to the

How to get a notification which tells a folder name got changed

2008-04-09 Thread norio
Hi, My app wants to know whether the name or the location of a folder got changed. Is there any notifications to tell those changes? Thanks in advance. Norio ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: How to get a notification which tells a folder name got changed

2008-04-09 Thread Jonathan del Strother
On Wed, Apr 9, 2008 at 11:13 AM, norio [EMAIL PROTECTED] wrote: Hi, My app wants to know whether the name or the location of a folder got changed. Is there any notifications to tell those changes? You might try the FSEvents api ___ Cocoa-dev

Re: Text with translucent Background

2008-04-09 Thread Graham Cox
How are you drawing the text? If it's in a NSTextView you also need to set the background colour of the view to clear, I believe, and maybe you'll need to override the IsOpaque method to return NO. (I'm not that sure of myself here but I seem to recall something along these lines).

Re: Beginner TableView Questions

2008-04-09 Thread Graham Cox
If you implement the method: - (void)tableView:(NSTableView *)aTableView setObjectValue:anObject forTableColumn:(NSTableColumn *)aTableColumn row:(int)rowIndex in your datasource it will be called when the checkbox changes state - anObject will be the value of the checkbox as an NSNumber

Layer-Hosting View on NSTabViewItem and switching Pages

2008-04-09 Thread Joachim Deelen
Hi All, Maybe someone can Help Me?! I've created a NSTabView with two Pages (NSTabViewItems). On the second Page I got a Custom-View, that is hosting a Layer-Tree. This tree consist of a CATextLayer, within a CAScrollLayer, within a CALayer. The CALayer is the Root-Layer of the View.

componentsToDisplayForPath (running as root)

2008-04-09 Thread spsaxena
Hi all, I am facing a problem in getting the correct display name while running as root. Actually while running as root if I call API's like componentsToDisplayForPath of NSFileManager or LSCopyDisplayNameForRef, they return me the display path components always in English as the root locale is

Re: How to store NSRect as Core Data attribute?

2008-04-09 Thread Adam P Jenkins
Hmm, seems I was misunderstanding what the built-in value transformers do, and also had a problem with my custom transformer. The NSUnarchiveFromData transformer won't work for this purpose. However you can make it possible to store NSValue objects as Core Data attributes by using a

Re: Core Animation layer-backed NSViews and mouse handling

2008-04-09 Thread Bill Dudney
Hi Matt, I hope what Scott said made sense (and what I said in the book, thanks BTW to Mike for the plug). If you have a layer backed view (i.e. you only call myButton.wantsLayer = YES) then you should not ever touch the layer, only use the methods that are exposed through the view and

How to force NSTableView to stop editing a text cell?

2008-04-09 Thread Graham Cox
How can I force a text cell in NSTableView to stop editing? On 10.4 I could just tell the view's window to make the entire table the first responder and that did the trick, but on 10.5 this no longer works. I'm trying to do this from within the textDidEndEditing: notification method so

Re: Beginner TableView Questions

2008-04-09 Thread Peter Zegelin
Thanks Graham - exactly what I needed. kind regards, Peter On 09/04/2008, at 10:07 PM, Graham Cox wrote: If you implement the method: - (void)tableView:(NSTableView *)aTableView setObjectValue:anObject forTableColumn:(NSTableColumn *)aTableColumn row:(int)rowIndex in your datasource

Re: More NSUndoManager woes

2008-04-09 Thread Alastair Houghton
On 9 Apr 2008, at 12:23, Graham Cox wrote: The docs for NSUndoManager state for -removeAllActionsWithTarget: that: An object that shares an NSUndoManager with other clients should invoke this message in its implementation of dealloc. There is a problem with this - if the object being

Re: More NSUndoManager woes

2008-04-09 Thread Graham Cox
Hi Alastair, I'm not sure I fully understand it either - undo issues often make my head spin... I *think* what's happening is that NSUndoManager is unhappy that - removeAllActionsWithTarget: is being called while it is in the process of discarding an invocation off its own stack. Indeed

Re: want to keep a main window still, not close

2008-04-09 Thread Robert Napier
If you really mean main window in the NSWindow sense (makeMainWindow), then you will want to look at the windowShouldClose delegate method (as mentioned by Jack) and observe the NSWindowDidResignMainNotification notification for the window so you can set it back. More likely, though, you

Re: How to force NSTableView to stop editing a text cell?

2008-04-09 Thread Graham Cox
I found a simple solution - just call -abortEditing before asking the window to make the table 1stR. I sometimes forget to look in the superclass for a solution, in this case NSControl has one. Seem OK? - (void)textDidEndEditing:(NSNotification*) aNotification { // this

Text with translucent Background

2008-04-09 Thread fred . redcliffe
Graham Yes I am trying to draw it in a NSTextView. I tried what you suggested but it did not work. I played with multiple combinations of: [ textView setBackgroundColor:[ NSColor whiteColor ]/[ NSColor clearColor ]]; [ textView setDrawsBackground:NO/YES ]; and switching the

ToolTip for NSComboBox

2008-04-09 Thread Valentin Dan
Hi, I’d like to know how I can add a toolTip for a NSComboBox; The text should be the stringValue of the item the mouse is hovering on (actually I need a toolTip for the items in the comboBox as they are too long to be displayed) . The comboBox uses it’s own dataSource. Thanks!

Re: How to add number do Dock Icon like in Mail?

2008-04-09 Thread Samvel
It worked like a charm. It is so easy since I was trying to draw over existing Icon manually that is so complicated in comparison with given way of doing it. Thanks, Samvel. On Apr 8, 2008, at 7:41 AM, [EMAIL PROTECTED] wrote: On leopard or later, you can just do: [[[NSApplication

Re: Layer-Hosting View on NSTabViewItem and switching Pages

2008-04-09 Thread Joachim Deelen
Me again, I found a solution! Im switching Tab-Pages with selectTabViewItemWithIdentifier: After switching, I sent a Notification that a switch occurred thereby stopping all animations and hiding the TextLayer. This was the first mistake. Now I send the notification first, then switching

Re: Saving NSFonts and changedFont: trouble

2008-04-09 Thread Thomas Backman
Hmm, I just noticed that if I do [mainWindow makeFirstResponder:textView]; It never works. In other words, when the text view IS the first responder, it breaks. Otherwise, it seems to work great. I'll be honest, I don't understand the responder chain, and I'm about to read through cocoa

Re: core data and IB outlet binding

2008-04-09 Thread Torsten Curdt
No one a suggestion on how to track this down? On Apr 9, 2008, at 12:31, Torsten Curdt wrote: I have a custom NSCollectionViewItem @interface FilterViewItem : NSCollectionViewItem { IBOutlet NSTextField *filterExpression; } - (IBAction) applyFilter:(id)sender; @end It's

Re:Text With Translucent Background

2008-04-09 Thread Lincoln Green
In my experience, the window containing the view in question has to have an alpha value of 99% or less to have a view show up as transparent. - LG ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or

Tips to deploy applications to multiple Mac OS X versions

2008-04-09 Thread Lorenzo Bevilacqua
Hi, I'm trying to build a Cocoa application so that it can run on Mac OS X from version 10.3.9 to 10.5. I have 10.5 installed so the application runs fine on my system and on other Leopard systems. I haven't build a project for multiple platforms yet, so I tried to duplicate the main Xcode

Re: core data and IB outlet binding

2008-04-09 Thread Keary Suska
on 4/9/08 4:31 AM, [EMAIL PROTECTED] purportedly said: When the button is pressed it turns out that filterExpression (and therefor also the stringValue of it) is nil. I assume somehow I could probably also get the value from the NSArrayController ...but a) I am not sure how to get hold

Re: Text with translucent Background

2008-04-09 Thread Robert Napier
Make sure the enclosing NSScrollView isn't drawing it's background: [textView enclosingScrollView] setDrawsBackground:NO]; -Rob -- Rob Napier -- Software and Security Consulting -- http://robnapier.net On Apr 9, 2008, at 9:39 AM, [EMAIL PROTECTED] wrote: Graham Yes I am trying to draw it

Re: core data and IB outlet binding

2008-04-09 Thread Torsten Curdt
On Apr 9, 2008, at 17:06, Keary Suska wrote: on 4/9/08 4:31 AM, [EMAIL PROTECTED] purportedly said: When the button is pressed it turns out that filterExpression (and therefor also the stringValue of it) is nil. I assume somehow I could probably also get the value from the NSArrayController

Re: Text with translucent Background

2008-04-09 Thread fred . redcliffe
Still no luck. When I switch off the background of the scrollview the gray of the window in my test project comes through so it is clear all backgrounds are not being drawn but the selection colour still behaves in exactly the same way and draws in a solid colour. Thanks Fred On 9 Apr

Re: fileHFSCreatorCode fileAttributesAtPath:traverseLink on app bundles

2008-04-09 Thread Douglas Davidson
On Apr 8, 2008, at 6:37 PM, Mike wrote: If you really are using NSDirectoryEnumerator to scan a large hierarchy for applications, be sure to use an inner auto-release pool to clean up intermediate objects as you go. Also, once you detect that a path corresponds to a bundle (+[NSBundle

some questions about creating image thumbnails

2008-04-09 Thread Jesse Grosjean
I have a situation where I've got a NSImage reference in memory and I'd like to save that image at full size and in a number of thumbnail sizes as quickly as possible. I know how to implement the basics, but I have no idea if I'm doing it in the most efficient way. In particular: To save

Re: Text with translucent Background

2008-04-09 Thread Douglas Davidson
On Apr 9, 2008, at 8:28 AM, [EMAIL PROTECTED] wrote: Still no luck. When I switch off the background of the scrollview the gray of the window in my test project comes through so it is clear all backgrounds are not being drawn but the selection colour still behaves in exactly the same way

Re: Programmatic binding not working both ways?

2008-04-09 Thread Keary Suska
on 4/8/08 9:16 PM, [EMAIL PROTECTED] purportedly said: I'm using bind:toObject:withKeyPath:options: to programmatically set up bindings from a set of proxy objects (the receiver) to various properties on a model object, and while changes to the model properties are properly being reflected in

Re: core data and IB outlet binding

2008-04-09 Thread Mike R. Manzano
Are you sure you're calling applyFilter after or during awakeFromNib? i.e., you're not calling applyFilter in some sort of -init, right? Mike On Apr 9, 2008, at 3:31 AM, Torsten Curdt wrote: I have a custom NSCollectionViewItem @interface FilterViewItem : NSCollectionViewItem {

Re: core data and IB outlet binding

2008-04-09 Thread Keary Suska
on 4/9/08 9:14 AM, [EMAIL PROTECTED] purportedly said: On Apr 9, 2008, at 17:06, Keary Suska wrote: on 4/9/08 4:31 AM, [EMAIL PROTECTED] purportedly said: When the button is pressed it turns out that filterExpression (and therefor also the stringValue of it) is nil. I assume somehow I

Re: Open-source NSToolbar?

2008-04-09 Thread John Stiles
This is very cool and I would have used it if I had known about it earlier, but it isn't a replacement for NSToolbar so much as a simpler way to create one (which is awesome and should have been there all along). Geoff Beier wrote: On Tue, Apr 8, 2008 at 12:25 PM, John Stiles [EMAIL

Re: NSUInteger question

2008-04-09 Thread Corbin Dunn
On Apr 8, 2008, at 5:30 PM, Timothy Reaves wrote: What advantage does NSUinteger have over uint32? I realize that on a 64 bit machine, it would be a uint64. I think everyone is missing the point. The advantage is not None. Chris Parker already gave the first good advantage. The second is

Re: NSUInteger question

2008-04-09 Thread Michael Ash
On Wed, Apr 9, 2008 at 12:30 PM, Corbin Dunn [EMAIL PROTECTED] wrote: On Apr 8, 2008, at 5:30 PM, Timothy Reaves wrote: What advantage does NSUinteger have over uint32? I realize that on a 64 bit machine, it would be a uint64. I think everyone is missing the point. The

Re: some questions about creating image thumbnails

2008-04-09 Thread Nathan Vander Wilt
On Apr 9, 2008, at 8:32 AM, Jesse Grosjean wrote: I've heard (or maybe imagined) that some image file formats will already embed their own thumbnails. Is that a better way to do things... what image formats support that if any? This I do know a bit better. TIFF images can indeed store

Re: some questions about creating image thumbnails

2008-04-09 Thread Nathan Vander Wilt
On Apr 9, 2008, at 8:32 AM, Jesse Grosjean wrote: 1. If I don't care about on disk size is NSTIFFCompressionNone a fast way to write? (assuming that compression would take more time). Or maybe compression will actually save me time since the disk write will be faster? I am by no means a

Re: NSUInteger question

2008-04-09 Thread Chris Parker
On 8 Apr 2008, at 6:19 PM, Christopher Nebel wrote: On Apr 8, 2008, at 5:30 PM, Timothy Reaves wrote: What advantage does NSUinteger have over uint32? I realize that on a 64 bit machine, it would be a uint64. Advantage? None, really. It's a question of what you're trying to express

Re: Tips to deploy applications to multiple Mac OS X versions

2008-04-09 Thread Michael Vannorsdel
Using Obj-C 2.0 can give a little speed boost over previous versions of Mac OS X. For building for other system versions sometimes you need to link to the SDK of that version if you find some symbols are missing (depreciated or removed). If you want to use certain features on one

Re: Saving NSFonts and changedFont: trouble

2008-04-09 Thread Todd Ransom
Thomas, The responder chain is really the key to your question. The text view is getting the changeFont: message instead of your controller once it gets focus. How are you implementing the control that lets your user change fonts? Do you have a separate button/control for that or are you

Re: Saving NSFonts and changedFont: trouble

2008-04-09 Thread Michael Vannorsdel
The responder chain works something like this: user event-active application-application's key window-window's first responder if accepts, otherwise next view in line gets it. Whether or not delegate messages are sent is upto one of the responders in the chain to send them. The only

System Preferences window is wider in Leopard? How do you make a Tiger compatible UI?

2008-04-09 Thread Dave Camp
After designing the UI for a new System Preferences pane I've discovered that the window size in Leopard is 75 pixels wider than it was in Tiger or earlier OS releases. The net result appears to be that my shiny new UI is clipped on the right side in Tiger. Ugh. I've sent feedback that the

Re: some questions about creating image thumbnails

2008-04-09 Thread Adam R. Maxwell
On Wednesday, April 09, 2008, at 08:35AM, Jesse Grosjean [EMAIL PROTECTED] wrote: I have a situation where I've got a NSImage reference in memory and I'd like to save that image at full size and in a number of thumbnail sizes as quickly as possible. I know how to implement the basics, but

Re: NSUInteger question

2008-04-09 Thread Corbin Dunn
On Apr 9, 2008, at 9:39 AM, Michael Ash wrote: On Wed, Apr 9, 2008 at 12:30 PM, Corbin Dunn [EMAIL PROTECTED] wrote: On Apr 8, 2008, at 5:30 PM, Timothy Reaves wrote: What advantage does NSUinteger have over uint32? I realize that on a 64 bit machine, it would be a uint64. I

Re: Saving NSFonts and changedFont: trouble

2008-04-09 Thread Thomas Backman
Thanks! That worked indeed. I went the subclass route. In case someone stumbles upon this via google, my solution was (in my NSTextView subclass): - (void)changeFont:(id)sender { NSFont *oldFont = [self font]; NSFont *newFont = [sender convertFont:oldFont]; [self

[OFF] unicode characters

2008-04-09 Thread Alexander Cohen
Sorry for the off-topic post but this is the best place to get info ( lots of smart people ). I have a string that is composed unicode characters. I want to be able to transform that string into all ascii characters by transforming all non-ascii characters into their ascii equivalent.

Re: System Preferences window is wider in Leopard? How do you make a Tiger compatible UI?

2008-04-09 Thread slasktrattenator
Try this. The firstRun variable makes sure the pane is only resized once, or System Preferences will crash. Hope this helps. - (NSView *) mainView { // Return a different sized view for each version of OS X // Leopard has a wider system prefs window than Tiger // Include the Carbon

what is the proper place to store application settings

2008-04-09 Thread Laimonas Simutis
Hey, I started programming with Cocoa recently. Created an application which makes REST calls and displays the response values in a simple window. For each particular REST function I have a corresponding class which defines functionality for constructing a proper URL needed to call a function,

Re: [OFF] unicode characters

2008-04-09 Thread Douglas Davidson
On Apr 9, 2008, at 11:14 AM, Alexander Cohen wrote: Sorry for the off-topic post but this is the best place to get info ( lots of smart people ). I have a string that is composed unicode characters. I want to be able to transform that string into all ascii characters by transforming all

Re: what is the proper place to store application settings

2008-04-09 Thread Jeff LaMarche
I'm assuming that these will change, but should not be changed by the user, correct? It seems to me that you'd want to avoid compiling them into your classes using #define, I think a property list included as bundle resource is the way to go.

looking for sample code to read UUID from a disk volume.

2008-04-09 Thread Kenny Leung
Hi All. I can see from diskutil that a volume has a UUID: [EMAIL PROTECTED]diskutil info / Device Node:/dev/disk0s3 Device Identifier: disk0s3 Mount Point:/ Volume Name:Tiger File System:Journaled HFS+ Journal size 16384 k

Re: looking for sample code to read UUID from a disk volume.

2008-04-09 Thread Herb Petschauer
There may well be sample code to do this, but I initially learned to do this from IORegistryExplorer.app (which is open sourced under Darwin, IOKitTools). For all I know diskutil is in Darwin as well... Do an ioreg -l in your Terminal window, search on UUID. Note that each volume/partition has

Re: what is the proper place to store application settings

2008-04-09 Thread I. Savant
On Wed, Apr 9, 2008 at 2:41 PM, Jeff LaMarche [EMAIL PROTECTED] wrote: I'm assuming that these will change, but should not be changed by the user, correct? It seems to me that you'd want to avoid compiling them into your classes using #define, I think a property list included as bundle

Re: NSUInteger question

2008-04-09 Thread Michael Ash
On Wed, Apr 9, 2008 at 1:43 PM, Corbin Dunn [EMAIL PROTECTED] wrote: On Apr 9, 2008, at 9:39 AM, Michael Ash wrote: On Wed, Apr 9, 2008 at 12:30 PM, Corbin Dunn [EMAIL PROTECTED] wrote: On Apr 8, 2008, at 5:30 PM, Timothy Reaves wrote: What advantage does NSUinteger

Re: mouseDown on NSScrollView

2008-04-09 Thread Michael Vannorsdel
The NSScrollers are getting the mouseDown events. The NSScrollView is actually a collection of other more basic views. On Apr 9, 2008, at 1:42 PM, Lorenzo wrote: I have subsclassed a NSScrollView and overrided the mouseDown: method. Then I create the MYScrollView programmatically and add

Re: mouseDown on NSScrollView

2008-04-09 Thread Michael Vannorsdel
Forgot to mention you could use some of the notifications of the clipview to detect scrolling if that's what you're looking for. On Apr 9, 2008, at 1:42 PM, Lorenzo wrote: have subsclassed a NSScrollView and overrided the mouseDown: method. Then I create the MYScrollView programmatically

Re: what is the proper place to store application settings

2008-04-09 Thread I. Savant
On Wed, Apr 9, 2008 at 3:44 PM, Jeff LaMarche [EMAIL PROTECTED] wrote: Actually, I agree... if this is a configuration parameter that he wants the user to be able to set. Since he was talking about using preprocessor directives, I made the assumption that this was not supposed to be

Re: Tips to deploy applications to multiple Mac OS X versions

2008-04-09 Thread PGM
- Does the Objective-C 2.0 fast enumeration make sense to be used? I mean, if I don't use it, will my application perform worse on Leopard? Unless you are doing a huge number of enumerations, the difference is speed will not be worth the extra coding hassle. Better check the difference

Re: what is the proper place to store application settings

2008-04-09 Thread Laimonas Simutis
On Wed, Apr 9, 2008 at 2:57 PM, I. Savant [EMAIL PROTECTED] wrote: On Wed, Apr 9, 2008 at 3:44 PM, Jeff LaMarche [EMAIL PROTECTED] wrote: Actually, I agree... if this is a configuration parameter that he wants the user to be able to set. Since he was talking about using preprocessor

Re: More NSUndoManager woes

2008-04-09 Thread Alastair Houghton
On 9 Apr 2008, at 14:24, Graham Cox wrote: I'm not sure I fully understand it either - undo issues often make my head spin... Yeah, undo, while NSUndoManager and Objective-C theoretically make it easy, is still tricky to get right sometimes. However you might be right about the ref

Re: [OFF] unicode characters

2008-04-09 Thread Ricky Sharp
On Apr 9, 2008, at 1:25 PM, Douglas Davidson wrote: On Apr 9, 2008, at 11:14 AM, Alexander Cohen wrote: Sorry for the off-topic post but this is the best place to get info ( lots of smart people ). I have a string that is composed unicode characters. I want to be able to transform that

CGImage

2008-04-09 Thread Hugo Duncan
Hi, I am trying to edit image metadata, and am getting link errors for the MakerCanon and DNG properties, such as, _kCGImagePropertyMakerCanonFirmware, referenced from: _kCGImagePropertyMakerCanonFirmware$non_lazy_ptr in myfile.o The other properties are not causing any issues, so I

mouseDown on NSScrollView

2008-04-09 Thread Lorenzo
I have subsclassed a NSScrollView and overrided the mouseDown: method. Then I create the MYScrollView programmatically and add it to the window's contentView. I can quite see it but when I click on it, the method mouseDown: gets never invoked. What do I miss? Best Regards -- Lorenzo email:

64-bit apps [was Re: NSUInteger question]

2008-04-09 Thread Ken Victor
At Wed, 09 Apr 2008 10:43:34 -0700, Corbin Dunn [EMAIL PROTECTED]: The question was what advantage is there for using NSInteger/ NSUInteger. The answer is 64-bit transition of your Cocoa apps. -corbin this raises a question i've been meaning to ask for a while: can anyone speculate as to

Re: NSUInteger question

2008-04-09 Thread Christopher Nebel
On Apr 9, 2008, at 9:30 AM, Corbin Dunn wrote: On Apr 8, 2008, at 5:30 PM, Timothy Reaves wrote: What advantage does NSUinteger have over uint32? I realize that on a 64 bit machine, it would be a uint64. I think everyone is missing the point. The advantage is not None. I didn't mean to

Hide application from dock

2008-04-09 Thread Jere Gmail
I know I can hide my app from dock simply changing the value NSUIElement in the Info.plist But I want to do it from inside the application. Is there an easy way to modify this file? -- http://zon7blog.wordpress.com/ And again we fall. ___ Cocoa-dev

Re: 64-bit apps [was Re: NSUInteger question]

2008-04-09 Thread Nick Zitzmann
On Apr 9, 2008, at 2:51 PM, Ken Victor wrote: can anyone speculate as to whether or not the (near) future world is 64 bit apps only (ie, 32 bit apps will no longer work -- similar to the way classic apps no longer work.)? It'll be a while. Right now it's a bad idea, since a lot of people

RE: Hide application from dock

2008-04-09 Thread John Stiles
You cannot tell your app to hide from the dock once it has shown. However, you can start hidden and become visible via the (IIRC) TransformProcessType API. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jere Gmail Sent: Wednesday, April 09, 2008 2:11 PM

Re: 64-bit apps [was Re: NSUInteger question]

2008-04-09 Thread Bill Bumgarner
On Apr 9, 2008, at 2:17 PM, Nick Zitzmann wrote: 2. Since there aren't a whole lot of 64-bit apps out there, when some users see them using more memory, they tend to think something's wrong with the app. This is especially true if GC is also turned on, as it is in 64-bit Xcode, and the VM

Re: 64-bit apps [was Re: NSUInteger question]

2008-04-09 Thread Nick Zitzmann
On Apr 9, 2008, at 3:23 PM, Bill Bumgarner wrote: The collector reserves a 32GB zone of addresses to serve up scanned allocations (the autozone). It is only allocating addresses and not actually touching all of that memory. Thus, it bumps the address space by 32GB, but does not actually

Re: Hide application from dock

2008-04-09 Thread Jere Gmail
I know taht with nsbundle I can obtain the path. But as it is a xml file, I didn't want to mess with it and I was guessing some class could handle it easily. btw, I know I have to restart the application in order to apply the changes :P On Wed, Apr 9, 2008 at 11:25 PM, Randall Meadows [EMAIL

Re: Hide application from dock

2008-04-09 Thread Randall Meadows
[resending with my subscribed address--grrr] On Apr 9, 2008, at 3:34 PM, Jere Gmail wrote: I know taht with nsbundle I can obtain the path. But as it is a xml file, I didn't want to mess with it and I was guessing some class could handle it easily. NSMutableDictionary Read it into a

Re: 64-bit apps [was Re: NSUInteger question]

2008-04-09 Thread Keith Duncan
currently, i believe there are small performance penalties for 64- bit apps 'small' could be a bit of an understatement, when loading a 64 bit application into memory the OS has to load all the 64 bit libraries too. This propagates down the entire framework stack, if I recall correctly it

Re: Hide application from dock

2008-04-09 Thread Hamish Allan
On Wed, Apr 9, 2008 at 10:34 PM, Jere Gmail [EMAIL PROTECTED] wrote: I know taht with nsbundle I can obtain the path. But as it is a xml file, I didn't want to mess with it and I was guessing some class could handle it easily. See

Re: CGImage

2008-04-09 Thread Hugo Duncan
Scott, On Wed, 09 Apr 2008 Scott Thompson wrote: If this constant follows the behavior of most constants of it's kind, you could work around the problem by adding: const CFStringRef kCGImagePropertyMakerCanonFirmware = CFSTR(kCGImagePropertyMakerCanonFirmware); Thanks for the workaround.

Override AppleScrollBarVariant on NSScroller?

2008-04-09 Thread slasktrattenator
Hi, I'm looking for a way to override the user's AppleScrollBarVariant setting, and force the arrows on my custom NSScroller to be displayed at both ends of the scroller. The documentation has no mentioning of this. Does anyone know if this is possible? Thanks. F.

Making IB set maximum height but not width?

2008-04-09 Thread Jack Repenning
Is there a way to get Interface Builder to set a maximum height on a window, but not limit the width? I know some work-arounds, such as setting a max on both but making the max width huge, or enforcing it in the code, but is it doable as stated? -==- Jack Repenning [EMAIL PROTECTED]

Re: Making IB set maximum height but not width?

2008-04-09 Thread Hamish Allan
On Wed, Apr 9, 2008 at 11:22 PM, Jack Repenning [EMAIL PROTECTED] wrote: Is there a way to get Interface Builder to set a maximum height on a window, but not limit the width? Just set the max width to 0. Hamish ___ Cocoa-dev mailing list

Copying a JPEG image with CGImage changes file size

2008-04-09 Thread Hugo Duncan
Hi, I am wanting to edit metadata in a JPEG, and am just testing code (below) to read and write out an image without modification using CGImage to make sure I can do so without changing the image. I am unable to obtain an output file which is identical to the input file. Any suggestions? have

Re: Override AppleScrollBarVariant on NSScroller?

2008-04-09 Thread slasktrattenator
On a similar note, how can I find out what the current AppleScrollBarVariant is? The docs don't cover this either :-/ On Thu, Apr 10, 2008 at 12:12 AM, [EMAIL PROTECTED] wrote: Hi, I'm looking for a way to override the user's AppleScrollBarVariant setting, and force the arrows on my custom

Re: How to force NSTableView to stop editing a text cell?

2008-04-09 Thread Corbin Dunn
On Apr 9, 2008, at 5:51 AM, Graham Cox wrote: How can I force a text cell in NSTableView to stop editing? On 10.4 I could just tell the view's window to make the entire table the first responder and that did the trick, but on 10.5 this no longer works. I'm trying to do this from within

Re: Override AppleScrollBarVariant on NSScroller?

2008-04-09 Thread Mike Abdullah
I believe one normally does this system-wide via the user defaults. I suspect that setting such a default for your app only may do the trick. Not that I've actually tested it - try it and see! :) On 9 Apr 2008, at 23:12, [EMAIL PROTECTED] wrote: Hi, I'm looking for a way to override the

Re: Hide application from dock

2008-04-09 Thread glenn andreas
On Apr 9, 2008, at 4:41 PM, Randall Meadows wrote: [resending with my subscribed address--grrr] On Apr 9, 2008, at 3:34 PM, Jere Gmail wrote: I know taht with nsbundle I can obtain the path. But as it is a xml file, I didn't want to mess with it and I was guessing some class could handle it

Re: Hide application from dock

2008-04-09 Thread John Stiles
Even if you could change it, once your app is running it, changing the plist won't have any effect until the next time the app is run. So it's probably a moot point. glenn andreas wrote: On Apr 9, 2008, at 4:41 PM, Randall Meadows wrote: [resending with my subscribed address--grrr] On Apr

Re: Hide application from dock

2008-04-09 Thread Randall Meadows
On Apr 9, 2008, at 5:35 PM, John Stiles wrote: Even if you could change it, once your app is running it, changing the plist won't have any effect until the next time the app is run. So it's probably a moot point. Yes, I actually pointed that out in my first reply, which didn't make it to

Re: Hide application from dock

2008-04-09 Thread Gregory Weston
Randall Meadows wrote: I know taht with nsbundle I can obtain the path. But as it is a xml file, I didn't want to mess with it and I was guessing some class could handle it easily. btw, I know I have to restart the application in order to apply the changes :P Do you also know that assuming

IKImageView -zoomImageToFit causes flicker

2008-04-09 Thread Jamie Phelps
Hi, all. I'm working with ImageKit, and I've bumped into a problem. (See below for relevant source.) If I select an image that I've brought in from the filesystem, the -setIKImageViewImage: method causes a flickr. I have narrowed it down to the -zoomImageToFit: call. Without it, there is

Re: Hide application from dock

2008-04-09 Thread Randall Meadows
On Apr 9, 2008, at 5:52 PM, Gregory Weston wrote: Randall Meadows wrote: I know taht with nsbundle I can obtain the path. But as it is a xml file, I didn't want to mess with it and I was guessing some class could handle it easily. btw, I know I have to restart the application in order to apply

Re: Override AppleScrollBarVariant on NSScroller?

2008-04-09 Thread Michael Watson
I hope it isn't possible. I don't really want applications actively ignoring my scroll bar setting and enforcing its own. I prefer them at one end, together, at bottom. If suddenly one or two of my apps are different, it's going to drive me batty as I switch around between apps, and those

How to replace image contents?

2008-04-09 Thread Samvel
Hi, I have a class with image property: @interface MyClass { ... NSImage *image; } ... @end in -(void) init: this image object is set like: -(void) init { ... image = [[NSImage alloc] initWithData: imageData]; ... } somewhere else in another method

Re: How to replace image contents?

2008-04-09 Thread Bill Bumgarner
On Apr 9, 2008, at 7:43 PM, Samvel wrote: But these lines of code involves freeing memory and allocating new object although it seems to be faster if data would be replaced instead of recreating the whole object. Is it possible to do that way: just to replace image contents with

Re: How to replace image contents?

2008-04-09 Thread Samvel
It was a general thought. I am programming in Objective-C only for about month and was wondering if there is any faster way to replace image/string/etc. contents instead of reallocating object itself. Samvel. On Apr 9, 2008, at 9:58 PM, Bill Bumgarner wrote: On Apr 9, 2008, at 7:43 PM,

  1   2   >