In the code below, the TIFF gets saved correctly (transparent but for
the red square), but when I query the pixel at (40,40) which should be
in the middle of the red square, I get a black pixel (r==g==b==a==0.0):
offscreenRep = [[NSBitmapImageRep alloc] initWithBitmapDataPlanes:nil
On Sep 30, 2009, at 7:50 PM, Mark Hurley wrote:
> Still learning the Cocoa Window Architecture...
> Goal: I want to separate my MainWindow out of MainMenu.xib into its own
> .xib: MainView.xib.
>
> 1) I create a new Cocoa Application (not document-based)
>
> 2) I create a MainWindow.xib and M
On Oct 1, 2009, at 1:22 AM, David Hirsch wrote:
> In the code below, the TIFF gets saved correctly (transparent but for the red
> square), but when I query the pixel at (40,40) which should be in the middle
> of the red square, I get a black pixel (r==g==b==a==0.0):
> offscreenRep = [[NSB
I am wondering if there is a simple way to find out when my
application is running for the VERY FIRST TIME on an iPhone?
So that I can set an integer variable once only at this moment...
What's the best way to do this?
Also, NSUserDefaults supports this basic capability. I'm just
wondering
> float r,g,b,a;
> [pixelColor getRed:&r green:&g blue:&b alpha:&a];
-getRed:... accepts CGFloats as arguments, not floats. Depending on
your architecture, you're supplying a pointer to an incorrectly-sized
variable, and the bug you're seeing is the result of this error.
If you NSLo
No they aren't - NSUserDefaults is the approach I use for this kind of
thing
Sent from my iPhone
On 1 Oct 2009, at 09:32, Todd Heberlein wrote:
I am wondering if there is a simple way to find out when my
application is running for the VERY FIRST TIME on an iPhone?
So that I can set an int
An app our company is developing is showing odd behavior and crashes
under 10.6, but not under 10.5.
I've done some digging and figured out that a major contributor to the
crash is the following routine:
(I've changed it slightly to get rid of unimportant details and make
it more readable
Hi All,
So clearly the UIGraphicsBeginImageContext() set of calls are not
thread safe, I was attempting to use them in an NSOperation and they
are causing a crash, further research has shown me that I need to drop
down into the CG calls to do what I want to do.
.and presumably I coul
Hi Joshua,
You're welcome, but you need to also learn some stuff on your own.
1. Browse the docs: NSArray does not have a contains: method, it has a
containsObject: method. My mistake, but one that's easy to spot.
2. Check the method signatures for CalCalendar store. I believe I gave
you the
Duncan Champney wrote:
An app our company is developing is showing odd behavior and crashes
under 10.6, but not under 10.5.
I've done some digging and figured out that a major contributor to the
crash is the following routine:
(I've changed it slightly to get rid of unimportant details and mak
Hi again-
I got no responses to my query, which probably means I asked something
poorly, but I needed to write another NSValueTransformer for my
project (to convert dollars into pennies and back) and I saw the same
behavior so I thought I'd ask again.
To summarize: When I use my NSValueTr
On Sep 30, 2009, at 20:58, Rick Mann wrote:
On Sep 30, 2009, at 16:22:45, Rick Mann wrote:
I'm looking at ways of grouping some Core Data objects in a outline
view. What I have are 3 or 4 different entities, and I want each of
the objects of each type to appear under a parent item in the
Sorry, I accidentally posted my initial question (Doesn't one get a
compiler warning about several methods being possible?) only to
Stephen, not the list.
On 1 Oct, 2009, at 07:10, Stephen J. Butler wrote:
On Wed, Sep 30, 2009 at 10:16 PM, Colin Howarth
wrote:
Doesn't one get a compiler
On Oct 1, 2009, at 6:41 AM, Andrew wrote:
Hi All,
So clearly the UIGraphicsBeginImageContext() set of calls are not
thread safe, I was attempting to use them in an NSOperation and they
are causing a crash, further research has shown me that I need to
drop down into the CG calls to do wha
On 01/10/2009, at 10:49 PM, Paul Bruneau wrote:
But when I use the transformer on a regular NSTextField, I don't get
that benefit. It properly transforms the value and the correct value
gets stored in my model, but the reverse transformation doesn't fire
like it does when used in the table
On Oct 1, 2009, at 9:47 AM, Graham Cox wrote:
I don't have a definitive answer for you, but I've observed similar
behaviour in some of my text fields. As long as you're typing, what
you type is what the field will display. On enter/return, the value
is sent to the data model, through the tr
Paul:
On Oct 1, 2009, at 8:49 AM, Paul Bruneau wrote:
But when I use the transformer on a regular NSTextField, I don't get
that benefit. It properly transforms the value and the correct value
gets stored in my model, but the reverse transformation doesn't fire
like it does when used in the
On Sep 30, 2009, at 9:47 PM, Michael Ash wrote:
On Wed, Sep 30, 2009 at 9:39 PM, Adam R. Maxwell
wrote:
On Sep 30, 2009, at 7:15 PM, Graham Cox wrote:
On 01/10/2009, at 12:06 PM, Adam R. Maxwell wrote:
That should bring you to a helpful discussion titled "Advice for
Overriders of Metho
On Oct 1, 2009, at 10:45 AM, I. Savant wrote:
Have you tried turning on the text field's value binding's
"continuously updates value" option? Maybe even the "validates
immediately" option? I imagine the wrong combination of these
(including "off") could have something to do with it.
Thank
On Oct 1, 2009, at 10:58 AM, Paul Bruneau wrote:
Thanks for the suggestion, IS. I had in fact tried those and I tried
them again just now (in all combinations), no change.
Hmmm ... This (figure 2):
http://developer.apple.com/mac/library/DOCUMENTATION/Cocoa/Conceptual/CocoaBindings/Concepts
Jonathan, Dave-
Nothing works yet. Dave's NSLog statement prints
"NSCalibratedRGBColorSpace 0 0 0 0", and restoring the graphics
context does not help the problem. Still stumped.
-Dave
This is just as guess, but perhaps there's an issue with the drawing
not being completed and flushed ba
Hi,
Thanks, It works now I've fixed the warnings.
Cheers.
From: Stamenkovic Florijan
To: Joshua Garnham
Cc: cocoa-dev
Sent: Thursday, 1 October, 2009 13:32:20
Subject: Re: Deleting CalTasks through an Array.
Hi Joshua,
You're welcome, but you need to also l
On Sep 30, 2009, at 7:37 PM, Adam R. Maxwell wrote:
Does the Cocoa memory management documentation cover functions? It
specifically refers to "...a method whose name begins with...". I
wonder if something like the CF "Create" rule applies to Foundation?
No — Foundation functions almost n
Well, I can work around it but I don't understand this at all.
Apparently the context is flipped, or getPixelAtX:y: is flipped, or
something. In this code, the first NSLog statement gives all zeros,
and the second gives the intended red color. However flipped returns
NO. Any ideas as to
On Sep 30, 2009, at 7:53 AM, Mike Abdullah wrote:
-[NSArrayController selectedObjects] does not return proxies, it
returns the real thing. On the other hand:
-[NSArrayController selection] returns a proxy that represents the
overall selection
NSTreeController uses proxies to represent its
Can you please elaborate on this a bit more?
I am already using NSUserDefaults for my preferences values.
But I fail to see how this apply to determining if an Application is
launched for the very first time...
What do I do?
Check to see if an NSUserDefault item exists?
Thanks for the help..
Just use a BOOL in your NSUserDefaults
On Thu, Oct 1, 2009 at 11:24 AM, James Lin wrote:
> Can you please elaborate on this a bit more?
>
> I am already using NSUserDefaults for my preferences values.
> But I fail to see how this apply to determining if an Application is
> launched for the
You set the default of a NSUserDefault. Set that default to FALSE.
Then on startup, check the value. If its FALSE - set it to TRUE and
you know its the first time. Here is some from-memory typed code:
NSMutableDictionary *dictionary = [[NSMutableDictionary alloc]
initWithCapacity: 10];
[d
On Oct 1, 2009, at 05:49, Paul Bruneau wrote:
I got no responses to my query, which probably means I asked
something poorly, but I needed to write another NSValueTransformer
for my project (to convert dollars into pennies and back) and I saw
the same behavior so I thought I'd ask again.
T
On Oct 1, 2009, at 11:10 AM, I. Savant wrote:
On Oct 1, 2009, at 10:58 AM, Paul Bruneau wrote:
Thanks for the suggestion, IS. I had in fact tried those and I
tried them again just now (in all combinations), no change.
Hmmm ... This (figure 2):
http://developer.apple.com/mac/library/DOCUME
Hi,
I'm trying to re-create Address Book's editing style - if a user
pushes a button labeled Edit, subsequent clicks on a label bring up
what looks like a separate view for the new information. Clicking
return after editing commits the edit and moves on to the next field.
I'd also like t
On Oct 1, 2009, at 1:02 PM, Paul Bruneau wrote:
Well if you look at Figure 2, step #23, it says "Updated value now
stored in model object. Key-value observing notifications are sent
to observers of this model property."
So due to the binding, the text field would get updated by this
mecha
Dear list,
I think I'm going crazy!
I've got one root layer and two sublayers.
The content of one of them is an image, the other's content is drawn
by a delegate's drawLayer:inContext:.
I want the image layer *always* be rendered *behind* the other's
content.
But no matter what I do, the
On Oct 1, 2009, at 1:23 PM, I. Savant wrote:
As Quincey mentioned, it's probably because the data cell for that
column (the prototype that's reused to draw that column's value for
each row) is being updated per row, which involves reading that
value and setting it as the cell's object valu
Nobody can make an educated attempt to help you without seeing your code.
So, er, please post your code.
--Kyle Sluder
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact
On Oct 1, 2009, at 10:45, Paul Bruneau wrote:
// this method will cause the field to get updated upon pressing
Return
-(BOOL)validateTopClearance:(id *)ioValue
error:(NSError **)outError
{
if (*ioValue == nil) {
return YES;
}
//add
Hi David,
Oh, yes, you're right. In the bitmapData, the first row is the top row.
-getPixelAtX:y:, -setPixelAtX:y:, -getColorAtX:y: and setColorAtX:y: are
the same. The first row is the top. Sorry that's confusing.
-isFlipped: is not a property of NSBitmapImageRep, that's on NSImage. The
abov
On Thu, Oct 1, 2009 at 5:47 AM, Gregory Weston wrote:
> Duncan Champney wrote:
>
> An app our company is developing is showing odd behavior and crashes
>> under 10.6, but not under 10.5.
>>
>> I've done some digging and figured out that a major contributor to the
>> crash is the following routin
Hello,
is it save to change the identifier of an NSToolbar in the .xib
file to something else, or does IB/AppKit expect it to be a specific
GUID?
The background for this is as follows: I have a new version of an
application that shares its app ID with the previous version. The
toolbar
If anyone is interested, I finally found what the problem was...first,
it goes back to this old message in the archives:
Re: setEnabled on a NSView
http://lists.apple.com/archives/cocoa-dev/2002/Feb/msg01312.html
I needed to do this exactly thing. I have a custom view and I wanted
an easy
On Sep 30, 2009, at 7:56 PM, Stephen J. Butler wrote:
On Wed, Sep 30, 2009 at 6:41 PM, David Hirsch wrote:
I cannot figure out why this does not work:
Phase *thisPhase = [phases objectAtIndex:i];
float testmode = [thisPhase mode];
float testmode2 =
I think some of those values may be flipped:
NSMutableDictionary *dictionary = [[NSMutableDictionary alloc]
initWithCapacity:10];
[dictionary setObject: [NSNumber numberWithBool:YES] forKey:PIFirstRun];
[[NSUserDefaults standardUserDefaults] registerDefaults:dictionary];
[dictionary release];
if
As I said - I wrote it into the email by memory typed code so... :)
But the idea was still there.
On Oct 1, 2009, at 2:17 PM, Sidney San Martín wrote:
I think some of those values may be flipped:
NSMutableDictionary *dictionary = [[NSMutableDictionary alloc]
initWithCapacity:10];
[dictionary
On Oct 1, 2009, at 2:16 PM, Quincey Morris wrote:
What was the number you tried this with? Some NSNumber values are
singleton objects, so returning a "new" NSNumber with the same value
might really return the original object. :) Or maybe just equality
of value matters.
It occurs to me tha
Hello all,
So I have a code segment that turns an NSString that is a file path on
my computer into an NSURL, archives the NSURL into NSData, and then
puts that into a NSMutableDictionary to be saved in the
standardUserDefaults. I can archive and unarchive the NSData with no
problem, but i
On Oct 1, 2009, at 3:26 PM, Paul Bruneau wrote:
I just thought of something IS said earlier:
Thing is, aside from transformed values, the value that makes it to
the model layer is usually a direct reflection of what was just set
in the view. :-) In 99% of cases, this would seem a waste of C
You need to post your archiving and unarchiving code.
--Kyle Sluder
___
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.co
On Oct 1, 2009, at 3:32 PM, Jacob Schwartz wrote:
So I have a code segment that turns an NSString that is a file path
on my computer into an NSURL, archives the NSURL into NSData, and
then puts that into a NSMutableDictionary to be saved in the
standardUserDefaults. I can archive and unarch
I've generated the appropriate certificates and created a
provisioning profile (development) that is generic, i.e., uses the
wild-card character. The provisioning profile does NOT include either
APNS or In App Purchase, but when I load the app onto the iPod Touch
an entry is added under
OK, it's solved now. Turns out NSToolbar does not like being on two
windows at the same, in any way, and setting one window's toolbar to
nil and adding the toolbar to a new window still causes those weird
drawing errors as well.
The solution, if anyone finds themselves grappling with this, is
On Oct 1, 2009, at 3:38 PM, Bob Barnes wrote:
I've generated the appropriate certificates and created a
provisioning profile (development) that is generic, i.e., uses the
wild-card character
This has nothing to do with Cocoa, specifically. I think you might
have better luck using the
On Oct 1, 2009, at 12:26, Paul Bruneau wrote:
The other way to approach this is to add a second set of properties
-- the formatted string values of your numeric properties -- that
are dependent on the numeric ones, and bind to the string
properties instead. It's a PITA to code it all, but i
Alright I'll have to do it after I get out of class. I didn't post it
right away in case this was a common mistake, simple use of a wrong
method. Thanks
-Jake
On Oct 1, 2009, at 3:38 PM, "I. Savant"
wrote:
On Oct 1, 2009, at 3:32 PM, Jacob Schwartz wrote:
So I have a code segment that
On Oct 1, 2009, at 3:49 PM, Jacob Schwartz wrote:
I didn't post it right away in case this was a common mistake
That's the problem. If you think about it, how can we know what
kind of mistake it was without seeing what you actually did? :-)
--
I.S.
___
On Oct 1, 2009, at 3:40 PM, Bryan Matteson wrote:
OK, it's solved now. Turns out NSToolbar does not like being on two
windows at the same,
Hah. No, definitely not. :-D
Window <-> Toolbar ... always. You'll never have Window
<<-> Toolbar or Window <->> Toolbar.
I t
Yes, I realize it's off-topic and I did try to post on the iPhone
development forum, but I keep getting an error trying to create an
account.
On Oct 1, 2009, at 12:45 PM, I. Savant wrote:
On Oct 1, 2009, at 3:38 PM, Bob Barnes wrote:
I've generated the appropriate certificates and cre
Window <-> Toolbar ... always. You'll never have Window
<<-> Toolbar or Window <->> Toolbar.
I thought this was stated in the documentation but I can't find it
in the API reference or the guide at a quick glance.
I couldn't find it anywhere in the documentation. But th
On Oct 1, 2009, at 3:59 PM, Bob Barnes wrote:
Yes, I realize it's off-topic and I did try to post on the iPhone
development forum, but I keep getting an error trying to create an
account.
I mean no disrespect, but if you know it's off-topic, why post?
In any case, if you're having t
Hi,
I upgraded to 10.6 midway through a project and a bug came up where there
was none previously.
I am now seeing the error "Failed to call designated initialiser on
NSManagedObject class 'CHMySQLSettingsModel' " when I created an object on
the MOC or when I fetch an object for editing. Step by s
On Oct 1, 2009, at 4:01 PM, Bryan Matteson wrote:
I couldn't find it anywhere in the documentation. But the thing is,
it doesn't seem like you can even move a toolbar from one window to
another, even properly making sure that it never belongs to more
than one at a time, without getting weir
I'm displaying a list of files with their icons in a table view. The
icons are created using a NSValueTransformer that uses NSWorkspace
iconForFile:, and bound to an NSImageCell in a table column.
According to the AppKit release notes for Snow Leopard, borderless
NSImageCells draw images wi
On Oct 1, 2009, at 3:34 PM, I. Savant wrote:
The problem is, I think, that most developers aren't overloading
the input as you are. :-)
I knew this would come up! :)
But in actuality, this same problem would occur regardless of whether
I was overloading the input. Even in the very simples
*I have an NSImage that I would like to make a transparent version for
dragging. I have used - (void)dissolveToPoint:(NSPoint)aPoint
fraction:(CGFloat)delta to do this in the past. That appears to be getting
deprecated and I would like to update my code. What is the suggested way of
doing things. I
On Oct 1, 2009, at 4:38 PM, Paul Bruneau wrote:
I do have 20ish edit fields to contend with on my main window. I
could set up a preference to let the user select his preferred entry
method (there are just 2), but I still think I would still have the
trouble with the inconsistent updating be
This is covered in the AppKit release notes.
http://developer.apple.com/mac/library/releasenotes/Cocoa/AppKit.html
--Kyle Sluder
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list
I am using Core Animation to display some images.
Is there an easy way to find out the following information?
1.
Query the properties GL_MAX_TEXTURE_SIZE and
GL_MAX_RECTANGLE_TEXTURE_SIZE_ARB from the current OpenGL context that
Core Animation
must have acquired somewhere.
Well, it would s
if you make a new IB project, create two new windows, with a new
webview located into each window,
if you go to one of the webviews, and get the inspector up and go
into the attributes, and turn off everything, like java, plugins,
animate images, etc...
the second webview also tu
On Sep 30, 2009, at 1:32 PM, jonat...@mugginsoft.com wrote:
I intend to send off my bit of data, hang around ( <= 30 secs) to
get notification and then close everything.
Why do you need to wait at all?
—Jens___
Cocoa-dev mailing list (Cocoa-dev@l
I meant like if it was a common case. Nevermind though, here is the
code:
Archiving:
NSMutableDictionary *defaultValues = [NSMutableDictionary dictionary];
NSURL *url = [NSURL URLWithString:[NSString stringWithFormat:@"/
Users/jacobschwartz/Pictures/wallpapers"]];
NSData *pathAsData = [NS
On Oct 1, 2009, at 1:55 PM, Gabriel Zachmann wrote:
I am using Core Animation to display some images.
Is there an easy way to find out the following information?
1.
Query the properties GL_MAX_TEXTURE_SIZE and
GL_MAX_RECTANGLE_TEXTURE_SIZE_ARB from the current OpenGL context
that Core Anim
On Oct 1, 2009, at 13:38, Paul Bruneau wrote:
That scenario does sound very similar to mine.
I'd forgotten, in my application I simplified the user interface
because of various validation difficulties (maybe including bindings
issues, I don't remember), so all I've got left is a sheet with
Hi. I'm a very newbie iphone and cocoa developer coming from j2ee
world. I'm creating an application with four screens using a TabBar.
The fourth view has a button wich uses UITextfields values from all
the views to calculate something ans show the result in a UITextfield
in the fourth view
(Note: I apologize for not having this nicely formatted. My previous
message - 8kB over the size limit - was rejected because it was too
large, so I had to remove the extra HTML)
I have a CAKeyframeAnimation that simply will not work.
I have a layer. When I apply a CABasicAnimation to it, i
On Oct 1, 2009, at 2:45 PM, Christopher J Kemsley wrote:
The output, from the print statements, to show that it has VALID
values, is:
2009-10-01 13:11:00.887 Whose Line[56132:207] 0x3921510>
2009-10-01 13:11:00.888 Whose Line[56132:207] --> 11, 11
2009-10-01 13:11:00.888 Whose Line[56132:2
Hmmm OK, so I modified it, though it still fails.
The values it's now using are:
2009-10-01 15:08:59.508 Whose Line[56978:207] 0x3910370>
2009-10-01 15:08:59.508 Whose Line[56978:207] --> 11, 11
2009-10-01 15:08:59.509 Whose Line[56978:207] --> position
2009-10-01 15:08:59.514 Whose Line[56
On Oct 1, 2009, at 2:19 PM, Jacob Schwartz wrote:
NSMutableDictionary *defaultValues = [NSMutableDictionary dictionary];
NSURL *url = [NSURL URLWithString:[NSString stringWithFormat:@"/
Users/jacobschwartz/Pictures/wallpapers"]];
NSData *pathAsData = [NSKeyedArchiver archivedDataWithRootO
On Oct 1, 2009, at 2:39 PM, Manuel Grau wrote:
I have my own controller classes for each view. The problem is that
my IBAction method that receives button event is in
fourthViewController, so I can't acces fields in the other views to
get the values I need. So, which is the usual way to do
Well, maybe not completely explicitly in this case.
Use -drawInRect:fromRect:operation:fraction:. operation is
NSCompositeSourceOver, which is "normal". The fraction is an opacity (when
used with source-over). 0.75 would be 25% transparent.
-Ken
On Thu, Oct 1, 2009 at 1:46 PM, Kyle Sluder wrot
On Oct 1, 2009, at 3:13 PM, Christopher J Kemsley wrote:
Hmmm OK, so I modified it, though it still fails.
The values it's now using are:
So... It's producing values normalized between 0 and 1, with the
first and last object being set as exactly 0 and 1, but still
nothing happens...
The
I right, I didn't hit reply all.
So I did found out how to do the breakpoint thing and I came across
this:
defaults = (NSUserDefaults *) 0x100425070
pathAsData = (NSData *) 0x0
I've done enough programming to that a memory address of 0x0 is null.
This was in the first line of
Hi,
I'd like my app ('tis progressing steadily :-) to read some simple
tabular data. The original file is from Excel, but it's not too much
bother to convert it to CSV.
Searching the developer docs gets me
"gestaltGraphicsVersion"
which is not good, but googling "cocoa csv" works very wel
I did an experiment, where i had a small window with a small webView
in it...
and then a large window with a large webView in it, in the same XIB
file... small was like 200 pxs and the large one was nearly as
large as the screen.
(actually i had the same window, and ran a loop, wh
All those sorts of settings are actually recorded in a WebPreferences
object. If the two WebViews have the same preferences identifier then
they will (by default) end up sharing the same prefs.
On 1 Oct 2009, at 22:03, jon wrote:
if you make a new IB project, create two new windows, with
On Oct 1, 2009, at 4:09 PM, Colin Howarth wrote:
Before I go through the 550,000 hits (some of them quite old) dare I
ask if there's one Right Way (TM) to parse this sort of data?
If the data's not too huge, you can read the file into an NSString,
break that into lines (there are some NSSt
On 02/10/2009, at 10:22 AM, Jens Alfke wrote:
If the data's not too huge, you can read the file into an NSString,
break that into lines (there are some NSString methods for this, but
I don't remember their names), and then on each line call [line
componentsSeparatedByString: @","] to get th
On Oct 1, 2009, at 5:22 PM, Jens Alfke wrote:
On Oct 1, 2009, at 4:09 PM, Colin Howarth wrote:
Before I go through the 550,000 hits (some of them quite old) dare
I ask if there's one Right Way (TM) to parse this sort of data?
If the data's not too huge, you can read the file into an NSStr
http://www.cocoadev.com/index.pl?ReadWriteCSVAndTSV
That site has enough good stuff, often with links to other stuff,
that it's worth using a site:cocoadev.com qualifier in your
googling. Or just start there.
-- GG
___
Cocoa-dev mailing lis
On 02/10/2009, at 6:08 AM, I. Savant wrote:
I couldn't find it anywhere in the documentation. But the thing is,
it doesn't seem like you can even move a toolbar from one window to
another, even properly making sure that it never belongs to more
than one at a time, without getting weird dra
Thanks everyone!
The idiot savant was first to point out the http://macresearch.org/cocoa-scientists-part-xxvi-parsing-csv-data
link. And that one refers also to the cocoadev site.
It seems everyone expects there to be a standard Cocoa solution, is
surprised that there isn't, and develops t
On Oct 1, 2009, at 8:42 AM, Jens Alfke wrote:
On Sep 30, 2009, at 7:37 PM, Adam R. Maxwell wrote:
Does the Cocoa memory management documentation cover functions? It
specifically refers to "...a method whose name begins with...". I
wonder if something like the CF "Create" rule applies to
On Oct 1, 2009, at 11:19 AM, Ken Ferry wrote:
Hi David,
Oh, yes, you're right. In the bitmapData, the first row is the top
row.
-getPixelAtX:y:, -setPixelAtX:y:, -getColorAtX:y: and setColorAtX:y:
are
the same. The first row is the top. Sorry that's confusing.
It might be nice if this
In order to work around the some of the issues I've been encountering
when scrolling scaled NSTextView's, I've been looking at capturing the
NSTextView as an NSImage, and using that instead (which would meet my
requirements).
I've tried the usual approaches (see below), but none of them are
workin
Hi,
I'm trying to read a file using this code, which is failing:
NSStringEncoding *enc;
NSError *error;
NSString *file = [NSString stringWithContentsOfFile:@"/Users/colin/
developer/Trace/glass.csv" usedEncoding:enc error:&error];
NSLog(@"%i: %@",
Because userInfo is a dictionary and is obviously not what you want.
Using `po` winds up calling -description, which for NSError returns a
synthesis of its localizedDescription, localizedFailureReason,
localizedRecoveryOptions, and localizedRecoverySuggestion.
So if you want that info, just log th
On Oct 1, 2009, at 20:31, Colin Howarth wrote:
Why is my NSLog statement being so unhelpful???
Try logging [error localizedDescription] instead. That's what the
debugger's showing you.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Ple
Hi glenn,
what is it doing that renders it not thread safe, does anyone know?
At the very least, it needs to call UIGraphicsPushContext to set the
current "ui graphics context", which is documented as needing to be
done on the main thread (which implies that there is a single,
global "ui
Hi Markus,
The background for this is as follows: I have a new version of an
application that shares its app ID with the previous version. The
toolbar in question is saving its state (using the "Autosaves
configuration" setting in IB). The new version introduces
additional items that are
I am implementing filtering in an array of NSDictionaries. I have it
connected in bindings, and I can successfully return searches of the
keys in the top level NSDictionary.
I would like to however return search results from a sub dictionary.
does this make sense?, and is it possible?
Russ
On Thu, Oct 1, 2009 at 10:31 PM, Colin Howarth wrote:
> NSStringEncoding *enc;
> NSError *error;
>
> NSString *file = [NSString
> stringWithContentsOfFile:@"/Users/colin/developer/Trace/glass.csv"
> usedEncoding:enc error:&error];
The way you pass "enc" is also wrong. If the
Thank you for the code snipet, but I am confused at the logic here...
the following code will be executed EVERY time the program runs,
right?
NSMutableDictionary *dictionary = [[NSMutableDictionary alloc]
initWithCapacity:10];
[dictionary setObject: [NSNumber numberWithBool:YES]
forKe
1 - 100 of 104 matches
Mail list logo