Re: Distributed Objects Performance

2008-11-13 Thread Bridger Maxwell
> > > How often? 60 times per second often? Once per second often? Every minute, > often? > > You'll need to calculate the amount of data you're expecting to transfer, > worst case. > I would say about every five seconds often, max. The problem is, once I have a worst case scenario calculated (whi

Re: Distributed Objects Performance

2008-11-13 Thread Seth Willits
On Nov 13, 2008, at 9:26 PM, Bridger Maxwell wrote: However, values would be changed quite often. How often? 60 times per second often? Once per second often? Every minute, often? You'll need to calculate the amount of data you're expecting to transfer, worst case. -- Seth Willits

Re: Distributed Objects Performance

2008-11-13 Thread Seth Willits
On Nov 13, 2008, at 9:26 PM, Bridger Maxwell wrote: However, values would be changed quite often. How often? 60 times per second often? Once per second often? Every minute, often? You'll need to calculate the amount of data you're expecting to transfer, worst case. -- Seth Willits

Re: [ANN] BWToolkit - Plugin for IB 3

2008-11-13 Thread Rob Keniger
On 14/11/2008, at 4:44 AM, Brandon Walkin wrote: BWToolkit is a BSD licensed plugin for Interface Builder 3 that contains commonly used UI elements and other useful objects. These include a suite of transparent (HUD) controls, a selectable toolbar for "no code" preferences windows and tabb

Re: Distributed Objects Performance

2008-11-13 Thread Kyle Sluder
On Fri, Nov 14, 2008 at 12:26 AM, Bridger Maxwell <[EMAIL PROTECTED]> wrote: > So, do you think distributed objects is the right solution? Is there a > rule of thumb on network traffic size or maximum number of clients > distributed objects can support? You really need to sit down with the numbers

Distributed Objects Performance

2008-11-13 Thread Bridger Maxwell
Hello, I am building a server that will rely on distributed objects, and am worried about the performance. I am not quite done yet, but I afraid to spend too much time on this system before discovering it will not be able to handle the network traffic. Perhaps one of the more seasoned developers

Re: Detect the login window is being displayed

2008-11-13 Thread Maggie Zhang
We have login agent and daemon components which do the work regarding user logout. I am trying the SystemConfiguration which we were using a bit in the daemon component. Do you mean I just need to get a callback when somebody logs out? In order to make SCDynamicStoreCopyConsoleUser work, do I nee

Re: deep deep copies, or shallow deep copies?

2008-11-13 Thread Graham Cox
On 14 Nov 2008, at 11:18 am, Kiel Gillard wrote: Hi Graham, If you do want a deep copy of a collection, check out . NSPropertyListSeri

Re: deep deep copies, or shallow deep copies?

2008-11-13 Thread Kiel Gillard
Hi Graham, If you do want a deep copy of a collection, check out . NSPropertyListSerialization would be the Cocoa equivalent of this AP

Re: Weird bug in IB...

2008-11-13 Thread Ken Ferry
Hey Uli, On Thu, Nov 13, 2008 at 3:48 PM, Uli Kusterer <[EMAIL PROTECTED]> wrote: > On 13.11.2008, at 17:13, Jean-Nicolas Jolivet wrote: >> >> Correct me if I'm wrong though, but I read that it wasn't a problem >> anymore in 10.5... can anyone confirm that?? > > > As I said, layer-backed views. B

Re: deep deep copies, or shallow deep copies?

2008-11-13 Thread Ken Ferry
On Thu, Nov 13, 2008 at 3:58 PM, Graham Cox <[EMAIL PROTECTED]> wrote: > Does anyone know whether methods such as: > > [NSArray initWithArray: copyItems:YES]; > > continue to deep-copy items for further collections within the root > collection, or do they fall back to a shallow copy (retaining)? >

deep deep copies, or shallow deep copies?

2008-11-13 Thread Graham Cox
Does anyone know whether methods such as: [NSArray initWithArray: copyItems:YES]; continue to deep-copy items for further collections within the root collection, or do they fall back to a shallow copy (retaining)? If no-one knows I can spend an hour or two doing some experiments but if it'

Re: Weird bug in IB...

2008-11-13 Thread Uli Kusterer
On 13.11.2008, at 17:13, Jean-Nicolas Jolivet wrote: Correct me if I'm wrong though, but I read that it wasn't a problem anymore in 10.5... can anyone confirm that?? As I said, layer-backed views. But they're fiddly. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." htt

Re: Linking with a very specific library version

2008-11-13 Thread Dave Geering
> Dave, > I have had similar problems in the past with linking with libcrypto. > My solution has been to set the "Other Linker Flags" to the path to the > library I want and set the "Library Search Paths" to that same library. > The resulting linker flags look like: > "-L " > ../../IKEngine/IKEngin

Re: Weird bug in IB...

2008-11-13 Thread Michael Ash
On Thu, Nov 13, 2008 at 12:31 PM, Jean-Nicolas Jolivet <[EMAIL PROTECTED]> wrote: > That was going to be my next point > > Assuming it has been fixed in Leopard, it is therefore really an IB Bug as I > suspected at first?? > > Anyway, Re-ordering my controls programatically did the trick... how

NSSearchField constants in search predicate binding?

2008-11-13 Thread Steve Mykytyn
I'd like to use constant values in certain NSSearchField search predicate bindings, but can't seem to get them to work. As in these two predicates ALL phoneNumber contains $value USA ONLY (phoneNumber contains $value) and (countryName contains 'United States') Is this possible, and what'

Re: Does HELP cache source location?

2008-11-13 Thread David
In the message, it should have read, (/help/1.0file.html) On Thu, Nov 13, 2008 at 5:16 PM, David <[EMAIL PROTECTED]> wrote: > I take it back. Its not working. Its acting even weirder. > > For a file that's missing locally... it works. It obtains it from the > web at the /help/1.0/file.html locatio

Re: Does HELP cache source location?

2008-11-13 Thread David
I take it back. Its not working. Its acting even weirder. For a file that's missing locally... it works. It obtains it from the web at the /help/1.0/file.html location. But for files which ARE present locally, it fails. I get a message such as: "Multiple Choices The document you requested (/htlp

Re: Weird bug in IB...

2008-11-13 Thread Michael Ash
On Thu, Nov 13, 2008 at 12:18 PM, Shawn Erickson <[EMAIL PROTECTED]> wrote: > On Thu, Nov 13, 2008 at 9:13 AM, Michael Ash <[EMAIL PROTECTED]> wrote: > >> The documentation is busted. Here's a message from Corbin Dunn stating >> that they work without layers: > > Also note Jamie's email about it ha

Re: Weird bug in IB...

2008-11-13 Thread Michael Ash
On Thu, Nov 13, 2008 at 12:18 PM, Shawn Erickson <[EMAIL PROTECTED]> wrote: > On Thu, Nov 13, 2008 at 9:13 AM, Michael Ash <[EMAIL PROTECTED]> wrote: > >> The documentation is busted. Here's a message from Corbin Dunn stating >> that they work without layers: > > Also note Jamie's email about it ha

Model mapping crash

2008-11-13 Thread Steven Hamilton
Hi folks, I have a Core data application. I've versioned my model, created a new version and added one new entity. When I create a mapping model file and choose my two models. It creates a default mapping but if some of the entities are selected in teh mapping view, XCode hard crashes with

Re: NSColorWell opacity...

2008-11-13 Thread Jean-Daniel Dupas
Didn't you have the API reference in Xcode ? +[NSColor setIgnoresAlpha:]; http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSColor_Class/Reference/Reference.html#/ /apple_ref/occ/clm/NSColor/setIgnoresAlpha: If the application doesn't support alpha, no opacity s

Re: NSColorWell opacity...

2008-11-13 Thread Jean-Nicolas Jolivet
Somehow I was able to have the opacity displayed by using: [NSColor setIgnoresAlpha:NO]; In my awakeFromNib... However, I have no idea why/how it is working... is this setting global for the whole app? JNJ On 13-Nov-08, at 4:35 PM, Jean-Nicolas Jolivet wrote: I have an NSColorWell which I

NSColorWell opacity...

2008-11-13 Thread Jean-Nicolas Jolivet
I have an NSColorWell which I bound to an NSColor object of my controller, however for some reasons, the color well does not display an Opacity slider when used in the application... (It does display it if I change the color in IB though)... Is there a way I can force the NSColorWell to dis

Re: Does HELP cache source location?

2008-11-13 Thread David
For the benefit of others who may run across this horrible Help design... I was trying to create help for my application. Used Help Indexer to give it a remote root url to use overriding local help. When I first put in the URL, I did it in the form, http://foo/help/1.0 Little did I know that Hel

Re: Mounting AFP Programatically.

2008-11-13 Thread Kyle Sluder
On Thu, Nov 13, 2008 at 3:19 PM, Sandro Noel <[EMAIL PROTECTED]> wrote: > I've tried a shell script, the drive does get mounted but it does not sow up > on the desktop like it should. Network drives don't appear on the desktop in Leopard. Are you running Leopard? --Kyle Sluder __

[Job Posting] Cocoa Developer Job opening in Pune-India

2008-11-13 Thread chaitanya pandit
Macintosh software development position with a startup company: Location: Pune (India) Requirements: - Bachelor's degree in Engineering - Require knowledge of object-oriented design/programming principles - Knowledge/exposure to Objective-C, Cocoa Framework and Xcode preferred - Passion for the A

Mounting AFP Programatically.

2008-11-13 Thread Sandro Noel
Greetings. I would like to mount the drives off a server programatically without having the window open itself when the drive is mounted. I've tried a shell script, the drive does get mounted but it does not sow up on the desktop like it should. I can see it in the finder tho. can anyone po

Re: CA: fillMode and rotation animation . . .

2008-11-13 Thread Scott Anguish
do you also tell it to not be deleted from the animation hierarchy? make sure that removedOnCompletion is NO. On 11-Nov-08, at 3:00 AM, Michael A. Crawford wrote: I have a number of layers that use rotation animation about the Z- axis. Whenever the animation(s) complete the layer returns to t

[ANN] BWToolkit - Plugin for IB 3

2008-11-13 Thread Brandon Walkin
Hi all, BWToolkit is a BSD licensed plugin for Interface Builder 3 that contains commonly used UI elements and other useful objects. These include a suite of transparent (HUD) controls, a selectable toolbar for "no code" preferences windows and tabbed sheets, button bars, textured bottom

Re: Weird bug in IB...

2008-11-13 Thread Jean-Nicolas Jolivet
A that makes perfect sense! I was indeed using a custom view... Thanks for the tip! JNJ On 13-Nov-08, at 1:25 PM, Jonathan Hess wrote: There is a bug that causes "custom views", the blue ones, to reverse the z-order of their subviews when decoded. You can workaround this by re-ordering

Re: Creating directory at path, recursively

2008-11-13 Thread Randall Meadows
On Nov 13, 2008, at 11:21 AM, Quincey Morris wrote: On Nov 13, 2008, at 10:11, Etienne Guérard wrote: You might want to do it this way: - (void)createDirectoryRecursivelyAtPath:(NSString *)path { //check if the dir just above exists... NSFileManager *fileManager = [NSFileManager

Re: Creating directory at path, recursively

2008-11-13 Thread Jean-Nicolas Jolivet
hehe, thanks this is working fine... I knew it was going to be something obvious! :) Jean-Nicolas Jolivet On 13-Nov-08, at 1:11 PM, Etienne Guérard wrote: You might want to do it this way: - (void)createDirectoryRecursivelyAtPath:(NSString *)path { //check if the dir just above exi

Re: Creating directory at path, recursively

2008-11-13 Thread Sherm Pendley
On Nov 13, 2008, at 1:21 PM, Quincey Morris wrote: Or even this way: [[NSFileManager defaultManger] createDirectoryAtPath: path withIntermediateDirectories: YES attributes: nil error: &error]? That method is new in Leopard. Jean-Nicolas said he wants his app to work in Tiger as well. sh

Re: Creating directory at path, recursively

2008-11-13 Thread Jean-Nicolas Jolivet
This is exactly what I need, but it's only available on 10.5 or later, hence why I'm trying to put a simple equivalent together... JNJ On 13-Nov-08, at 1:21 PM, Quincey Morris wrote: On Nov 13, 2008, at 10:11, Etienne Guérard wrote: You might want to do it this way: - (void)createDirector

Re: Weird bug in IB...

2008-11-13 Thread Jonathan Hess
There is a bug that causes "custom views", the blue ones, to reverse the z-order of their subviews when decoded. You can workaround this by re-ordering the subviews in awakeFromNib, or, you can use an instance of NSView instead of "custom view". To create an instance of NSView instead of "c

Re: Creating directory at path, recursively

2008-11-13 Thread Quincey Morris
On Nov 13, 2008, at 10:11, Etienne Guérard wrote: You might want to do it this way: - (void)createDirectoryRecursivelyAtPath:(NSString *)path { //check if the dir just above exists... NSFileManager *fileManager = [NSFileManager defaultManager]; BOOL isDir; NSStri

Re: Does HELP cache source location?

2008-11-13 Thread David
I've removed all references to http://foo/help/1.0 and still it complains that the url can't be found. Where is it getting this URL from? I've erased my application's preferences plist. I've rebooted the whole machine. I've scanned my project directory for this string even in binary files. I've ch

Re: NSConnection/NSMachPort and CPU Loads.

2008-11-13 Thread Shawn Erickson
On Thu, Nov 13, 2008 at 10:03 AM, Robert Monaghan <[EMAIL PROTECTED]> wrote: > Here is what my user reports: > - Under extremely heavy CPU Loads, my software app, and the daemon looses > its connection. The user is rendering a lot of imagery on the same machine. > I am assuming that the CPUs are be

RE: Creating directory at path, recursively

2008-11-13 Thread Etienne Guérard
You might want to do it this way: - (void)createDirectoryRecursivelyAtPath:(NSString *)path { //check if the dir just above exists... NSFileManager *fileManager = [NSFileManager defaultManager]; BOOL isDir; NSString *directoryAbove = [path stringByDeletingLastPathCo

Re: NSConnection/NSMachPort and CPU Loads.

2008-11-13 Thread Robert Monaghan
Here is what my user reports: - Under extremely heavy CPU Loads, my software app, and the daemon looses its connection. The user is rendering a lot of imagery on the same machine. I am assuming that the CPUs are being maxed out with a lot of threads tying up the machine. - Just about every

Creating directory at path, recursively

2008-11-13 Thread Jean-Nicolas Jolivet
I know there's a method to do just that in Leopard, however I want my app to work on Tiger too, therefore I'm trying to put together a simple "createDirectoryRecursivelyAtPath" method, however for some reason it doesn't seem to work Here's a simplified version of my method: - (void)cre

Re: EXC_BAD_ACCESS with 10.5.5 AppKit on some MacPros

2008-11-13 Thread Shawn Erickson
On Thu, Nov 13, 2008 at 9:46 AM, Robert Monaghan <[EMAIL PROTECTED]> wrote: > Hi Everyone.. > > I have a really weird problem with my basic application. > From time to time, on only a very few machines, (running 10.5.5), my > application crashes when a user clicks on a button. It reports a > EXC_BA

Re: NSConnection/NSMachPort and CPU Loads.

2008-11-13 Thread Dave Cox
I have a Daemon communicating with an application using NSConnection/ NSMachPort. It appears that they loose communication somehow, under extremely heavy CPU loads on the System. What happens that leads you to that conclusion? Over the past few days I have been documenting (on this list) prob

Re: geting the folders contents via http

2008-11-13 Thread Jean-Daniel Dupas
Le 13 nov. 08 à 18:00, Valentin Dan a écrit : Hi, Is there a way to get the files in a folder like: "http://mysite.com/myfolder/"; ? I have a bunch of pictures there and I want to go through them, select one and put it's content in a NSTableView's cell. If your server allows "director

Re: Weird bug in IB...

2008-11-13 Thread Andrew Merenbach
Hi. This is correct, as prior to 10.5, clipping among overlapping views was not enforced, and your program's functionality could very well be unpredictable. Best, Andrew On Nov 13, 2008, at 9:31 AM, Jean-Nicolas Jolivet wrote: That was going to be my next point Assuming it ha

EXC_BAD_ACCESS with 10.5.5 AppKit on some MacPros

2008-11-13 Thread Robert Monaghan
Hi Everyone.. I have a really weird problem with my basic application. From time to time, on only a very few machines, (running 10.5.5), my application crashes when a user clicks on a button. It reports a EXC_BAD_ACCESS. Here is the crash report: Code Type: X86 (Native) Parent Process

Re: Validating a non-optional transient Core Data property - it can be erased?!

2008-11-13 Thread Quincey Morris
On Nov 13, 2008, at 09:17, Arthur C. wrote: There's also a way of localizing the built-in error messages, which >may be another solution to your first question if you just want to >vary the wording a bit:>> http://developer.apple.com/documentation/Cocoa/Conceptual/CoreData/Articles/cdUsin

Re: core data + bindings + custom view ?

2008-11-13 Thread Quincey Morris
On Nov 13, 2008, at 07:10, [EMAIL PROTECTED] wrote: I have an NSControl subclass that maintains a list of cells, and an NSMutableArray called "content". I have successfully bound its "content" to the core data based array controller's "arrangedObjects" array. I thought that was all I needed

Re: Weird bug in IB...

2008-11-13 Thread Jean-Nicolas Jolivet
That was going to be my next point Assuming it has been fixed in Leopard, it is therefore really an IB Bug as I suspected at first?? Anyway, Re-ordering my controls programatically did the trick... however, should I assume that it might not work on Tiger since overlapping view's behav

Re: Weird bug in IB...

2008-11-13 Thread Shawn Erickson
On Thu, Nov 13, 2008 at 9:13 AM, Michael Ash <[EMAIL PROTECTED]> wrote: > The documentation is busted. Here's a message from Corbin Dunn stating > that they work without layers: Also note Jamie's email about it having issues even 10.5. I am still not sure it works fully as intended (don't have ti

RE: Validating a non-optional transient Core Data property - it can be erased?!

2008-11-13 Thread Arthur C .
>From: [EMAIL PROTECTED]>To: cocoa-dev@lists.apple.com>Subject: Validating a >non-optional transient Core Data property - it can be erased?!>Date: Wed, 12 >Nov 2008 22:31:02 +0100> >In my Core Data database I have a property called 'target' (double), which is >transient and required (i.e.

Re: geting the folders contents via http

2008-11-13 Thread Nick Zitzmann
On Nov 13, 2008, at 10:00 AM, Valentin Dan wrote: Is there a way to get the files in a folder like: "http://mysite.com/myfolder/"; ? Not with any of the built-in classes. If mysite.com supports WebDAV (e.g. iDisk), then you could use a third-party framework like ConnectionKit to get a li

Re: Weird bug in IB...

2008-11-13 Thread Michael Ash
On Thu, Nov 13, 2008 at 12:11 PM, Shawn Erickson <[EMAIL PROTECTED]> wrote: > On Thu, Nov 13, 2008 at 8:54 AM, Michael Ash <[EMAIL PROTECTED]> wrote: >> On Thu, Nov 13, 2008 at 11:13 AM, Jean-Nicolas Jolivet >> <[EMAIL PROTECTED]> wrote: >>> Correct me if I'm wrong though, but I read that it wasn't

Re: Weird bug in IB...

2008-11-13 Thread Shawn Erickson
On Thu, Nov 13, 2008 at 8:54 AM, Michael Ash <[EMAIL PROTECTED]> wrote: > On Thu, Nov 13, 2008 at 11:13 AM, Jean-Nicolas Jolivet > <[EMAIL PROTECTED]> wrote: >> Correct me if I'm wrong though, but I read that it wasn't a problem anymore >> in 10.5... can anyone confirm that?? > > Yes, on 10.5 AppKi

geting the folders contents via http

2008-11-13 Thread Valentin Dan
Hi, Is there a way to get the files in a folder like: "http://mysite.com/myfolder/"; ? I have a bunch of pictures there and I want to go through them, select one and put it's content in a NSTableView's cell. I'd like to get their path in some sort of list ... something like a NSArray wi

Does HELP cache source location?

2008-11-13 Thread David
I'm getting really wierd results that make me think the Help system is caching its source location somewhere. I changed the URL used in Help Indexer for a network location for help. Sometimes the changes seems to take effect and often it doesn't. Is it stored in preferences? Does Help remember acro

Re: Weird bug in IB...

2008-11-13 Thread Michael Ash
On Thu, Nov 13, 2008 at 11:13 AM, Jean-Nicolas Jolivet <[EMAIL PROTECTED]> wrote: > Correct me if I'm wrong though, but I read that it wasn't a problem anymore > in 10.5... can anyone confirm that?? Yes, on 10.5 AppKit allows and guarantees the correct behavior of overlapping sibling views. I'm no

Re: NSTableView Issue

2008-11-13 Thread I. Savant
On Thu, Nov 13, 2008 at 3:14 AM, Chris <[EMAIL PROTECTED]> wrote: > This is an issue I've been stuck on for a while, I'm trying to load an > instance of NSHTTPCookieStorage into a table view. I have it far enough so > that when I build the app and load it, it displays this > http://i38.tinypic.com

Re: JPEG compression in TIFF files. NSTIFFCompressionJPEG

2008-11-13 Thread Heinrich Giesen
On 13.11.2008, at 00:34, Alexander Shmelev wrote: Our customer asks us to save images in TIFF files with JPEG compression. But in NSImage documentation is written that JPEG compression is no longer supported. Why Apple decided to stop support JPEG compression in NSImage class? The difficulti

Re: MyDocument's Window Outlet...

2008-11-13 Thread Alexander Spohr
Am 12.11.2008 um 19:22 schrieb Jean-Nicolas Jolivet: [window setToolbar:] for example gives me an error saying that "window" wasn't declared try [[self window] setToolBar:] If I try to declare a "window" outlet in my code and try to connect it in IB, I end up with 2 outlets named "w

NSTableView Issue

2008-11-13 Thread Chris
Hello, This is an issue I've been stuck on for a while, I'm trying to load an instance of NSHTTPCookieStorage into a table view. I have it far enough so that when I build the app and load it, it displays this http://i38.tinypic.com/315en3c.png . However when I attempt to scroll up or down,

NSConnection/NSMachPort and CPU Loads.

2008-11-13 Thread Robert Monaghan
Hi Everyone.. I have a Daemon communicating with an application using NSConnection/ NSMachPort. It appears that they loose communication somehow, under extremely heavy CPU loads on the System. Has anyone heard of this, or experienced it? I am trying to duplicate what my customer is seeing.

Re: Core Data + Unidirectional Relationships

2008-11-13 Thread Alexander Spohr
Am 12.11.2008 um 14:38 schrieb John Pannell: The station has a to-many "ports" relationship with a cascade delete rule, and the port has a to-one "station" relationship with a cascade delete rule - these are inverses on one another. So now, if I delete a station, all of its ports will als

Token in NSAttributedString | was: NSImage in NSAttributedString

2008-11-13 Thread Alexander Spohr
I would like to display tokens with a blue rounded background, like NSTokenField does, in an NSAttributedString. The easiest way seems to use NSTextAttachment but it does not feel right. Is there a better way? atze ___ Cocoa-dev mailing

Re: NSImage in NSAttributedString

2008-11-13 Thread Alexander Spohr
Timothy, how about a nice category? atze Am 12.11.2008 um 12:34 schrieb Timothy Larkin: I am building an attributed string for display in a NSTextView. I can include an image in the string by attaching a file wrapper. But what if I have just an NSImage? I know that an image from

Re: Weird bug in IB...

2008-11-13 Thread Jean-Nicolas Jolivet
Correct me if I'm wrong though, but I read that it wasn't a problem anymore in 10.5... can anyone confirm that?? Jean-Nicolas Jolivet On 13-Nov-08, at 6:27 AM, Uli Kusterer wrote: On 13.11.2008, at 07:17, Jean-Nicolas Jolivet wrote: Any particular reasons why my label will always show up beh

RE: XCode 3.1 compiler doesn't like CFDataRef bridge to (NSData *) object.

2008-11-13 Thread Lee, Frederick (Ric)
Excellent! Yes; simple oversight. Thank You. Ric. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, November 13, 2008 10:01 AM To: Lee, Frederick (Ric) Cc: cocoa-dev@lists.apple.com Subject: Re: XCode 3.1 compiler doesn't like CFDataRef bridge to (NSData

Re: XCode 3.1 compiler doesn't like CFDataRef bridge to (NSData *) object.

2008-11-13 Thread matt . gough
On 13 Nov 2008, at 16:54, Lee, Frederick (Ric) wrote: CFDataRef faxMsgData = (NSData *)[[self.faxHistoryItemDict objectForKey:@"msg"] dataUsingEncoding: NSUTF8StringEncoding]; Shouldn't that be : CFDataRef faxMsgData = (CFDataRef)[[self.faxHistoryItemDict objectForKey:@"msg"] dataUs

RE: XCode 3.1 compiler doesn't like CFDataRef bridge to (NSData *)object.

2008-11-13 Thread Etienne Guérard
Did you mean a cast to (CFDataRef) ? -Original Message- CFDataRef faxMsgData = (NSData *)[[self.faxHistoryItemDict objectForKey:@"msg"] dataUsingEncoding: NSUTF8StringEncoding]; I get the same warning with/without the (NSData *) cast.

XCode 3.1 compiler doesn't like CFDataRef bridge to (NSData *) object.

2008-11-13 Thread Lee, Frederick (Ric)
Greetings: The following code: CFDataRef faxMsgData = (NSData *)[[self.faxHistoryItemDict objectForKey:@"msg"] dataUsingEncoding: NSUTF8StringEncoding]; CGDataProviderRef faxMsgDataRef = CGDataProviderCreateWithCFData(faxMsgData); gives me the following compiler warning: .

Help mangling my server URL

2008-11-13 Thread David
I'm setting up help for my application to have priority for a server copy. In Help Indexer I've specified my remote root as http://foo/help/1.0/ and told it to prefer network files to local files. When I run the application and try to look at help it says that "/help/1.0index.html" could not be fo

core data + bindings + custom view ?

2008-11-13 Thread eblugamma
heres a little more detail: I have an NSControl subclass that maintains a list of cells, and an NSMutableArray called "content". I have successfully bound its "content" to the core data based array controller's "arrangedObjects" array. I thought that was all I needed to do to get bindings wo

Animating frame width on UIButton with background image

2008-11-13 Thread Bryan Hansen
Is it possible to animate the width of a UIButton of UIButtonStyleCustom type? I have an animation on frame size which works fine when the UIButton is a UIButtonTypeRoundedRect. But has no visible affect when I am using a UIButtonStyleCustom with background image. I am trying to use a backg

Re: Mysterious warning [SOLVED]

2008-11-13 Thread Uli Kusterer
On 12.11.2008, at 12:30, Graham Cox wrote: lvalp->val = strtod( --wptr, &wptr ); "warning: operation on 'wptr' may be undefined" For a detailed description of why this is bad, see: http://zathras.de/blog-c-parameter-evaluation-order.htm Cheers, -- Uli Kusterer "The Witnesses of Teac

reorderable ( outline | collection ) view

2008-11-13 Thread René v Amerongen
Hi all, Not yet a complete cocoa question, but I did see last week somewhere in an app an one column view. In this view there where other views vertical drag-able/reorder-able. When you did drag a view you saw the background getting solid grey and the dragging view was getting transparent, t

Re: Weird bug in IB...

2008-11-13 Thread Uli Kusterer
On 13.11.2008, at 07:17, Jean-Nicolas Jolivet wrote: Any particular reasons why my label will always show up behind my tableview no matter what I do?? The drawing order of sibling views in AppKit was never guaranteed to be well-defined. In plain English that means the only drawing order

Re: IKImageBrowserView with NSArrayController bindings

2008-11-13 Thread Matt Gough
On 13 Nov 2008, at 11:25, Florian Soenens wrote: NSLog([[arrayController selectionIndexes] description]); Not related to your problem, but this style of NSLog has a potential pitfall if the description method were to return a string with any of the supported formatting sequences i

Re: IKImageBrowserView with NSArrayController bindings

2008-11-13 Thread Florian Soenens
One more thing on this, if i bind an nstableview to my NSArrayController (to just display the path to the image object) the arrayController does reflect the changes, like so: - (void)tableViewSelectionDidChange:(NSNotification *)aNotification { NSLog([[arrayController selectionIndexes

Re: IKImageBrowserView with NSArrayController bindings

2008-11-13 Thread Florian Soenens
I'm sorry, i was typing this out of my head in mail. Here's what i did: - (void) imageBrowserSelectionDidChange:(IKImageBrowserView *) aBrowser { [arrayController setSelectionIndexes:[aBrower selectionIndexes]]; NSLog([[arrayController selectionIndexes] description]); } Any ideas

Re: IKImageBrowserView with NSArrayController bindings

2008-11-13 Thread Quincey Morris
On Nov 13, 2008, at 01:29, Florian Soenens wrote: - (void) imageBrowserSelectionDidChange:(IKImageBrowserView *) aBrowser { NSLog([[arrayController selectedIndex] description]); } The problem is that the NSArrayController always logs the same index, no mather what item i select in d

Re: Again about NSTableView and NSArrayController bindings

2008-11-13 Thread Quincey Morris
On Nov 13, 2008, at 01:05, Michele Barboni wrote: Now, in an awakeFromNib: my application connect and query a MySQL database, retrieve entries and store them as MyCustomClass instances, then call addObject: on the NSMutableArray table.. but nothing appears in my NSTableView.. What am I m

IKImageBrowserView with NSArrayController bindings

2008-11-13 Thread Florian Soenens
Hi list, i have an IKImageBrwoserView bound to an NSArrayController of objects. The objects all conform to the IKImagebrowserItem protocol. When running my application, all the images display correctly in the browser view, this al works fine, BUT: In the IKImageBrowserDelegate, i implemented

Re: NSDistantObject in Core Data

2008-11-13 Thread Quincey Morris
On Nov 12, 2008, at 23:53, Bridger Maxwell wrote: I am creating a server in which I would like to somehow add a relationship to an NSDistantObject in my Core Data object graph. I know NSDistantObjects can't be archived. I will have an an array of all of the live NSDistantObjects in my applic

Again about NSTableView and NSArrayController bindings

2008-11-13 Thread Michele Barboni
Hi, following Hillegass example (RaiseMan app) I'm trying to populate my NSTableView with bindings. I've a custom class, 3 attributes, call it MyCustomClass. I've an appController, where there's a NSMutableArray (called table) with instances of MyCustomClass. I've a NSTableView in IB, 3 co

Re: Thread programming

2008-11-13 Thread Jean-Daniel Dupas
Please, read the link provided in the previous post. It describe in details how and when to setup and run a run loop. Using a runloop without understanding what it does is not a good thing, especially if you want to do multi-threading programming. Le 13 nov. 08 à 09:48, Mahaboob a écrit :

Re: NSDistantObject in Core Data

2008-11-13 Thread Sebastian Morsch
Hi, I can't answer your first question, but concerning your second one: check out NSPropertyDescription isTransient:. However, this applies to properties, not entities. I don't think entities can be transient in the true meaning of the word. But if all properties of an entity are transient

Re: Thread programming

2008-11-13 Thread Mahaboob
I'm really sorry. I forgot to attach the code. Now I'm attaching it. On 11/13/08 12:14 PM, "Stephen J. Butler" <[EMAIL PROTECTED]> wrote: > On Thu, Nov 13, 2008 at 12:18 AM, Mahaboob <[EMAIL PROTECTED]> wrote: >> I'm very new to thread programming. I tried with using NSRunLoop, but it >> can't s

Re: Weird bug in IB...

2008-11-13 Thread Quincey Morris
On Nov 12, 2008, at 23:24, Jean-Nicolas Jolivet wrote: One quick question, how can I modify my TextView's z-order? I'm looking at NSView's methods but can't seem to find one that does that? (I'm probably just missing it since NSView's got a good bunch of'em!... :) I always did it in IB bef

Re: Weird bug in IB...

2008-11-13 Thread Sherm Pendley
On Nov 13, 2008, at 1:17 AM, Jean-Nicolas Jolivet wrote: I'm trying to place a label over a TableView and for some reason there's just no way the label will show up once I run the app... In Interface Builder it looks good (basically it's just a label saying "Drop your files here"...) I made