Re: Cocoa replacement for Carbon CompositeIconRef() for Snow Leopard 64-bit apps?

2009-10-27 Thread Peter N Lewis
On 28/10/2009, at 14:00 , Graham Cox wrote: On 28/10/2009, at 4:49 PM, Peter N Lewis wrote: a) composite two images, preferably while keeping the different resolutions of the icon b) how to dim an image similarly to kTransformDisabled I'm unclear what you mean by a), but certainly compositin

Re: Interior pointer accessor list

2009-10-27 Thread John Engelhart
On Tue, Oct 27, 2009 at 9:43 AM, Dave Keck wrote: > Hey list, > > While in the process of introducing support for GC in my app, I scoured > through the 10.5 framework headers for any methods that might return an > interior pointer. I thought I might share my findings. Here's the command I > used

Re: Adding new Core Data objects through a form

2009-10-27 Thread Jerry Krinock
On 2009 Oct 27, at 21:16, Kyle Sluder wrote: To be honest, this is a very fundamental Cocoa pattern, Martin, you should also have a look at how it's done in Apple's DepartmentAndEmployees sample project. http://developer.apple.com/mac/library/samplecode/DepartmentAndEmployees/listing13.ht

Re: waiting for async callback in main thread

2009-10-27 Thread John Engelhart
On Wed, Oct 28, 2009 at 12:21 AM, Kyle Sluder wrote: > On Tue, Oct 27, 2009 at 8:53 PM, John Engelhart > wrote: > > I would *STRONGLY* advise against doing this. While it may be perfectly > safe > > to recursively run a CFRunLoop, this says nothing about the implications > of > > doing so. At f

Re: Core Data: Undoing Cut-Paste, Drag-Drop between documents

2009-10-27 Thread Jerry Krinock
On 2009 Oct 27, at 11:53, Ben Trumbull wrote: As a user, I would never expect undo to go modifying the contents of other windows in a document based app. Take TextEdit for example. The behavior you suggest is completely inappropriate for TextEdit. Indeed, I see that in TextEdit if I drag

Re: Cocoa replacement for Carbon CompositeIconRef() for Snow Leopard 64-bit apps?

2009-10-27 Thread Graham Cox
On 28/10/2009, at 4:49 PM, Peter N Lewis wrote: So in order to convert from using IconRef to using NSImage for everything (after loading the IconRef), I need to know how to: a) composite two images, preferably while keeping the different resolutions of the icon b) how to dim an image simi

Re: Cocoa replacement for Carbon CompositeIconRef() for Snow Leopard 64-bit apps?

2009-10-27 Thread Peter N Lewis
On 27/10/2009, at 13:26 , Dalmazio Brisinda wrote: I'm working with a Snow Leopard 64-bit app that contains a Finder- like file browser that uses Carbon IconRef's. I'm trying to get the icons for the selected file with a custom overlay based on the current file selection and Icon Services. Th

Re: Magic Mouse and NSTouch

2009-10-27 Thread Scott Anguish
There should be a tech note shortly that describes these capabilities. On Oct 21, 2009, at 2:21 AM, Chunk 1978 wrote: > i would be surprised if it didn't support NSTouch. although you may have to > wait for 10.6.2: > http://www.macrumors.com/2009/10/20/magic-mouse-user-guide-suggests-mac-os-x-1

Re: Strange behaviour with NSTableView binded to NSArrayController with NSSet as content

2009-10-27 Thread Kyle Sluder
On Tue, Oct 27, 2009 at 11:27 AM, Christian Ziegler wrote: > I got an NSTableView binded to an NSArrayController (Values, Sort > Descriptors, Selection), which itself is binded to a class' NSMutableSet via > the ContentSet binding. The NSTableView is filled via Drag & Drop or > File/Open. For an i

Re: waiting for async callback in main thread

2009-10-27 Thread Kyle Sluder
On Tue, Oct 27, 2009 at 8:53 PM, John Engelhart wrote: > I would *STRONGLY* advise against doing this. While it may be perfectly safe > to recursively run a CFRunLoop, this says nothing about the implications of > doing so.  At first glance, it would seem that everything a run loop "does" > as a r

