Hi Jon,
Let's see if we can't get this figured out.
So the current problem you are having is that you cannot deploy an
IBPlugin for use on your system, correct? If so, I have a few questions.
(1) How are you installing the plugin and framework? Are you placing
both them in /Library/Framewo
On 4-Apr-09, at 5:36 PM, Martin Cote wrote:
Hi,
I would like to know if there's a way to use bindings to set the
image of an
NSImageView from a filename in Interface Builder. As far as I can
see, you
can only set the image from an NSImage instance.
I'm feeling that I'll have to write som
On Apr 1, 2009, at 19:04 , Sam Krishna wrote:
Does anyone here know of any Obj-C functional equivalent to Python
generator functions? These are *categorically* different that the
Spotlight API generator functions.
http://is.gd/qcYt
There is no direct equivalent at the language level, beca
On 04 Apr 09, at 21:28, Michael Ash wrote:
On Sat, Apr 4, 2009 at 6:02 PM, Andrew Farmer
wrote:
In your case, if you're trying to create a NSData object with the
contents
of a string, the correct usage is:
char *cstring = "some text";
return [NSData dataWithBytesNoCopy:cstring length:strl
this thread has passed it's usefulness. It certainly isn't appropriate
for cocoa-dev anyways.
___
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
If it isn't linked, that's a bug worth hitting the feedback button on.
A missing link like that usually means the doc has been retired, just
renaming the book won't cause a broken link.
I looked for a broken link in see-alsos on the current release in
accessibility docs, but didn't see anyt
On Apr 5, 2009, at 11:30 AM, Michael Ash wrote:
On Sat, Apr 4, 2009 at 10:20 PM, Jo Meder wrote:
Hi,
I'm in the planning stages of porting the Mac back end of my cross
platform
UI framework from Carbon to Cocoa, because I need 64 bit GUI
support. It
looks like it should be relatively str
On Sat, Apr 4, 2009 at 10:20 PM, Jo Meder wrote:
> Hi,
>
> I'm in the planning stages of porting the Mac back end of my cross platform
> UI framework from Carbon to Cocoa, because I need 64 bit GUI support. It
> looks like it should be relatively straightforward. I'm already using some
> Obj-C++ a
On Sat, Apr 4, 2009 at 6:02 PM, Andrew Farmer wrote:
> In your case, if you're trying to create a NSData object with the contents
> of a string, the correct usage is:
>
> char *cstring = "some text";
> return [NSData dataWithBytesNoCopy:cstring length:strlen(cstring)];
>
> We use dataWithBytesNo
> Yeah, it really helped! I am trying to get the contents of the files in a
> certain directory, so I think that I could probably get away with using a
> timer.
In this case, the reason your task is taking several seconds to
complete is most likely attributed to the sheer time it takes the read
t
On Apr 4, 2009, at 5:36 PM, Pierce Freeman wrote:
And, if you are 10.5 only, there's also NSObject's
performSelectorInBackground:withObject:
Is this a timer or a thread creator? I don't believe it has inputs
for the
time, or could it just do it automatically? Also, is there some way
I c
> And, if you are 10.5 only, there's also NSObject's
> performSelectorInBackground:withObject:
Is this a timer or a thread creator? I don't believe it has inputs for the
time, or could it just do it automatically? Also, is there some way I can
make this work with a function already created?
__
Hi,
I'm in the planning stages of porting the Mac back end of my cross
platform UI framework from Carbon to Cocoa, because I need 64 bit GUI
support. It looks like it should be relatively straightforward. I'm
already using some Obj-C++ and Cocoa APIs for stuff like cursor
management and d
On Apr 3, 2009, at 14:18 , Mark Bateman wrote:
Hi
I have a csv file I want to use as a source for a searchable list
The csv has 16 fields. I have managed to read the csv line by line
into an array
You don't necessarily need to read the lines into an array, you can
just process them one-b
On Apr 4, 2009, at 5:01 , Graham Cox wrote:
One problem I've had occasional reports of is that the expiry is
prematurely detected, and it seems to be on systems with system
language set other than English. I need to store and check the dates
in a way that is not sensitive to this. I though
Hi,
I would like to know if there's a way to use bindings to set the image of an
NSImageView from a filename in Interface Builder. As far as I can see, you
can only set the image from an NSImage instance.
I'm feeling that I'll have to write some code to do it, but if there's a way
to do it in IB,
On Fri, Apr 3, 2009 at 11:57 PM, Rich Collyer wrote:
> My primary interest is to ensure that the content of an NSSecureTextField
> and any times I extract the string from it, the memory is not paged out, or
> cached.
http://developer.apple.com/documentation/Darwin/Conceptual/KernelProgramming/sec
Hi List,
I hit a stumbling block when passing large files (multi-GB) to
NSXMLParser. It appears that NSXMLParser's initWithContentsOfURL:
method loads the contents of the entire file into memory, which is
causing virtual memory thrashing for at file sizes approaching my
physical RAM (2 GB
Change:
[arregloNumeros release];
}
to:
[arregloNumeros removeAllObjects];
}
[arregloNumeros release];
regards
Simon
___
Cocoa-dev mailing list (Cocoa-
A comma is a sequence yet the order in arrayWithObjects is
indeterminate. It must be the var arg causing the ordering mix.
Sent from my iPhone
On Apr 4, 2009, at 12:29 AM, Michael Ash wrote:
On Fri, Apr 3, 2009 at 8:30 PM, Eric Hermanson
wrote:
Some (or most) people might be aware of thi
Hi,
I'm writing an application that renders a web page in a web view.
The web page contains an image that the user can click on. There are
Javascript events that get called when the user clicks on the image.
These events contain the coordinates of the point the user clicked on.
I need to be
On Apr 4, 2009, at 5:07 PM, Andrew Farmer wrote:
On 04 Apr 09, at 19:35, Pierce Freeman wrote:
Yeah, it really helped! I am trying to get the contents of the
files in a
certain directory, so I think that I could probably get away with
using a
timer. I assume you mean NSTimer for the timer, t
On 04 Apr 09, at 19:35, Pierce Freeman wrote:
Yeah, it really helped! I am trying to get the contents of the
files in a
certain directory, so I think that I could probably get away with
using a
timer. I assume you mean NSTimer for the timer, though there could be
another class that I am tot
Hey Dave:
Yeah, it really helped! I am trying to get the contents of the files in a
certain directory, so I think that I could probably get away with using a
timer. I assume you mean NSTimer for the timer, though there could be
another class that I am totally missing. ;) In addition, if you are
> I am getting the beachball of death when I try to run an action that takes
> over a few seconds to complete. Given, the beachball goes away after the
> task is completed - But for lengthy tasks, why can't I just allow the user
> to go along with their work instead of having them wait with the be
Hey Ryan:
I have heard of threads before, but am just looking into them now to see if
they will work.
On 4/4/09 6:40 PM, "Ryan Joseph" wrote:
> Are you aware of threading or run loops? There is no problem here, you must
> share the processor with OS X. Read about those concepts and come back l
John:
Good idea, I¹ll look into threads and hopefully it will work.
On 4/4/09 6:37 PM, "john chen" wrote:
> You can try to do that task in another thread.
>
> John
>
> On Sat, Apr 4, 2009 at 8:08 PM, Pierce Freeman
> wrote:
>> Hi everyone:
>>
>> I am getting the beachball of death when I t
Are you aware of threading or run loops? There is no problem here, you
must share the processor with OS X. Read about those concepts and come
back later with questions. ;)
On Apr 5, 2009, at 8:08 AM, Pierce Freeman wrote:
Hi everyone:
I am getting the beachball of death when I try to run a
You can try to do that task in another thread.
John
On Sat, Apr 4, 2009 at 8:08 PM, Pierce Freeman
wrote:
> Hi everyone:
>
> I am getting the beachball of death when I try to run an action that takes
> over a few seconds to complete. Given, the beachball goes away after the
> task is completed -
Hi everyone:
I am getting the beachball of death when I try to run an action that takes
over a few seconds to complete. Given, the beachball goes away after the
task is completed - But for lengthy tasks, why can't I just allow the user
to go along with their work instead of having them wait with
I'm working on a Pascal bridge to Cocoa and as part of the system I
have a PHP script which converts files to Objective-C headers, which
InterfaceBuilder can use. However first I must manually "Read class
files" and Reload in InterfaceBuilder. Xcode does this so there must
be a way, but can
Namaste!
Just want to pass on some further information.
After that last post, the assertion error really bothered me. So,
after a while of careful inspection (to the limits of what I know), I
decided to and "clean[ed] all targets" of both the debug and release
builds and re-compiled. In
On Apr 4, 2009, at 1:48 PM, jmun...@his.com wrote:
However, when I use it, my xib gets toasted - on next open IB asks
what file I'd like to create. I had to restore a prior backup to
rescue my xib.
Hey Jon -
Could you describe the failure in a little more detail? Are you
running your p
Namaste!
Thank you for your reply.
If I run the plug-in in debug mode, I DO get an assertion failure:
Assertion Message: Two plug-ins
(com.JTAENTERPRISESLLC.JTAENTLLCTextLengthLimiter and
com.JTAENTERPRISESLLC.JTAENTLLCTextLengthLimiter) both integrate a
class description for the class JT
When you collect your date from the date picker, are you setting the
time in the date picker as well as the date ?
I used a date picker - setting dd/mm/yy only - and found it producing
date objects bearing unexpeced times of the given day.
Naturally, these produced interesting results as they
> If for example I have a group of string #defines that are used in log
> messages, that means that I will have to malloc space for them the
> sprintf them to it, so I can be sure that I don't get that warning
> when deallocating the log messages.
That's a symptom of a bad design. You shouldn't be
On Apr 4, 2009, at 2:35 PM, Daniel Luis dos Santos wrote:
Hello,
From what I know so far, memory allocated using the malloc() family
of functions is freed using the free() function. Literal values such
as :
char *aString = "some text";
are automatic values and are deallocated by the com
On 04 Apr 09, at 14:35, Daniel Luis dos Santos wrote:
Hello,
From what I know so far, memory allocated using the malloc() family
of functions is freed using the free() function. Literal values such
as :
char *aString = "some text";
are automatic values and are deallocated by the compiler
Hello,
From what I know so far, memory allocated using the malloc() family
of functions is freed using the free() function. Literal values such
as :
char *aString = "some text";
are automatic values and are deallocated by the compiler automatically.
When I free some pointer that was alloc
Namaste!
So, not the end of the drama.
The plugin shows in the list and is available in IB.
However, when I use it, my xib gets toasted - on next open IB asks
what file I'd like to create. I had to restore a prior backup to
rescue my xib.
Any thoughts anyone?
Thanks!
Peace, Love, and L
Namaste!
Well, I don't know that I did anything different as I haven't changed
anything since the last email...
But now the plugin is showing up in IB...
???
Oh well, hopefully that will be the end of the drama...
Thanks everyone!!!
Peace, Love, and Light,
/s/ Jon C. Munson II
Quoting j
Hello.
In my application, i need some parts of the text in my NSTextView to
be editable and some not. However, the user should be able to navigate
through those non-editable parts, but the cursor (the flickering thing
showing the insertion point) gets invisible as soon as it gets into a
n
Clark Cox (clarkc...@gmail.com) on 2009-04-03 7:27 PM said:
>> My primary interest is to ensure that the content of an NSSecureTextField
>> and any times I extract the string from it, the memory is not paged out, or
>> cached.
>
>Then turn on "Use Secure Virtual Memory" in the Security Pane in
>Sy
On Apr 4, 2009, at 2:01 PM, Graham Cox wrote:
My app encodes expiry dates for demo versions, etc.
One problem I've had occasional reports of is that the expiry is
prematurely detected, and it seems to be on systems with system
language set other than English. I need to store and check the
>
>> thanks for your advice but now the message in the log window is:
>> *** -[NSCFArray objectAtIndex:]: index (1) beyond bounds (1)
>>
>> Can you please suggest me something to fix it?
>
> Bug-fixing tip number 1: Don't do that.
>
> In particular: Stop trying to index past the end of the arr
On Sat, Apr 4, 2009 at 3:10 PM, Marcel Weiher wrote:
>
> On Apr 3, 2009, at 13:24 , Michael Ash wrote:
>>
>> As far as I can tell, what you're saying is that NSCFArray == CFArray.
>> In which case it is *still* impossible to distinguish an NSArray from
>> a CFArray, and still nonsensical to want t
Priscila J.V wrote:
thanks for your advice but now the message in the log window is:
*** -[NSCFArray objectAtIndex:]: index (1) beyond bounds (1)
Can you please suggest me something to fix it?
Bug-fixing tip number 1: Don't do that.
In particular: Stop trying to index past the end of the arr
Excellent, this will be very helpful. Thanks!
Seth
On Thu, Apr 2, 2009 at 7:06 AM, Andreas Mayer wrote:
>
> Am 02.04.2009 um 08:46 Uhr schrieb Seth Pellegrino:
>
> NSCollectionView seems a little like what I'd want, but the API on
>> UITableView is much cleaner and easier to use (and I'm only r
Graham Cox wrote:
The date, along with other data, is digitally signed with a SHA-1
hash, which in turn is based on the object's -hash method. As far
as I could tell, the -hash method returns a value that is sensitive
to the actual stored date, but not to the date localization on the
syst
Change:
[arregloNumeros release];
}
to:
[arregloNumeros removeAllObjects];
}
[arregloNumeros release];
regards
Simon
Hello Simon,
thanks for your advice but now the message in the log window is:
***
On Sat, Apr 4, 2009 at 2:21 PM, Marcel Weiher wrote:
>> But clearly that is not correct, since you keep saying that it is
>> trivial to distinguish them. So, please fill out the following
>> function:
>>
>> NSString *IsNSOrCFArray(id foo) // returns @"NSArray" or @"CFArray"
>> {
>>
>> }
>>
Graham Cox wrote:
One problem I've had occasional reports of is that the expiry is
prematurely detected, and it seems to be on systems with system
language set other than English. I need to store and check the
dates in a way that is not sensitive to this. I thought I was, yet
the reports
On 04.04.2009, at 07:44, Conrad Taylor wrote:
Hi, I would recommend Screen Flow to capture what you're doing on
the computer and Mouse Posé to display your keyboard commands.
Does "I need" mean you want to write one? Because that's what this
mailing list would really be about. There are no
On Sat, Apr 4, 2009 at 6:15 AM, Uli Kusterer
wrote:
> If you're inside a single, monolithic application, yes. However, #define is
> eliminated by the preprocessor, whereas kMyKey would still be exported to
> the linker, e.g. in the case of a framework. Which means you can make 100%
> sure that th
On Sat, Apr 4, 2009 at 2:14 AM, Eric Hermanson wrote:
> A comma is a sequence yet the order in arrayWithObjects is indeterminate.
> It must be the var arg causing the ordering mix.
No, the comma *operator* is a sequence point. In other words, if you
just write "foo(), bar();", then the order is
Namaste!
Still getting "no action" after attempting to add my plug-in to IB.
No error either.
I compared my target property settings with yours and BGHUD to be sure
I hadn't goofed on something - everything seems well there (I reverted
my settings which were retrieved from someone else
On Fri, Apr 3, 2009 at 8:30 PM, Eric Hermanson wrote:
[MyCounterClass newObject] is a static method that returns a new
> autoreleased instance
A method that begins with the word "new" is supposed to return an object
that you own. See:
<
http://developer.apple.com/documentation/Cocoa/Concep
On Apr 4, 2009, at 8:29 AM, Graham Cox wrote:
The date is added to a dictionary. The dictionary is then archived.
Decoding is simply dearchiving.
As long as you're archiving the actual NSDate object, it seems to me
this should be fine. Even if Apple had a bug in the archiving/
unarchiving
On 04/04/2009, at 11:17 PM, Ken Thomases wrote:
Unless I've missed something, you left out an important part. How
are you storing/serializing the date information and later
"recovering" it?
Ah, good point ;-)
The date is added to a dictionary. The dictionary is then archived.
Decoding
On Apr 4, 2009, at 7:01 AM, Graham Cox wrote:
One problem I've had occasional reports of is that the expiry is
prematurely detected, and it seems to be on systems with system
language set other than English. I need to store and check the dates
in a way that is not sensitive to this. I thoug
Hello, Im gonna check what Quencey Morris, suggested, Im gonna see how
to stop just before the line break, and analyze the data I gather, I
think NSScanner provides me a quick way to scan the file lines, its
huge, so checking line by line it will take longer.
When reading the documentati
My app encodes expiry dates for demo versions, etc.
One problem I've had occasional reports of is that the expiry is
prematurely detected, and it seems to be on systems with system
language set other than English. I need to store and check the dates
in a way that is not sensitive to this. I
It looks like you have tabular data to deal with, like punch cards.
That means that you can assume a fixed character position for the
beginning of each column in the table. And your code can infer those
positions the same way you would -- by looking at the source file. Or
you can just manua
Eric Hermanson wrote:
Some (or most) people might be aware of this caveat, but I was not, so
I'll share it.
Consider this code:
NSArray *array = [NSArray arrayWithObjects:[MyCounterClass
newObject], [MyCounterClass newObject], nil];
where [MyCounterClass newObject] is a static method that
On Apr 3, 2009, at 8:28 PM, jmun...@his.com wrote:
OK, now I have one more question.
I'd like to "install" and use my plug-in. However, when accessing
IB's preferences->Plug-ins and attempting to add the plug-in I get:
1) when simply adding the ibplugin an error that states the file is
On Apr 3, 2009, at 7:39 PM, jmun...@his.com wrote:
I have one more question: How does one replace the blue cube object
icon that tags on the text field with my formatter's graphic?
That, I do not know how to do. I'll definitely update the my example
though if I or someone else figures
Nate Weaver wrote:
IIRC they're optimized to point to the same memory location (I
wasn't sure, so I tested and confirmed).
Well, within a particular Mach-O Container, yes. But if you have a
framework and an application, they could presumably get two different
strings (It's an implementati
(Sorry for the thread-hijack, but I suppose I should finish what I've
started. Last message I promise :))
> Assuming I've got my const's straight, "NSString *const" makes the pointer
> const, but not the thing pointed to -- "const NSString *const" would make
> the pointer *and* the value const, bu
68 matches
Mail list logo