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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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.
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
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
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
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.
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
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
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
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
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
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
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
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
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.
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
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
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
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
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
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
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
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'
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
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
> 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
I found using Applescript far easier for this task.
In Cocoa wait for the mount [[[NSWorkspace sharedWorkspace]
notificationCenter] addObserver:self
selector:@sel
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
>
>>
>>>
>>> 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
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.
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
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
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
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
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
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
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
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
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
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
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
>
>
> > 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
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
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,
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
_
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.
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
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
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
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
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
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
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
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
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
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
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
87 matches
Mail list logo