Re: Adding new Core Data objects through a form

2009-10-27 Thread Kyle Sluder
On Tue, Oct 27, 2009 at 6:58 PM, Martin Cote wrote: > I'm trying to do something really simple with Core Data, but I can't > find a graceful way to do it. Perhaps we can agree on "idiomatic?" Which is quite different from "idiot-o-matic," though I always seem to read it that way. ;-) > I would

Re: waiting for async callback in main thread

2009-10-27 Thread John Engelhart
On Tue, Oct 27, 2009 at 7:37 PM, Jean-Daniel Dupas wrote: > > Le 27 oct. 2009 à 21:47, Alexander Cohen a écrit : > > > >> On Oct 27, 2009, at 3:42 PM, Jens Alfke wrote: >> >> >>> On Oct 27, 2009, at 12:11 PM, Alexander Cohen wrote: >>> >>> 100% agree with you, and that's what i would normally do.

Re: Problem with allocating memory

2009-10-27 Thread Rob Keniger
On 28/10/2009, at 1:31 PM, Stephen J. Butler wrote: > Because you're printing the address of the stack variable myString, > which is the same place on the stack every time. Not to mention the fact that you're leaking a string on each iteration through the loop. -- Rob Keniger _

Re: [iPhone] Why so many calls?

2009-10-27 Thread Bryan Henry
Have you tried a table with 99 sections to see whether that scaling is really the case? While I agree that some of those are likely unnecessary calls that could be optimized away, this is all more the subject of an enhancement report for Radar than anything else. - Bryan On Oct 27, 2009,

Re: [iPhone] Why so many calls?

2009-10-27 Thread Kyle Sluder
On Tue, Oct 27, 2009 at 5:22 PM, Phil Curry <3lues...@gmail.com> wrote: > Seems like an incredible waste of effort. Just curious if anyone knows why > this happens. If you don't know why, just say so. I don't work for Apple, and have never seen the UITableView source code. So in the strictest sen

Re: Problem with allocating memory

2009-10-27 Thread BJ Homer
> > > > NSLog(@"%d", &myString); > Change this line to: NSLog(@"%p", myString); that will print the value of the pointer, which you'll see changing. -BJ ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or mode

Re: Problem with allocating memory

2009-10-27 Thread Stephen J. Butler
On Tue, Oct 27, 2009 at 12:36 PM, Michael Abendroth wrote: > #import > > int main (int argc, const char * argv[]) { > >     NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; > > for (int i = 0; i < 3; i++) { > > NSMutableString* myString = [[NSMutableString alloc] > initWithString:[[NS

Adding new Core Data objects through a form

2009-10-27 Thread Martin Cote
Hello, I'm trying to do something really simple with Core Data, but I can't find a graceful way to do it. I would like to show a form to my user that they can fill, and when they press 'OK', a new managed object is created. This can be done very simply, but I would like to use IB bindings as mu

Re: [iPhone] Why so many calls?

2009-10-27 Thread Phil Curry
But can anyone explain all the other duplicate calls? Why does it matter? If you have eight or nine sections it makes perfect sense. Or you could have one section and it needs to draw multiple times, and whoever designed the API didn't want to go through the expense of a KVO observation, inste

Strange behaviour with NSTableView binded to NSArrayController with NSSet as content

2009-10-27 Thread Christian Ziegler
Hi all! I have a strange problem which I can't figure out. I got an NSTableView binded to an NSArrayController (Values, Sort Descriptors, Selection), which itself is binded to a class' NSMutableSet via the ContentSet binding. The NSTableView is filled via Drag & Drop or File/Open. For an i

outline view with mail style folder counts in rounded rectangle

2009-10-27 Thread Richard
hey i am working on an application that has an NSOutlineView as a left panel. when searches are performed, a new entry is added to the outline view. what i would like is for the search entry to have a little blue rounded rectangle to the right that contains the number of items that have been found

