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,
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
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
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
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
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.
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
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).
-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
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
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,
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
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
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
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(
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
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
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
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
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:
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
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,
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
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
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
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
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
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
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
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
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
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
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?
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
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
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
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
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
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
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
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
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,
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
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
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:],
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
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
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
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
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
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
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
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
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
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
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
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:
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
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
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
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
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
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
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.
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
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
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
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?
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
88 matches
Mail list logo