I want to implement opening a document from stationery. This opens a
new 'untitled' document but preloaded with the content from the
template file. It's pretty much working using the following code:
NSDocument* newDoc = [[NSDocumentController sharedDocumentController]
Have a look at /Developer/Examples/Appkit/DragaNDropOutlineView
On 11-Oct-08, at 9:06 AM, Chris Idou wrote:
I want to be able to drag strings out of a table into another field,
but I must be missing something major because drags never get
initiated. I've added the delegate, registered drag
--- On Fri, 10/10/08, Ian Joyner [EMAIL PROTECTED] wrote:
I'll have to think more about this. I'm not sure
that KVO can't be
done in a type-safe manner.
I guess KVO can be done in a type safe manner, but not with the interesting way
that objective-c does it. i.e. it can synthesize all the
On 11/10/2008, at 11:59 AM, Kyle Sluder wrote:
On Fri, Oct 10, 2008 at 9:58 PM, Kyle Sluder
[EMAIL PROTECTED] wrote:
This article
It would help if I provided the link.
http://www.setfiremedia.com/blog/7-top-tips-for-coding-with-currency
Thanks Kyle. I didn't realise floating point were so
Hi All
I want to subclass the class cluster of NSSet.
The documentation for the class clusters NSArray/NSMutableArray and
NSDictionary/NSMutableDictionary clearly shows what the primitive
methods are, so you only need to reimplement these for the subclass to
work e.g.
NSArray's
On Sat, Oct 11, 2008 at 5:51 AM, Andrew Farmer [EMAIL PROTECTED] wrote:
On 10 Oct 08, at 19:28, Ian Joyner wrote:
So it's really a workaround for this situation. I think therefore there
are several constructs to represent the same concept of lack of presence –
nil, Nil, Null, and NSNull.
On Sat, Oct 11, 2008 at 10:15 AM, Glen Low [EMAIL PROTECTED] wrote:
Hi All
I want to subclass the class cluster of NSSet.
The documentation for the class clusters NSArray/NSMutableArray and
NSDictionary/NSMutableDictionary clearly shows what the primitive methods
are, so you only need to
Can I enquire as to why you wish to subclass it?
On 11 Oct 2008, at 15:15, Glen Low wrote:
Hi All
I want to subclass the class cluster of NSSet.
The documentation for the class clusters NSArray/NSMutableArray and
NSDictionary/NSMutableDictionary clearly shows what the primitive
methods
Thanks guys,
I'm still unsure why I'm getting 4 decimal places as I know for fact
that the data is 2 decimal places. However, it seems my approach is
wrong. I'll convert to int's and NSDecimalNumbers instead and remove
all floats.
On 11/10/2008, at 4:14 AM, Uli Kusterer wrote:
On
Well, for table view there is a similar method that you need to
implement in your delegate:
- (BOOL)tableView:(NSTableView *)aTableView writeRowsWithIndexes:
(NSIndexSet *)rowIndexes toPasteboard:(NSPasteboard *)pboard
To allow dragging in a table view, you need to provide information as
to
Hey!
I would like install/setup a new CUPS printer from Cocoa. Looking at
http://developer.apple.com/documentation/Cocoa/Conceptual/Printing/Tasks/CreatingPrinters.html#/
/apple_ref/doc/uid/2870-120579
On Oct 10, 2008, at 3:31 AM, Graham Cox [EMAIL PROTECTED] wrote:
Why is anyone poking around in there? (Not a rhetorical question,
I'm interested in knowing what people do visit that folder for)
Since you ask, in my one-user, non-document-based scheduling app, I
keep the data file in there
When using the NSString or NSAttributedString methods for drawing text
in a box, such as -[NSAttributedString drawWithRect:options:], is
there any way to make the lines of text horizontally centered?
smime.p7s
Description: S/MIME cryptographic signature
I would like to show tool tips for an image which is used in a text
ruler representation, like shown here:
http://man.icalamus.net/en/img/doc/sample_frame_convertedToText.gif
I talk about the image in the upper right corner of the text ruler which
shows tabulator options. Users miss tool tips
On Oct 11, 2008, at 11:27 AM, James W. Walker wrote:
When using the NSString or NSAttributedString methods for drawing
text in a box, such as -[NSAttributedString drawWithRect:options:],
is there any way to make the lines of text horizontally centered?
Yes. Create a dictionary with a key
I wonder what I could have done wrong that all document and folder icons
which are automatically remembered and shown in our app's Open Recent
menu are shown upside down.
As we didn't change anything related with openDocument: and don't
manipulate the Open Recent menu ourselves, I have no
I need to implement a matrix of toolbar item like controls. Each
control has an image with a text label below it.
.--
.||
.| Image |
.||
.--
. Label
I am trying to figure out the best way to do this.
NSMatrix
On Sat, Oct 11, 2008 at 1:39 PM, Richard Somers
[EMAIL PROTECTED] wrote:
NSMatrix only works with single cell objects. Is it possible to display text
and an image inside a single cell?
NSButtonCell.
--Kyle sluder
___
Cocoa-dev mailing list
On Oct 11, 2008, at 4:51 AM, Stelian Iancu wrote:
Hmm, that's weird. In some official iPhone examples from Apple, they
do exactly that: they put nil as the last element in an array. So
what's up with that?
If it's what I think you're talking about then: No, nil is used as a
marker for
On Sat, Oct 11, 2008 at 1:57 PM, Seth Willits [EMAIL PROTECTED] wrote:
If it's what I think you're talking about then: No, nil is used as a marker
for the variable argument list to say this is the end of the list. It's
not actually inserted into the dictionary at all. Why it's required is
On Fri, Oct 10, 2008 at 12:52 PM, Negm-Awad Amin [EMAIL PROTECTED] wrote:
Yup, you are complelty right. The correct code:
if( [BaseClass [EMAIL PROTECTED]( initIWithCoder: )] ) {
…
If you want to get really fun, you can check it thus:
if([super.class instancesRespondToSelector:...])
This
On Sat, Oct 11, 2008 at 1:57 PM, Seth Willits [EMAIL PROTECTED] wrote:
If it's what I think you're talking about then: No, nil is used as a marker
for the variable argument list to say this is the end of the list. It's
not actually inserted into the dictionary at all. Why it's required is
--- On Sat, 10/11/08, Ulf Dunkel [EMAIL PROTECTED] wrote:
I would like to show tool tips for an image which is used in
a text
ruler representation, like shown here:
http://man.icalamus.net/en/img/doc/sample_frame_convertedToText.gif
NSViews handle tooltips. See the documentation for info
Hi All,
I need a little advice on the right way to do something: I have an
array controller bound to a core data store and the objects are
presented in a table view. When it comes to inserting, I need to check
that one of the properties specified by the user is unique before
doing
On Sat, Oct 11, 2008 at 2:58 AM, Seth Willits [EMAIL PROTECTED] wrote:
On Oct 10, 2008, at 5:40 PM, Ian Joyner wrote:
I'm just trying to work out what NSNull really is in the Cocoa context. Is
it an object in Cocoa?
As I said, yes. It's truly an object. (A singleton, as well.)
Since
I have global HotKey registered using Carbon, and this HotKey
invokes a method in which I'm replacing the contents of the general
Pasteboard. [...] I'm wondering if there is a way to
programmatically call 'Paste', or if there are any facilities in
Cocoa for simulating key presses?
I had a similar problem actually,
I read on the list somewhere that creating a NSFetchRequest for
finding something in the MOC can get slower if you have a lot of
objects in your MOC(few thousand), and in such case using an array
controller 's array and using predicate to filter it's
I'm using a CATextLayer to display some text which the user can change
the font size of. When the user changes the font size, I still want my
text to be centered, both vertically and horizontally.
As far as I know you can only set the the CATextLayers alignmentMode
to kCAAlignmentCenter to
11 okt 2008 kl. 22.34 skrev David Hoerl:
I'm using a CATextLayer to display some text which the user can
change the font size of. When the user changes the font size, I
still want my text to be centered, both vertically and horizontally.
As far as I know you can only set the the
On Oct 11, 2008, at 11:53AM, Kyle Sluder wrote:
NSButtonCell
Bingo, that's it! Right there under my nose. Thank you.
Richard
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the
On Oct 11, 2008, at 10:00 AM, Ricky Sharp wrote:
On Oct 11, 2008, at 11:27 AM, James W. Walker wrote:
When using the NSString or NSAttributedString methods for drawing
text in a box, such as -[NSAttributedString drawWithRect:options:],
is there any way to make the lines of text
On Oct 11, 2008, at 11:47 AM, Michael Ash wrote:
On Sat, Oct 11, 2008 at 1:57 PM, Seth Willits [EMAIL PROTECTED]
wrote:
If it's what I think you're talking about then: No, nil is used as
a marker
for the variable argument list to say this is the end of the
list. It's
not actually inserted
Hello, all ...
I want to alter how often NSURLConnection calls receivedData -- or
rather, I want it to call it more often (even with fewer bytes) vs
less often (with loads and loads of bytes). Can I do this with
NSURLConnection or some other CF class, rather than have to go down to
Folks,
Working with the CIAnnotation Sample code. It wants to open a file of
my choice, except the only files it seems to want are png files and
then crashes on any png file I try. Looking at the code, it appears
to accept any image file, but, I am so new to cocoa that I am likely
not
Greetings.
I'm in the optimizing phase of my little project and I'm trying to
understand instruments to get most of the leeks out of my software.
but instruments throws tons of leaked blocks for objects that should
be auto-released, and objects that are still in use.
how do I determine
Hey Steve,
Your call to setWantsLayer won't take effect until the next run loop.
So here is what happens (I think).
- First call to changeRightView:
- turns on layer backing for next run loop
- adds the animation (transition) for next run loop
- sets the delegate for
On Oct 11, 2008, at 7:58 PM, Sandro Noel wrote:
I'm in the optimizing phase of my little project and I'm trying to
understand instruments to get most of the leeks out of my software.
but instruments throws tons of leaked blocks for objects that should
be auto-released, and objects that
On 10/10/08 5:58 PM, Seth Willits said:
You can't stick nil into dictionaries and arrays. So either you stick
an empty string, an NSNumber with 0, etc if those are OK, or you can
use NSNull.
Or you can use NSPointerArray (on 10.5+).
--
most of the leeks are created by NSString's from functions i gathered
off the net.
assignations like
var1 = [var1 message];
This created a leek because the string being replaced is never released.
or am I wrong.
On 11-Oct-08, at 11:12 PM, j o a r wrote:
On Oct 11, 2008, at 7:58 PM,
On Oct 11, 2008, at 8:45 PM, Sandro Noel wrote:
most of the leeks are created by NSString's from functions i
gathered off the net.
assignations like
var1 = [var1 message];
This created a leek because the string being replaced is never
released.
or am I wrong.
You need to provide a
On Sat, Oct 11, 2008 at 7:07 PM, John Zorko [EMAIL PROTECTED] wrote:
Hello, all ...
I want to alter how often NSURLConnection calls receivedData -- or rather, I
want it to call it more often (even with fewer bytes) vs less often (with
loads and loads of bytes). Can I do this with
for instance, the leek tells me that i have a leek here in this
functions.
it is a NSString categorie.
- (NSString *) trimWhiteSpace {
NSMutableString *s = [[self mutableCopy] autorelease];
CFStringTrimWhitespace ((CFMutableStringRef) s);
return
The thing is, I've done all that and no drags are initiated when I drag on the
items. I have this in my tableview delegate:
But tableView:writeRowsWithIndexes:toPasteboard: is never even called. It seems
to me that the examples have this code in the datasource or something rather
than the
On Oct 11, 2008, at 3:26 PM, Seth Willits wrote:
Note that nowhere in there is there anything related to how many
arguments there are, or what type they are.
Ahh. I guess I mis-remembered varargs. I thought they did have a
count. I'm
You can tell how often I've had to use it ;-)
Nope
On 12 Oct 2008, at 3:33 pm, Chris Idou wrote:
The thing is, I've done all that and no drags are initiated when I
drag on the items. I have this in my tableview delegate:
But tableView:writeRowsWithIndexes:toPasteboard: is never even
called. It seems to me that the examples have this
On Oct 11, 2008, at 9:31 PM, Sandro Noel wrote:
for instance, the leek tells me that i have a leek here in this
functions.
So this is actually not really true. What leaks will initially tell
you is where the leaked object was created. That's not the same thing
as where that object was
46 matches
Mail list logo