Problem with allocating memory

2009-10-27 Thread Michael Abendroth
Hi everybody, I wrote this extremely simple program: #import int main (int argc, const char * argv[]) {     NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; for (int i = 0; i < 3; i++) { NSMutableString* myString = [[NSMutableString alloc] initWithString:[[NSDate date] description

Re: Multithreading NSBezierPath creation and stroking. Measuring performance

2009-10-27 Thread Karolis Ramanauskas
Just noticed I forgot to lock: [plotBitmaps addObject:bitmap]; ___ 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 He

Re: Alternative to stringWithContentsOfURL

2009-10-27 Thread Roland King
I would agree that the gzip is not likely his issue. If the server were sending a gzipped response he wouldn't get an Internal Error 500 string in his response, he'd get a bunch of garbage zipped data. The only way in which that *might* be an issue is if the server were set up *only* to send g

Re: Alternative to stringWithContentsOfURL

2009-10-27 Thread Wim Lewis
On Oct 27, 2009, at 8:16 AM, Dave Carrigan wrote: On Oct 27, 2009, at 8:11 AM, James Lin wrote: I am still having the mysterious error of "Internal Error 500" message returned from stringWithContentsOfURL. If "Internal Error 500" is the contents of the string after you create it using +str

Re: Alternative to stringWithContentsOfURL

2009-10-27 Thread Jens Alfke
On Oct 27, 2009, at 4:40 PM, John Pannell wrote: Some web servers are configured to compress the reply (i.e. zip/ gzip) for transmission, and then the client will decompress and display. NSString is not a client that is prepared to do this, however. Here is some old code: Are you sure th

Re: Alternative to stringWithContentsOfURL

2009-10-27 Thread John Pannell
Hi James- From your description ("Internal Error 500") it sounds like the request you are sending is not working when submitted to the server. Make sure any strings used to form the URL for the request are passed through stringByAddingPercentEscapesUsingEncoding: What follows is likely n

Re: waiting for async callback in main thread

2009-10-27 Thread Jean-Daniel Dupas
Le 27 oct. 2009 à 21:47, Alexander Cohen a écrit : On Oct 27, 2009, at 3:42 PM, Jens Alfke wrote: On Oct 27, 2009, at 12:11 PM, Alexander Cohen wrote: 100% agree with you, and that's what i would normally do. But unfortunately, this time i must wait in the mainthread for the callback.

Re: Interrupting auto-expansion in NSOutlineView

2009-10-27 Thread Corbin Dunn
> >> >>> >>> The NSDraggingDestination protocol has a draggingEnded: method, which the >>> documentation says can be used to cancel auto-expansion of a drag >>> destination. >> >> This may be a documentation bug. Can you point me to the location where you >> read this? > > file:///Developer

Odd window behavior LSUIElement=1

2009-10-27 Thread Chris Idou
I have an app running without dock icon, and it exhibits odd behavior. Let's say I have existing applications running, "A" with a window on top of application "B". My program pops up a window and forces it to the front. So I have "MyApp" on top of "A" on top of "B". Now I click on Application

FSMountServerVolumeSync Authentication problem

