Re: CGFloat and 64 Bit

2009-02-09 Thread Jean-Daniel Dupas
Le 9 févr. 09 à 06:37, Rob Keniger a écrit : On 08/02/2009, at 9:52 PM, Gerriet M. Denkmann wrote: When I build a Cocoa Project with 32/64 bit, this line gets a warning: NSSize a = NSMakeSize( 11.2, 22.4); which went away using: NSSize a = NSMakeSize( (CGFloat)11.2,

Re: CGFloat and 64 Bit

2009-02-09 Thread Rob Keniger
On 09/02/2009, at 6:33 PM, Jean-Daniel Dupas wrote: NSSize a = NSMakeSize( 11.2f, 22.4f); The f suffix is a hint to the compiler that it's a float value. A very bad idea as it would force usage of float in 64bits applications where NSSize expect 64 bits CGFloat. So what is the

Re: CGFloat and 64 Bit

2009-02-09 Thread Jean-Daniel Dupas
Le 9 févr. 09 à 09:50, Rob Keniger a écrit : On 09/02/2009, at 6:33 PM, Jean-Daniel Dupas wrote: NSSize a = NSMakeSize( 11.2f, 22.4f); The f suffix is a hint to the compiler that it's a float value. A very bad idea as it would force usage of float in 64bits applications where NSSize

[MEET] Amsterdam CocoaHeads - Wed, Feb 11 7PM

2009-02-09 Thread Cathy Shive
Hello Amsterdam CocoaHeads! Our next meeting is this Wednesday, 11 February, from 7 - 9 PM. This month, Austin Sarner will give a presentation on the iPhone's table view - UITableView - and Axel Roest will tell us about his recent CocoaBootcamp training from the Big Nerd Ranch. Visit the

Re: Sound from scratch

2009-02-09 Thread Carlos Eduardo Mello
I'm not sure where to begin with this one, but I want to create some music purely through code; no use of devices or instruments or anything. That said, I don't want to to come out sounding like beeps or bloops; I'd rather like to be able to play around with generating sound like I can do with

Re: Creating audio files in iphone

2009-02-09 Thread Andrew Farmer
On 08 Feb 09, at 22:41, Mahaboob wrote: I'm using a table view to show all the audio files. When I'm selecting one file among these and click on the record button, the newly recording sound should be attached to the end of the selected file. I'm referring the SpeakeHere example of apple.

Re: Syntax errors, undeclared variables

2009-02-09 Thread Andrew Farmer
On 07 Feb 09, at 16:06, Kevin Walzer wrote: I am making progress on this by refactoring the code to include the Cocoa methods in a Cocoa class and the Tcl C-API code in a separate file, called in normal C procedural style. Keep in mind that there's no restriction against calling ObjC

Re: CGFloat and 64 Bit

2009-02-09 Thread Jean-Daniel Dupas
Le 9 févr. 09 à 10:14, Rob Keniger a écrit : On 09/02/2009, at 7:07 PM, Jean-Daniel Dupas wrote: Which warning flag have you enabled to have this warning. I don't see it by default ? Hmm, I think it might be Implicit Conversion to 32 bit type (GCC_WARN_64_TO_32_BIT_CONVERSION).

RE: NSTableView Popup Column issue

2009-02-09 Thread Jon C. Munson II
-Original Message- From: cocoa-dev-bounces+jmunson=his@lists.apple.com [mailto:cocoa-dev-bounces+jmunson=his@lists.apple.com] On Behalf Of mmalc Crawford Sent: Saturday, February 07, 2009 1:23 PM To: Cocoa-Dev (Apple) Subject: Re: NSTableView Popup Column issue On Feb 6, 2009, at

how to receive some string from iphone's app to stanalne app on mac?

2009-02-09 Thread Carlo Gulliani
hi, everybody, i've 2 apps: ipone's app and app on my mac. i wanna receive some message from iphone to my mac's app. for example, my iphone's app has 2 buttons: -(IBAction) first { // here i should send message FIRST to mac's app } -(IBAction) second { // here i should send message SECOND to

Re: how to receive some string from iphone's app to stanalne app on mac?

2009-02-09 Thread Ricky Sharp
Bonjour is just for discovery. You need to add in network code to send and receive data. Check out the PictureSharing sample code. Not sure of exact names, but there are a few samples you will ultimately need that should have PictureSharing in their name. Sent from my iPhone On Feb 9,

Re: how to receive some string from iphone's app to stanalne app on mac?

2009-02-09 Thread Carlo Gulliani
yes, thanks, i have seen this example. but maybe you know how to add some kind of listener, which will listen when data is changed? 'coz in example i should select once again service's name for viewing new data From: Ricky Sharp rsh...@mac.com To: Carlo

NSTextField - dynamic resizing while editing

2009-02-09 Thread Eric Gorr
Here is a picture of what I would to do: http://ericgorr.net/cocoadev/outlinetable/namedparts.png Anything outside of the green box will be clipped. Basically, I have a NSTextField inside of a NSView which is being used as a label for a NSImageView. I would like to allow the user to edit

Re: NSTextField - dynamic resizing while editing

2009-02-09 Thread Erik Buck
The Sketch.app example on your hard disk may provide guidance. ___ 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-admins(at)lists.apple.com

Re: CGFloat and 64 Bit

2009-02-09 Thread Gerriet M. Denkmann
On 9 Feb 2009, at 12:43, Rob Keniger r...@menumachine.com wrote: On 08/02/2009, at 9:52 PM, Gerriet M. Denkmann wrote: When I build a Cocoa Project with 32/64 bit, this line gets a warning: NSSize a = NSMakeSize( 11.2, 22.4); which went away using: NSSize a = NSMakeSize(

64 bit problem with Spotlighter

2009-02-09 Thread Gerriet M. Denkmann
I just build /Developer/Examples/AppKit/Spotlighter. Works fine in 32 bit mode. Then I tried 32/64-bit Universal, but now the Grouped Results are always empty. So: is there a bug in Apple's code? Or are some 64 bit libraries broken? And what can I do to get this working in 64-bit? Kind

Re: CGFloat and 64 Bit

2009-02-09 Thread Nick Zitzmann
On Feb 9, 2009, at 1:50 AM, Rob Keniger wrote: So what is the recommendation for 64-bit development? Do we really have to litter our code with (CGFloat) casts all over the place, or is there some way we can tell the compiler to treat our floating point literals as float on 32-bit and

Launch Mail application on iPhone

2009-02-09 Thread peter . schols
Hi, I'm looking for a way to launch the iPhone Mail application without opening a new mail message. [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@mailto:;]] works fine, but it opens a new message. Is there a way to simply launch the mail application without having a new

Sketch.app / SKTText (was Re: NSTextField - dynamic resizing while editing)

2009-02-09 Thread Eric Gorr
On Feb 9, 2009, at 10:51 AM, Erik Buck wrote: On Feb 9, 2009, at 10:17 AM, Eric Gorr wrote: Here is a picture of what I would to do: http://ericgorr.net/cocoadev/outlinetable/namedparts.png Anything outside of the green box will be clipped. Basically, I have a NSTextField inside of a

MEETING: Chicago CocoaHeads / CAWUG Tuesday Feb 10th

2009-02-09 Thread Bob Frank
The Chicago CocoaHeads / Chicago Cocoa and WebObjects User Group is holding our next meeting Tuesday, February 10th, at 7:00 PM at the Apple Store on Michigan Ave. Agenda: - How do people really use the iPhone - adjournment to O'Toole's When:

Re: Reading MP3 data into a NSDocument using QTKit, -readFromData:, and QTDataReference

2009-02-09 Thread Michael Ash
On Mon, Feb 9, 2009 at 10:56 AM, elliott cable m...@elliottcable.name wrote: I'm sort of new to Cocoa, and C - as a learning project, I'm trying to write a very simple music/MP3 player. Currently, I'm stuck on getting MP3 data into the application and, well, playing it audibly. I've got a

Re: CGFloat and 64 Bit

2009-02-09 Thread Michael Ash
On Mon, Feb 9, 2009 at 3:33 AM, Jean-Daniel Dupas devli...@shadowlab.org wrote: Le 9 févr. 09 à 06:37, Rob Keniger a écrit : On 08/02/2009, at 9:52 PM, Gerriet M. Denkmann wrote: When I build a Cocoa Project with 32/64 bit, this line gets a warning: NSSize a = NSMakeSize( 11.2,

Re: Reading MP3 data into a NSDocument using QTKit, -readFromData:, and QTDataReference

2009-02-09 Thread Kyle Sluder
On Mon, Feb 9, 2009 at 10:56 AM, elliott cable m...@elliottcable.name wrote: I'm sort of new to Cocoa, and C - as a learning project, I'm trying to write a very simple music/MP3 player. If you're not using QuickTime for a specific purpose, try just using NSSound. --Kyle Sluder

Re: CGFloat and 64 Bit

2009-02-09 Thread Sean McBride
On 2/9/09 11:59 AM, Jean-Daniel Dupas said: Hmm, I think it might be Implicit Conversion to 32 bit type (GCC_WARN_64_TO_32_BIT_CONVERSION). IMHO, this flag is recommended only to compile 64 bits code. On 32 bits arch, as you saw, most of the warnings are irrelevant. I disagree. It can help

Scroll bars in NSTokenField?

2009-02-09 Thread Markus Guhe
Hi list, In Mail.app the token fields for To: and Cc: show scroll bars if there are more than 4 lines to display. Has anybody a hint of how to do this? As far as I can see this is made impossible by the fact that NSTokenTextView (the view displaying the content for NSTokenField) is

Re: NSSocketPort with NSConnection causing firewall pop-up

2009-02-09 Thread Tim Murison
Since UDSs are bidirectional, I don't need an explicit receivePort. The documentation for NSConnection states that if receivePort is nil, then a port of the same type as sendPort will be automatically created. My guess is that this is done to provide support for distributed objects over

Re: CGFloat and 64 Bit

2009-02-09 Thread Jean-Daniel Dupas
Le 9 févr. 09 à 19:04, Sean McBride a écrit : On 2/9/09 11:59 AM, Jean-Daniel Dupas said: Hmm, I think it might be Implicit Conversion to 32 bit type (GCC_WARN_64_TO_32_BIT_CONVERSION). IMHO, this flag is recommended only to compile 64 bits code. On 32 bits arch, as you saw, most of the

Re: CGFloat and 64 Bit

2009-02-09 Thread Nick Zitzmann
On Feb 9, 2009, at 11:04 AM, Sean McBride wrote: I agree with the OP that CGFloat is very annoying in this respect. My solution has been to use the 'f' suffix for constants. The problem with that is, if you do a mathematical operation on a double using a float (including constants), you

Re: CGFloat and 64 Bit

2009-02-09 Thread Sean McBride
On 2/9/09 12:02 PM, Nick Zitzmann said: I agree with the OP that CGFloat is very annoying in this respect. My solution has been to use the 'f' suffix for constants. The problem with that is, if you do a mathematical operation on a double using a float (including constants), you will lose a

Re: CGFloat and 64 Bit

2009-02-09 Thread Steve Sisak
At 12:41 PM -0500 2/9/09, Michael Ash wrote: A very bad idea as it would force usage of float in 64bits applications where NSSize expect 64 bits CGFloat. So? Float converts to double just fine. There are no bad consequences for passing 11.2f to a function that takes double, aside from an

Re: Determining if a user is logged in from a Launchd Daemon

2009-02-09 Thread David Duncan
On Feb 6, 2009, at 1:14 PM, Tom Fortmann wrote: Is there a way of determining if a GUI user (ignoring remote shells and such) is logged in from a system daemon? It looks like the WindowServer process is started for a user session, but I'm not sure scanning the process list is the best way

Re: CGFloat and 64 Bit

2009-02-09 Thread Clark Cox
On Mon, Feb 9, 2009 at 10:04 AM, Sean McBride s...@rogue-research.com wrote: On 2/8/09 11:14 PM, Clark Cox said: A somehow related question: How does one find out, in which mode (32 vs. 64 bit) an app is running? #ifdef __LP64__ Apple's headers inconsistently use #if and #ifdef. Because

Re: Constrained layer-backed control stops responding

2009-02-09 Thread David Duncan
On Feb 8, 2009, at 9:54 PM, Alejandro Rodriguez wrote: I have a NSView that is layer-backed (setWantsLayer:YES) and when I add it to another subview it works fine. But if I use a CAConstraint to chage it's location then controls inside the view stop responding to events. Any clues anyone?

Re: CGFloat and 64 Bit

2009-02-09 Thread Clark Cox
On Mon, Feb 9, 2009 at 11:11 AM, Steve Sisak sgs-li...@codewell.com wrote: At 12:41 PM -0500 2/9/09, Michael Ash wrote: A very bad idea as it would force usage of float in 64bits applications where NSSize expect 64 bits CGFloat. So? Float converts to double just fine. There are no bad

Question regarding nullified relationship objects

2009-02-09 Thread Jon C. Munson II
Namaste! If I have two entities, A and B, where A --B, and the delete rule in entity A's relationship to B is cascade, and B's delete rule for the relationship to A is nullify, what happens to the actual row that holds the relationship data in A that was once B after B is deleted? Does it get

Re: CGFloat and 64 Bit

2009-02-09 Thread Sean McBride
On 2/9/09 11:24 AM, Clark Cox said: Apple's headers inconsistently use #if and #ifdef. Because #if and #ifdef will both give the proper result in this instance (i.e. the GCC compiler either defines __LP64__ to true, or it doesn't define it at all), they are interchangeable. I recommend: #if

Re: Question regarding nullified relationship objects

2009-02-09 Thread I. Savant
On Mon, Feb 9, 2009 at 2:44 PM, Jon C. Munson II jmun...@his.com wrote: If I have two entities, A and B, where A --B, and the delete rule in entity A's relationship to B is cascade, and B's delete rule for the relationship to A is nullify, what happens to the actual row that holds the

re: Question regarding nullified relationship objects

2009-02-09 Thread Ben Trumbull
If I have two entities, A and B, where A --B, and the delete rule in entity A's relationship to B is cascade, and B's delete rule for the relationship to A is nullify, what happens to the actual row that holds the relationship data in A that was once B after B is deleted? Does it get

RE: NSTableView Popup Column issue

2009-02-09 Thread Jon C. Munson II
Namaste! I found the issue. After deleting my test data and starting with a blank database, I noticed the tableview was still exhibiting the same behavior - displaying the beginning paren as if attempting to dump the object data. After stopping the program, I checked the tableview bindings

RE: Determining if a user is logged in from a Launchd Daemon

2009-02-09 Thread Tom Fortmann
Thank you to everyone that responded. After reading through the Technical QA QA1133 and Technical Note TN2083 (as well as all of your responses) I decided to use the utmpx API's for this application. I like the concept of dividing users and system functions into separate user agents and system

RE: Question regarding nullified relationship objects

2009-02-09 Thread Jon C. Munson II
Namaste! Thanks Ben! I just wanted to make sure I wasn't left with orphans hanging around that would require later maintenance... To I.Savant: Actually, I am curious to know from the perspective of either the XML type or SQLite type. However, Ben's response provided the needed answer, which

Re: CGFloat and 64 Bit

2009-02-09 Thread Clark Cox
On Mon, Feb 9, 2009 at 12:10 PM, Sean McBride s...@rogue-research.com wrote: On 2/9/09 11:24 AM, Clark Cox said: Apple's headers inconsistently use #if and #ifdef. Because #if and #ifdef will both give the proper result in this instance (i.e. the GCC compiler either defines __LP64__ to true,

Re: Question regarding nullified relationship objects

2009-02-09 Thread I. Savant
On Mon, Feb 9, 2009 at 3:31 PM, Jon C. Munson II jmun...@his.com wrote: To I.Savant: Actually, I am curious to know from the perspective of either the XML type or SQLite type. However, Ben's response provided the needed answer, which is that there isn't anything left hanging around with

Re: Mixing C++ and Objective-C

2009-02-09 Thread Sean McBride
On 2/9/09 10:42 AM, Peter N Lewis said: Personally, I just switch the whole project to compile everything in Objective C++ and this eliminates the need for ifdef __cplusplus at essentially no cost in compile time, execution speed or executable size. It just means you are only dealing with one

-[PDFView drawPage:] and Printing

2009-02-09 Thread Kyle Sluder
Hi list, I'm overriding -drawPage: in a PDFView subclass with the intent of layering two PDFs on top of each other. It works great on screen, but when I attempt to print the document, PDFKit just prints the document PDFView rather than using my -drawPage: method. I've tried -[PDFView print:],

Re: Question regarding nullified relationship objects

2009-02-09 Thread Andrew Farmer
On 09 Feb 09, at 13:06, Jon C. Munson II wrote: [Jon C. Munson II] My intent with the question was to seek clarity rather than make an assumption. The dox don't say what happens, so one is left to make assumptions. Given that making assumptions about whether maintenance is needed or not

Re: NSCollectionView: Different-sized items? Docs?

2009-02-09 Thread I. Savant
On Mon, Feb 9, 2009 at 3:57 PM, Jerry Krinock je...@ieee.org wrote: I need a collection of views to display subviews of nonequal heights, like this: Take a number. :-) An Apple-designed, all-encompassing, animated, subclass-able collection view which manages arbitrarily-sized subviews would

Re: Question regarding nullified relationship objects

2009-02-09 Thread I. Savant
On Mon, Feb 9, 2009 at 4:06 PM, Jon C. Munson II jmun...@his.com wrote: Additionally, because Core Data works in a way that I'm not quite used to, clarification of the process was/is a good thing. Absolutely. :-) -- I.S. ___ Cocoa-dev mailing

Transparent image

2009-02-09 Thread Christian Graus
Hi guys I have a window with an image showing on it. Above this I have a window, which contains an IKImageView derived class. The IKImageView has a PNG in it, which has a transparency layer. What I need to do, is to make that image appear above the image I have in my main window, that is, the

Re: Transparent image

2009-02-09 Thread Steve Christensen
Something similar to what you're asking was discussed on this list last week. To get you started: [window setOpaque:NO]; [window setBackgroundColor:[NSColor colorWithCalibratedWhite:1.0 alpha:0.5]]; On Feb 9, 2009, at 1:55 PM, Christian Graus wrote: I have a window with an image showing

Re: Transparent image

2009-02-09 Thread Christian Graus
Thanks - I've been trying to use NSColor clearColor, and that's not worked at all, I'll give this a go. On Tue, Feb 10, 2009 at 9:18 AM, Steve Christensen puns...@mac.com wrote: Something similar to what you're asking was discussed on this list last week. To get you started: [window

Where is ${EXECUTABLE_NAME} defined?

2009-02-09 Thread Graham Cox
I have an annoying problem that whenever I start a new Xcode project, it defaults to naming my application based on a project I created about three years ago. I have no idea where it gets this information or how to change it. I end up having to spend the first half an hour of every new

Re: Where is ${EXECUTABLE_NAME} defined?

2009-02-09 Thread Dave DeLong
Isn't it the name of the active executable under the Executable group? (Double clicking it reveals a name field in the dialog...) Dave On Feb 9, 2009, at 3:40 PM, Graham Cox wrote: I have an annoying problem that whenever I start a new Xcode project, it defaults to naming my application

Which keyboard (barcode scanner) did the event come from?

2009-02-09 Thread Gerd Knops
Assuming I have two identical USB keyboards (actually barcode scanners) connected to a mac, is there any way to tell which of them a keyboard event came from? I can get to the keyboard type easily enough, but that only helps when I have different keyboards: - (void)sendEvent:(NSEvent

Re: Distributed Objects question

2009-02-09 Thread Ken Thomases
On Feb 9, 2009, at 4:33 PM, Allyn Bauer wrote: Hey all, I've got a fairly simple server - client app in development. The clients need to be able to communicate with the server and the server needs to be able to communicate with the clients. So far I've got the clients getting a NSMutableArray

Re: Where is ${EXECUTABLE_NAME} defined?

2009-02-09 Thread Graham Cox
On 10 Feb 2009, at 9:41 am, Dave DeLong wrote: Isn't it the name of the active executable under the Executable group? (Double clicking it reveals a name field in the dialog...) Not for me - I see the Get Info dialog, with a non-editable Name field. The name there is correct, and that's

Re: -[PDFView drawPage:] and Printing

2009-02-09 Thread John Calhoun
On Feb 9, 2009, at 1:28 PM, Kyle Sluder wrote: I'm overriding -drawPage: in a PDFView subclass with the intent of layering two PDFs on top of each other. It works great on screen, but when I attempt to print the document, PDFKit just prints the document PDFView rather than using my -drawPage:

Re: Transparent image

2009-02-09 Thread Christian Graus
I'm sorry, I'm not sure that I'm following this. Looking at it more closely, on the side I want this behaviour, it's just an IKImageView derived class on top of a window. So, I just need to make the IKImageView show the image, transparently. I've tried setting the Opaque setting, but it doesn't

Re: Where is ${EXECUTABLE_NAME} defined?

2009-02-09 Thread Chris Hanson
Xcode will expand build settings in your Info.plist when it copies it into your product. This is a build setting that Xcode fills in by default when building a target, not necessarily one Xcode provides UI for in the Build tab. See the Xcode Build Settings Reference for the settings that

NSSavePanel setMessage and line wrapping

2009-02-09 Thread Sean McBride
Hi all, Anyone know if NSSavePanel can be made to line wrap the text set with its setMessage:? (That's the text it shows at the top of the panel.) Thanks, -- Sean McBride, B. Eng s...@rogue-research.com Rogue Research

Re: CGFloat and 64 Bit

2009-02-09 Thread Steve Sisak
At 12:52 PM -0800 2/9/09, Clark Cox wrote: On Mon, Feb 9, 2009 at 12:10 PM, Sean McBride s...@rogue-research.com wrote: On 2/9/09 11:24 AM, Clark Cox said: That is, the preprocessor treats any undefined identifier in an '#if' or '#elif as if it were defined to be zero. I'm not a

Re: IB v7.03 appears to corrupt an xib last generated by IB v7.02

2009-02-09 Thread Joey Hagedorn
On Feb 7, 2009, at 6:40 PM, Stephen Bannasch wrote: I'm having a problem with Interface Builder seemingly corrupting an xib file just by opening it and closing it. ./English.lproj/Preferences.xib in IB and just save it (making no changes) the xib file appears corrupted -- this invalid

Re: Where is ${EXECUTABLE_NAME} defined?

2009-02-09 Thread Graham Cox
On 10 Feb 2009, at 10:15 am, Chris Hanson wrote: Xcode will expand build settings in your Info.plist when it copies it into your product. This is a build setting that Xcode fills in by default when building a target, not necessarily one Xcode provides UI for in the Build tab. See the

Re: CGFloat and 64 Bit

2009-02-09 Thread Scott Ribe
You are definitely describing the behavior of the C++ preprocessor. That behavior is also described at least as far back as Harbison Steele 5th edtion 2002, and KR 2nd edition 1988[*]. But I know for a fact that I have used C compilers where #if with an undefined name was a compilation error.

Re: Transparent image

2009-02-09 Thread Steve Christensen
Sorry, I misread your original posting. You're trying to make the view transparent, not the window. Based on what you're seeing when you set the view's backgroundColor, it looks like the alpha component is being ignored. I would guess that either the IKImageView only supports an opaque

Re: Transparent image

2009-02-09 Thread Christian Graus
Yes - the interesting thing is, if I turn the grid on for the IKImageView, it is plainly well able to recognise the transparency layer in my PNG and render accordingly. We are overriding IKImageView already, although we're not yet doing anything funky at all, just adding helper methods and

Re: NSCollectionView: Different-sized items? Docs?

2009-02-09 Thread Andreas Mayer
Am 09.02.2009 um 22:46 Uhr schrieb I. Savant: If all you want is a basic NSCollectionView-like widget that manages a single column with homogenous subviews of arbitrary height, however, the approach isn't trivial but it's not overly-difficult either. Right. And, actually, I do have just

Re: Where is ${EXECUTABLE_NAME} defined?

2009-02-09 Thread Kyle Sluder
On Mon, Feb 9, 2009 at 6:27 PM, Graham Cox graham@bigpond.com wrote: I would still like to know why Xcode persists in making me perform this futile exercise every time I create a new project. Have you tried deleting the com.apple.Xcode defaults domain?

Re: Where is ${EXECUTABLE_NAME} defined?

2009-02-09 Thread Ken Thomases
On Feb 9, 2009, at 5:27 PM, Graham Cox wrote: Having changed the name of the project/executable/target/prefix file from the annoying and incorrect defaults that Xcode inserted based on another of my projects (why??? - that question still stands), What Xcode actually builds is correct. If I

Re: Transparent image

2009-02-09 Thread Rob Keniger
On 10/02/2009, at 10:30 AM, Christian Graus wrote: Yes - the interesting thing is, if I turn the grid on for the IKImageView, it is plainly well able to recognise the transparency layer in my PNG and render accordingly. We are overriding IKImageView already, although we're not yet doing

Re: CGFloat and 64 Bit

2009-02-09 Thread Michael Ash
On Mon, Feb 9, 2009 at 2:11 PM, Steve Sisak sgs-li...@codewell.com wrote: At 12:41 PM -0500 2/9/09, Michael Ash wrote: A very bad idea as it would force usage of float in 64bits applications where NSSize expect 64 bits CGFloat. So? Float converts to double just fine. There are no bad

Re: CGFloat and 64 Bit

2009-02-09 Thread Michael Ash
On Mon, Feb 9, 2009 at 2:02 PM, Nick Zitzmann n...@chronosnet.com wrote: On Feb 9, 2009, at 11:04 AM, Sean McBride wrote: I agree with the OP that CGFloat is very annoying in this respect. My solution has been to use the 'f' suffix for constants. The problem with that is, if you do a

Re: CGFloat and 64 Bit

2009-02-09 Thread Nick Zitzmann
On Feb 9, 2009, at 6:30 PM, Michael Ash wrote: Not really sure what you mean by this. It's true that a constant such as 11.2f is a less precise representation of 11.2 than the non-float version. But aside from actually defining the constants (and note that all exact integers under 2^23 and

Re: NSCollectionView: Different-sized items? Docs?

2009-02-09 Thread I. Savant
On Feb 9, 2009, at 8:00 PM, Andreas Mayer wrote: Right. And, actually, I do have just such a view. :) http://www.harmless.de/cocoa-code.php#collectionview There's even a sample app and a readme that should get you started. Very nice, thanks for the link. I haven't checked out your page

Re: Sketch.app / SKTText (was Re: NSTextField - dynamic resizing while editing)

2009-02-09 Thread Rob Keniger
On 10/02/2009, at 3:09 AM, Eric Gorr wrote: Am I correct in thinking that SKTText is essentially a complete (or mostly complete) replacement of NSTextField? Has anyone played around with SKTText enough to comment on what's it's limitations are? (And, if it is a replacement for

Re: Sketch.app / SKTText (was Re: NSTextField - dynamic resizing while editing)

2009-02-09 Thread Eric Gorr
On Feb 9, 2009, at 8:56 PM, Rob Keniger wrote: On 10/02/2009, at 3:09 AM, Eric Gorr wrote: Am I correct in thinking that SKTText is essentially a complete (or mostly complete) replacement of NSTextField? Has anyone played around with SKTText enough to comment on what's it's limitations

NSScrollView: is setting the document view size supported?

2009-02-09 Thread Luke Evans
My experiments suggest that simply setting the current document view in an NSScrollView to a new size results in the unexpected behaviour (to me) of having all the content of the document view be scaled up or down to fit the size of the NSClipView. If you construct new views that are the

[MEET] Minnesota CocoaHeads 2/12/09

2009-02-09 Thread Bob McCune
The next Minnesota CocoaHeads meeting is this Thursday (2/12) from 6:00pm - 8:00pm. We meet at the offices of Synergy Information Services in Bloomington. Jon Steinmetz, from Adobe and Pixel Research Labs, will be giving a technical walkthrough of his upcoming application. He will discuss his

[MEET] BYU CocoaHeads 2/12/09

2009-02-09 Thread Dave DeLong
Hey everyone! The BYU CocoaHeads will be having their next meeting this Thursday at 7 pm in W210 of the Tanner Building on BYU campus (note that this is a change from our previous location). We'll be talking about ViewControllers, a student developer who just got his first app on the

Re: NSScrollView: is setting the document view size supported?

2009-02-09 Thread Eric Gorr
On Feb 9, 2009, at 9:07 PM, Luke Evans wrote: My experiments suggest that simply setting the current document view in an NSScrollView to a new size results in the unexpected behaviour (to me) of having all the content of the document view be scaled up or down to fit the size of the

Re: CGFloat and 64 Bit

2009-02-09 Thread Clark Cox
On Mon, Feb 9, 2009 at 3:17 PM, Steve Sisak sgs-li...@codewell.com wrote: At 12:52 PM -0800 2/9/09, Clark Cox wrote: On Mon, Feb 9, 2009 at 12:10 PM, Sean McBride s...@rogue-research.com wrote: On 2/9/09 11:24 AM, Clark Cox said: That is, the preprocessor treats any undefined identifier

Re: NSCollectionView: Different-sized items? Docs?

2009-02-09 Thread Andreas Mayer
Am 10.02.2009 um 02:00 Uhr schrieb Andreas Mayer: Am 09.02.2009 um 22:46 Uhr schrieb I. Savant: If all you want is a basic NSCollectionView-like widget that manages a single column with homogenous subviews of arbitrary height, however, the approach isn't trivial but it's not

NSToolbarItems - deallocating view-based items

2009-02-09 Thread Steve Cronin
Folks; I have a mix of view and image based toolbar items. The views are all IBOutlets defined in IB. Everything is working well - events are handled and items arevalidated, everything is dandy. Except when the user customizes the toolbar. The image based items can be added and removed

Re: NSScrollView: is setting the document view size supported?

2009-02-09 Thread Andy Lee
On Feb 9, 2009, at 9:26 PM, Eric Gorr wrote: On Feb 9, 2009, at 9:07 PM, Luke Evans wrote: My experiments suggest that simply setting the current document view in an NSScrollView to a new size results in the unexpected behaviour (to me) of having all the content of the document view be

FSExchangeObjects / FSReplaceObject

2009-02-09 Thread Chris Idou
As I understand it, we are supposed to use FSReplaceObject because FSExchangeObjects does not properly retain all meta-data. But it seems like FSReplaceObject is not actually documented. Sure it is mentioned here and there in release notes and so forth, but there is no actual proper API

Re: -[PDFView drawPage:] and Printing

2009-02-09 Thread Kyle Sluder
On Mon, Feb 9, 2009 at 5:57 PM, John Calhoun calho...@apple.com wrote: That is true. The PDFPage draw method is instead what is being called (in fact it is called both via printing and by the PDFView itself in order to display the PDF). Okay, so at this point I guess I need to establish just

Re: FSExchangeObjects / FSReplaceObject

2009-02-09 Thread Adam R. Maxwell
On Feb 9, 2009, at 8:46 PM, Chris Idou wrote: As I understand it, we are supposed to use FSReplaceObject because FSExchangeObjects does not properly retain all meta-data. But it seems like FSReplaceObject is not actually documented. Sure it is mentioned here and there in release notes and

Re: One Shot Windows: WARNING

2009-02-09 Thread Matt Neuburg
On Sat, 7 Feb 2009 21:06:20 -0800, Seth Willits sli...@araelium.com said: On Feb 7, 2009, at 8:45 PM, Matt Neuburg wrote: In my case, I have a document window with a table view in it, where data source and delegate are the window controller. If the window is oneShot NO, then the window