2009-10-27 Thread Kevin Bracey
I found using Applescript far easier for this task. In Cocoa wait for the mount [[[NSWorkspace sharedWorkspace] notificationCenter] addObserver:self selector:@sel

Re: Alternative to stringWithContentsOfURL

2009-10-27 Thread Andy Lee
On Oct 27, 2009, at 11:11 AM, James Lin wrote: I am still having the mysterious error of "Internal Error 500" message returned from stringWithContentsOfURL. Are you passing the URL you think you are passing? If you put this line in your code NSString *result = [NSString stringWithContents

Re: Mysterious crash in objc_msgSend in GC app

2009-10-27 Thread Bill Bumgarner
On Oct 27, 2009, at 3:08 PM, Sean McBride wrote: > nor do I do any dynamic > loading nor unloading of bundles. You don't, but there appear to be certain QuickTime components -- decoder/encoder modules, perchance? -- that do and will inside your application if you use QuickTime. There may be o

Re: Mysterious crash in objc_msgSend in GC app

2009-10-27 Thread Sean McBride
On 10/27/09 1:57 PM, Greg Parker said: >NSSpeechRecognizer passes `self` to a void* callback context >parameter. Under GC it should use CFRetain() to keep itself alive >until the callback returns, but on Leopard it still used [self >retain]. You get the crash when GC throws the object away and the

Re: [iPhone] Why so many calls?

2009-10-27 Thread Kyle Sluder
On Mon, Oct 26, 2009 at 9:34 AM, Phil Curry <3lues...@gmail.com> wrote: > But can anyone explain all the other duplicate calls? Why does it matter? If you have eight or nine sections it makes perfect sense. Or you could have one section and it needs to draw multiple times, and whoever designed t

Re: FSMountServerVolumeSync Authentication problem

2009-10-27 Thread Sandro Noël
In addition to my previous problem after installing Leopard on another machine, i've tried multiple ways of mounting the remote drive The first url i use is constructed like afp://server/share The login and passwords are passed as parameters to the FSMountServerVolumeSync function. this one

Re: waiting for async callback in main thread

2009-10-27 Thread Alexander Cohen
On Oct 27, 2009, at 3:42 PM, Jens Alfke wrote: On Oct 27, 2009, at 12:11 PM, Alexander Cohen wrote: 100% agree with you, and that's what i would normally do. But unfortunately, this time i must wait in the mainthread for the callback. I know it's wrong, but this time i've gotta do it. T

Re: Mysterious crash in objc_msgSend in GC app

2009-10-27 Thread Greg Parker
On Oct 27, 2009, at 1:24 PM, Sean McBride wrote: On 10/27/09 11:30 AM, Greg Parker said: I'm able to determine that the selector was from libobjc.A.dylib but I don't know which (the uuid from dwarfdump does not match mine). The selector is `_handleRecognitionDoneWithRecognitionResult:`, whic

Re: Mysterious crash in objc_msgSend in GC app

2009-10-27 Thread Sean McBride
On 10/27/09 11:30 AM, Greg Parker said: >> I'm able to determine that the selector was from libobjc.A.dylib but I >> don't know which (the uuid from dwarfdump does not match mine). > >The selector is `_handleRecognitionDoneWithRecognitionResult:`, which How did you determine that? Like the repor

Re: UIButton label

2009-10-27 Thread Dave DeLong
Because the proper way to set the text of a UIButton is setTitle:forState: Looking at the documentation, it looks like "button.titleLabel.text" is for querying what the title happens to be at the time (without knowing the state). Dave On Oct 27, 2009, at 1:43 PM, DKJ wrote: I'm having a

Re: UIButton label

2009-10-27 Thread DKJ
I'm doing this instead: [self.updateButton setTitle:dateDisplay forState:UIControlStateNormal]; and it works. But I'd still like to know why the other code didn't. dkj On 2009-10-27, at 12:43 , DKJ wrote: I'm having a ridiculous amount of trouble changing the text of a UIButton tit

UIButton label

2009-10-27 Thread DKJ
I'm having a ridiculous amount of trouble changing the text of a UIButton title. I have the button connected to the file's owner (a UIViewController) in IB, and I've defined this property: @property(nonatomic,retain) IBOutlet UIButton *button; The button's action method works, so I know

Re: waiting for async callback in main thread

2009-10-27 Thread Jens Alfke
On Oct 27, 2009, at 12:11 PM, Alexander Cohen wrote: 100% agree with you, and that's what i would normally do. But unfortunately, this time i must wait in the mainthread for the callback. I know it's wrong, but this time i've gotta do it. Then use a while loop to run the runloop until your

Re: Bold and Italic For Dictionary Font Attributes (Hillegass Chapter 20, Challenge 2)

2009-10-27 Thread Jens Alfke
On Oct 27, 2009, at 4:59 AM, Chunk 1978 wrote: attributes = [[NSMutableDictionary alloc] init]; [attributes setObject:[NSFont fontWithName:@"Helvetica" size:75] forKey: NSFontAttributeName]; [attributes setObject:[NSColor redColor] forKey: NSForegroundColorAttributeName]; [attributes setO

Re: How to perform upgrade testing for iPhone App

2009-10-27 Thread Luke the Hiesterman
Installing your 1.1 candidate app over the 1.0 app via xcode should be a good equivalent to the user scenario. Luke On Oct 27, 2009, at 10:58 AM, john chen wrote: Greetings, Say I have app version 1.0 released on the app store. Now I am planning on a 1.1 upgrade. What is the test that close

Re: How to perform upgrade testing for iPhone App

2009-10-27 Thread Fritz Anderson
On 27 Oct 2009, at 12:58 PM, john chen wrote: Say I have app version 1.0 released on the app store. Now I am planning on a 1.1 upgrade. What is the test that closest matched to real app stores download and upgrade? I heard testing with AdHoc versions that is dragged dropped in iTunes is a simil

Re: waiting for async callback in main thread

2009-10-27 Thread Alexander Cohen
On Oct 27, 2009, at 2:04 PM, Jens Alfke wrote: On Oct 27, 2009, at 10:40 AM, Alexander Cohen wrote: Now, i would like to be able to wait for that callback on the main thread like this: [object addObserverForCallback] ... wait for callback ... continue on processing with the state of the o

re: Core Data: Undoing Cut-Paste, Drag-Drop between documents

2009-10-27 Thread Ben Trumbull
> Although some users might expect that the employee moves from Document > 2 back to Document 1, that does not happen. Because each document has > its own managed object context and own undo manager, because Document > 2 is active, the employee disappears from there. But order to make it

Re: Interrupting auto-expansion in NSOutlineView

2009-10-27 Thread Don Altman
Thanks for the very helpful reply. See below. On Oct 27, 2009, at 10:22 AM, Corbin Dunn wrote: On Oct 27, 2009, at 12:49 AM, Don Altman wrote: Hi, Does anyone have any insight as to how one could interrupt the auto- expansion of an item of an NSOutlineView instance? This occurs after a d

Re: Using UISwitch within TabBar Application [iPhone]

2009-10-27 Thread Alexander Spohr
Am 27.10.2009 um 15:51 schrieb Mick Walker: I set the Files Owner in IB to SocialViewController and wire up all of the outlets. However when I run the program, all runs fine until I attempt to switch to the view in question, I get the error: 'NSUnknownKeyException', reason: '[ setValue:f

Re: Mysterious crash in objc_msgSend in GC app

2009-10-27 Thread Greg Parker
On Oct 27, 2009, at 10:43 AM, Sean McBride wrote: Occasionally, my GC app crashes in objc_msgSend with none of my code in the backtrace. This only happens to customers; I've never caught it in gdb. I've read through Greg's awesome "So you crashed in objc_msgSend()" article, but I still don'

Re: Alternative to stringWithContentsOfURL

2009-10-27 Thread Jens Alfke
On Oct 27, 2009, at 8:35 AM, James Lin wrote: The sticky point right now is: the same url string used with stringWithContentsOfURL works perfectly when accessed using a browser. Which means my php script is in perfect working order. Dude, I answered this for you last week, explaining plausi

Re: waiting for async callback in main thread

2009-10-27 Thread Jens Alfke
On Oct 27, 2009, at 10:40 AM, Alexander Cohen wrote: Now, i would like to be able to wait for that callback on the main thread like this: [object addObserverForCallback] ... wait for callback ... continue on processing with the state of the object The only way i see i can do that is by runn

Re: Mysterious crash in objc_msgSend in GC app

2009-10-27 Thread Jens Alfke
On Oct 27, 2009, at 10:43 AM, Sean McBride wrote: Thread 0 Crashed: 0 libobjc.A.dylib 0x7fff81d86ad9 objc_msgSend + 41 1 com.apple.CoreFoundation0x7fff81eba969 __CFMessagePortPerform + 185 2 com.apple.CoreFoundation0x7fff81eda12c CFRun

How to perform upgrade testing for iPhone App

2009-10-27 Thread john chen
Greetings, Say I have app version 1.0 released on the app store. Now I am planning on a 1.1 upgrade. What is the test that closest matched to real app stores download and upgrade? I heard testing with AdHoc versions that is dragged dropped in iTunes is a similar upgrade situation, but was wonderi

Re: Mysterious crash in objc_msgSend in GC app

2009-10-27 Thread Bill Bumgarner
On Oct 27, 2009, at 10:43 AM, Sean McBride wrote: > Occasionally, my GC app crashes in objc_msgSend with none of my code in > the backtrace. This only happens to customers; I've never caught it in gdb. > > I've read through Greg's awesome "So you crashed in objc_msgSend()" > article, but I stil

Mysterious crash in objc_msgSend in GC app

2009-10-27 Thread Sean McBride
Hi all, Occasionally, my GC app crashes in objc_msgSend with none of my code in the backtrace. This only happens to customers; I've never caught it in gdb. I've read through Greg's awesome "So you crashed in objc_msgSend()" article, but I still don't have a clue. :( I'm able to determine that t

waiting for async callback in main thread

2009-10-27 Thread Alexander Cohen
Hi, I'm working with and SDK that lets me observe objects. When the state of the object changes i receive a callback. The docs for the SDK say that the main NSRunLoop needs to stay active and responsive for me to receive the callbacks. Now, i would like to be able to wait for that callbac

Re: Interrupting auto-expansion in NSOutlineView

2009-10-27 Thread Corbin Dunn
On Oct 27, 2009, at 12:49 AM, Don Altman wrote: > Hi, > > Does anyone have any insight as to how one could interrupt the auto-expansion > of an item of an NSOutlineView instance? This occurs after a drag operation > enters the item's display area without leaving, for some predetermined time.

Re: NSTableView Always Undesirably Selects First Row when It Loses Key Focus

2009-10-27 Thread Grant Erickson
On 10/26/09 5:08 PM, Grant Erickson wrote: > On 10/23/09 4:31 PM, Grant Erickson wrote: >> I have a device list in my preference pane implemented as a NSTableView under >> 10.5, not unlike the list of network devices in Apple's Network preference >> pane. >> >> Unlike the Network table, in my case

Using UISwitch within TabBar Application [iPhone]

2009-10-27 Thread Mick Walker
Hi, I am looking for a little help on my iphone project. I am beginner and am having trouble with the UISwitch control. I wasn't sure if I should post to this list as it isn't specifically for Cocoa Touch, so if I am posting in the wrong place, please accept my apologies. I have a tab bar

Interrupting auto-expansion in NSOutlineView

2009-10-27 Thread Don Altman
Hi, Does anyone have any insight as to how one could interrupt the auto- expansion of an item of an NSOutlineView instance? This occurs after a drag operation enters the item's display area without leaving, for some predetermined time. The item's outlineView:child:ofItem: method will then

FSMountServerVolumeSync Authentication problem

2009-10-27 Thread Sandro Noël
Greetings. I'm having some problems with FSMountServerVolumeSync authentication on some leopard systems since i compiled my application on snow leopard. machines trying to mount shares off other machines in AFP mode return error -5002 SMB, FTP, CIFS, HTTP still work just fine i did not find

[iPhone] Why so many calls?

2009-10-27 Thread Phil Curry
I did this just for grins to see what I came up with. Boy was I surprised! Here's a listing of the calls made loading a table with 2 sections where the first section has 1 row and the second has 2 rows. Each section has a header title and a footer title. NavBasedTestBed37232:20b >> Object

Re: Passing arrays via WSMethodInvocationInvoke() [WebServicesCore]

2009-10-27 Thread Dan Korn
Quoting myself: 1. Is there any Cocoa object, or combination of objects, that I can use to generate the required XML without having to call WSMethodInvocationAddSerializationOverride()? I still haven't found an answer to this. 2. Is there something built-in I can call in my serialization ove

Re: Alternative to stringWithContentsOfURL

2009-10-27 Thread Jeremy Pereira
On 27 Oct 2009, at 15:11, James Lin wrote: Hi all, I am still having the mysterious error of "Internal Error 500" message returned from stringWithContentsOfURL. I am using stringWithContentsOfURL to call a php script that add an entry to MySQL database. My ISP claims that they have rem

Re: first responder being clobbered

2009-10-27 Thread Michael Link
It is different, UIWindow doesn't have a method -makeFirstResponder. When I was trying to figure this out I had assumed UIWindow had a firstResponder outlet just like NSWindow but it doesn't. Of course it's possible to extend the class to access the iv. -- Michael On Oct 26, 2009, at 10:59

Re: programmatically determining whether a system would run a GC only app

2009-10-27 Thread Nick Zitzmann
On Oct 27, 2009, at 10:04 AM, Nick Rogers wrote: is it possible to do so, if yes how? Just check the OS version, because they're correlated. Leopard supports GC-enabled apps on all four CPU architectures; Tiger and earlier, as well as the iPhone OS, don't support GC on any architecture.

Re: keyPathsForValuesAffectingValueFor: not updating immediately

2009-10-27 Thread I. Savant
On Oct 26, 2009, at 10:03 PM, Brad Gibbs wrote: I did read the documentation, which is why I used +keyPathsForValuesAffectingFullAddress. I also tried +keyPathsForValuesAffectingValueForFullAddress: Both methods work, but only after changing the view and then coming back to it. Read

Re: keyPathsForValuesAffectingValueFor: not updating immediately

2009-10-27 Thread Brad Gibbs
Thanks for the pointers. I need to learn to rely on the debugger more than log messages. It also turns out that I had the method wrong. Although + (NSSet) keyPathsForValuesAffectingValueFor: doesn't create any errors, it doesn't get called. The ValueFor near the end of the method is ex

programmatically determining whether a system would run a GC only app

2009-10-27 Thread Nick Rogers
hi, is it possible to do so, if yes how? googled, seen gestalt, sysctl()... no yield. thanks Nick ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderator

Re: keyPathsForValuesAffectingValueFor: not updating immediately

2009-10-27 Thread Jim Correia
On Tue, Oct 27, 2009 at 11:39 AM, Brad Gibbs wrote: > I don't think there's anything wrong with the method -- I've used it > successfully in other apps and have seen it work in Apple sample apps, it > just isn't working in this particular case. I'm sure that there's something > wrong on my end.

Re: Alternative to stringWithContentsOfURL

2009-10-27 Thread Roland King
that's what I'm trying to tell you. Its NOT the same. It's different in some way, it's sending a cookie, you've messed up the URL, you've encoded something wrong, there is a header you missed, I have no idea what the thing is but something is different. stringWithContentsOfURL: is a simple

Re: Alternative to stringWithContentsOfURL

2009-10-27 Thread Jean-Daniel Dupas
If you want something closer than what the browser does, use the URL Loading System: http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/URLLoadingSystem/URLLoadingSystem.html Le 27 oct. 2009 à 16:35, James Lin a écrit : The sticky point right now is: the same url string use

Re: Transitioning to GC-supported

2009-10-27 Thread Sean McBride
On 10/26/09 8:38 AM, Jens Alfke said: >> 1. Apply workaround for interior pointers by '[containingObject >> self];' at >> the end of the method, to keep the containing object alive. > >A valid point, but in my experience this is a rare problem: I have >never run into an instance of a bug caused by

Re: Alternative to stringWithContentsOfURL

2009-10-27 Thread jonat...@mugginsoft.com
I would fire up a protocol analyser like tcpdump or wireshark and see how the requests differ - particularly the headers. Regards Jonathan Mitchell Developer http://www.mugginsoft.com On 27 Oct 2009, at 15:35, James Lin wrote: The sticky point right now is: the same url string used with

Re: keyPathsForValuesAffectingValueFor: not updating immediately

2009-10-27 Thread Brad Gibbs
I don't think there's anything wrong with the method -- I've used it successfully in other apps and have seen it work in Apple sample apps, it just isn't working in this particular case. I'm sure that there's something wrong on my end. Just looking for a little help in figuring out what t

Re: Alternative to stringWithContentsOfURL

2009-10-27 Thread James Lin
The sticky point right now is: the same url string used with stringWithContentsOfURL works perfectly when accessed using a browser. Which means my php script is in perfect working order. But when accessed using stringWithContentsOfURL, then it doesn't work! I can tell my ISP is not going to ta

Re: Alternative to stringWithContentsOfURL

2009-10-27 Thread Roland King
On 27-Oct-2009, at 11:16 PM, Dave Carrigan wrote: On Oct 27, 2009, at 8:11 AM, James Lin wrote: Hi all, I am still having the mysterious error of "Internal Error 500" message returned from stringWithContentsOfURL. If "Internal Error 500" is the contents of the string after you create

Re: Alternative to stringWithContentsOfURL

2009-10-27 Thread Dave Carrigan
On Oct 27, 2009, at 8:11 AM, James Lin wrote: Hi all, I am still having the mysterious error of "Internal Error 500" message returned from stringWithContentsOfURL. If "Internal Error 500" is the contents of the string after you create it using +stringWithContentsOfURL, then the problem i

Alternative to stringWithContentsOfURL

2009-10-27 Thread James Lin
Hi all, I am still having the mysterious error of "Internal Error 500" message returned from stringWithContentsOfURL. I am using stringWithContentsOfURL to call a php script that add an entry to MySQL database. My ISP claims that they have removed all security restrictions on my php scr

Interior pointer accessor list

2009-10-27 Thread Dave Keck
Hey list, While in the process of introducing support for GC in my app, I scoured through the 10.5 framework headers for any methods that might return an interior pointer. I thought I might share my findings. Here's the command I used - perhaps someone could improve upon it: clear; printf "\n"; f

Re: Bold and Italic For Dictionary Font Attributes (Hillegass Chapter 20, Challenge 2)

2009-10-27 Thread Graham Cox
On 27/10/2009, at 10:59 PM, Chunk 1978 wrote: while the following works, this seems to me like an awful lot of code i've written just to change the font mask. any suggestions? If you can't or won't use the Font Panel for some reason, what you have is about right and will get worse as yo

Bold and Italic For Dictionary Font Attributes (Hillegass Chapter 20, Challenge 2)

2009-10-27 Thread Chunk 1978
while the following works, this seems to me like an awful lot of code i've written just to change the font mask. any suggestions? -=-=-=-=- - (void)prepareAttributes { NSShadow *shadow = [[NSShadow alloc] init]; [shadow setShadowOffset:NSMakeSize(-3, -3)]; [shadow setShadowBlurRadius:5]; [s

NSEventTrackingRunLoopMode and mouseDown

2009-10-27 Thread Oleg Krupnov
Hi, I'd like to block my application while an animation is in progress. By "blocking" I mean that the app does not respond and discards any kind of mouse or keyboard input except mouseDragged and mouseUp events, just in case the user is dragging something. For this purpose I use a run loop in NSEv

Re: Multithreading NSBezierPath creation and stroking. Measuring performance

2009-10-27 Thread Karolis Ramanauskas
attached is the .m file with relevant code... KR2DScatterPlotViewPlot.m Description: Binary data ___ 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 coco

Multithreading NSBezierPath creation and stroking. Measuring performance

2009-10-27 Thread Karolis Ramanauskas
Good day, For the last few days I've been working on my own "2D Scatter Plot View" all is going great and it looks nice: http://i729.photobucket.com/albums/ww297/karolisr/Screenshot2009-10-27at12636AM.png At this point I started optimizing drawing, so I implemented some cacheing, etc. and I see