[window setIgnoresMouseEvents:YES];
2009/5/13 Trygve Inda :
> imageView = [[NSImageView alloc] initWithFrame:NSMakeRect(0, 0,
> dispBounds.size.width, dispBounds.size.height)];
>
> [imageView setAutoresizingMask:NSViewWidthSizable | NSViewHeightSizable];
>
> window = [[NSWindow alloc] initWithCont
The UIImage is the object (inherits from NSObject), so yes you'd pass
the pointer to it as the dict's object. And objectForKey: will pass
back that pointer to the UIImage again.
On May 12, 2009, at 10:00 PM, Eric E. Dolecki wrote:
I like the cache without writing to the disk (for now anyw
> imageView = [[NSImageView alloc] initWithFrame:NSMakeRect(0, 0,
> dispBounds.size.width, dispBounds.size.height)];
>
> [imageView setAutoresizingMask:NSViewWidthSizable | NSViewHeightSizable];
>
> window = [[NSWindow alloc] initWithContentRect:dispBounds
> styleMask:NSBorderlessWindowMask backi
imageView = [[NSImageView alloc] initWithFrame:NSMakeRect(0, 0,
dispBounds.size.width, dispBounds.size.height)];
[imageView setAutoresizingMask:NSViewWidthSizable | NSViewHeightSizable];
window = [[NSWindow alloc] initWithContentRect:dispBounds
styleMask:NSBorderlessWindowMask backing:NSBackingSt
I like the cache without writing to the disk (for now anyway).
When you say the image object itself, I don't know exactly what you mean...
if it's just a pointer to UIImage then I think I do know. So I could pair
the pointer with the URL key, is that right?
E.
On Tue, May 12, 2009 at 5:19 PM, Er
On Tue, May 12, 2009 at 6:19 PM, Greg Parker wrote:
> On May 12, 2009, at 6:43 AM, Michael Ash wrote:
>>
>> Use -methodForSelector: to get the IMP for a nonexistent method. This
>> IMP will be a function pointer straight to the runtime's forwarding
>> machinery. Then install that IMP as the implem
It was under my nose the whole time! Thanks, that TEC sniffer thing
wasted an hour of my life.
On May 13, 2009, at 9:02 AM, Dave Geering wrote:
On Wed, May 13, 2009 at 11:53 AM, Ryan Joseph
wrote:
First question, why is the most obvious and best solution deprecated?
NSString's initWithConte
On Wed, May 13, 2009 at 12:07 PM, Dave Geering wrote:
> On Wed, May 13, 2009 at 6:37 AM, Sean McBride wrote:
>> Hi all,
>>
>> My doc-based application is able to import foreign file formats. I do
>> this by creating a new instance of my NSPersistentDocument subclass and
>> populate it as needed.
On Wed, May 13, 2009 at 6:37 AM, Sean McBride wrote:
> Hi all,
>
> My doc-based application is able to import foreign file formats. I do
> this by creating a new instance of my NSPersistentDocument subclass and
> populate it as needed.
>
> Works fine, but results in a document named "Untitled i".
On Wed, May 13, 2009 at 11:53 AM, Ryan Joseph
wrote:
> First question, why is the most obvious and best solution deprecated?
> NSString's initWithContentsOfFile: accepts no encoding and appears it is
> getting the correct encoding in my tests. Now they want us to use
> initWithContentsOfFile:enc
I'm dealing with my first attempt to cope with text encodings, ugh...
This is an issue confronting everyone reading text files so there
should be a SIMPLE solution to the problem, which is, how do I know
what encoding the file is I'm opening?
First question, why is the most obvious and best
On 13/05/2009, at 7:16 AM, Dave Keck wrote:
text rects. Has anyone come up with a very fast way to estimate the
size of
some text, more importantly the vertical size given a width.
You didn't mention that you tried NSAttributedString (specifically,
its -size method.) Does it suit your needs
On 2009 May 12, at 13:37, Sean McBride wrote:
Hi all,
My doc-based application is able to import foreign file formats. I do
this by creating a new instance of my NSPersistentDocument subclass
and
populate it as needed.
Works fine, but results in a document named "Untitled i". Is there a
On 13/05/2009, at 9:47 AM, David Alter wrote:
When a user clicks on my stepper my action method gets called. How
can I
identify if the user is clicking the up arrow or the down arrow
Thanks for the help
Steppers don't work like that. They have a value, like a slider. The
value gets increm
Namaste!
I'm having a wee bit of difficulty adding records to a child entity.
The situation is this: I'm implementing drag-n-drop of files onto a
tableview I have on a window. The tableview holds a list of files
that are related to the parent record.
My program chokes on the line where I
If I add CFShow statements to my code, they show up in Console when run as
admin, but not when run as a non-admin user.
Does anyone know why this happens?
Thanks,
Erg
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not pos
Eric,
For what it is worth -- Luke is right. There are probably so many
variations on how developers would want such a cache managed, and the
fact that it couldn't be self-contained inside a single API object (or
for that matter, tier, as it would require server cooperation too),
that it
When a user clicks on my stepper my action method gets called. How can I
identify if the user is clicking the up arrow or the down arrow
Thanks for the help
-dave
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests o
On May 12, 2009, at 4:38 PM, Eric E. Dolecki wrote:
I wish that Apple provided a convenient method for doing this as it
seems like something that could regularly be employed. I don't think
I'll go as far as using SQL, but thanks for all the tips!!
It doesn't really make sense for Apple to
I wish that Apple provided a convenient method for doing this as it seems
like something that could regularly be employed. I don't think I'll go as
far as using SQL, but thanks for all the tips!!
On Tue, May 12, 2009 at 7:11 PM, Bradley S. O'Hearne <
br...@bighillsoftware.com> wrote:
> Eric,
> I
Eric,
I think one of the more effective ways to cache images is to store
your image to the file system, and then store meta-data for that image
in a local SQL database. That meta-data should include a "last
updated" date for the image. Then, instead of requesting the image
directly from t
On May 12, 2009, at 6:43 AM, Michael Ash wrote:
Use -methodForSelector: to get the IMP for a nonexistent method. This
IMP will be a function pointer straight to the runtime's forwarding
machinery. Then install that IMP as the implementation for your
overridden methods. Callers will go straight in
Hello Chris,
On 12 May 2009, at 06:48, Chris Gardner wrote:
I do not know how to know CD Driver type, which can read CD or can
read DVD.
I want to know the CD Driver whether can read CD disc or DVD disc.
Though I have used DRDevice, I can not get information about the CD
Driver can read CD
On May 12, 2009, at 2:13 PM, Eric E. Dolecki wrote:
Okay, so I know I can somehow cache them... but I have some noob
questions.
- how do I cache the images themselves? Some binary data object
written to
the disk? How?
If you're caching to memory, all you really need to do is retain the
Obviously, if you want to cache the images between runs of the
application, you need to cache them as binary onto the disk. If you
are OK with the images being loaded after every launch of the
application, you can cache them into an NSMutableDictionary with the
URL as the key, and the imag
> text rects. Has anyone come up with a very fast way to estimate the size of
> some text, more importantly the vertical size given a width.
You didn't mention that you tried NSAttributedString (specifically,
its -size method.) Does it suit your needs, or is it what you consider
too slow?
David
_
Okay, so I know I can somehow cache them... but I have some noob questions.
- how do I cache the images themselves? Some binary data object written to
the disk? How?
- how do I check if the image has already been loaded (check an
NSMutableArray populated with dictionaries with a url string and url
Yes, if you cache them yourself.
Dave
On Tuesday, May 12, 2009, at 03:04PM, "Eric E. Dolecki"
wrote:
>In my table, when a cell isn't nil I am setting UILabels, etc. However, in
>each cell I have a UIImageView... and the contents of each is an image
>fetched from my server. No problem on initia
You should be able to easily implement your own caching mechanism for
your content. Keep the images around, either in memory or on disk, as
appropriate, and just refresh them when you need to.
Luke
On May 12, 2009, at 2:04 PM, Eric E. Dolecki wrote:
In my table, when a cell isn't nil I am s
In my table, when a cell isn't nil I am setting UILabels, etc. However, in
each cell I have a UIImageView... and the contents of each is an image
fetched from my server. No problem on initial display, but as soon as you
start scrolling and the cells are reused, I am fetching new artwork... which
ma
Hi all,
My doc-based application is able to import foreign file formats. I do
this by creating a new instance of my NSPersistentDocument subclass and
populate it as needed.
Works fine, but results in a document named "Untitled i". Is there a
way to name it something like "original_filename (Con
Just wanted to say thanks for the help. Your solution worked. :)
Jessica
>CBGroupIdentity is a subclass of CBIdentity. So in the NSArray of
>CBIdentity items returned from the identity picker, you test whether
>each item is a CBGroupIdentity or not using the normal Objective-C
>mechanism:
> [so
hello,
I do not know how to know CD Driver type, which can read CD or can read DVD.
I want to know the CD Driver whether can read CD disc or DVD disc.
Though I have used DRDevice, I can not get information about the CD Driver can
read CD or DVD.
I am sorry for my pure English.
Than
On May 11, 2009, at 12:42 PM, Gabriel Roth wrote:
The app contains just one class (besides MyDocument), called
AppController. The code for AppController is pasted below, followed by
console output.
Apart from issues others have already identified:
You almost certainly shouldn't be encoding/
I don't know from the information provided why your generic init is being
called, but the name of the class, AppController, is a clue to me. I'd expect a
class called AppController to have a single instance, which would control the
whole app, not to be a class that represents data in documents.
On 5/12/09 9:49 AM, Greg Guerin said:
>> I ask because sometimes the alert is not displayed as a sheet on that
>> window but instead it's floating on its own, attached to no other
>> window.
>
>I have seen this "detached sheet" behavior when the parent window
>already had a sheet open. Make sure t
Alternatively (and I've successfully used this approach), you could create a
new UIColor withPatternImage (the image you want in the background), and then
just set it to be the backgroundColor property of the UITableView.
Dave
___
Cocoa-dev mailing l
I have a grouped table view - so implementing something other than the old
iMac striped look is a good thing in my opinion.
Eric
On Tue, May 12, 2009 at 2:15 PM, Luke the Hiesterman wrote:
> TableViews were never meant to be transparent. There are many different
> considerations in making this ac
On Tue, May 12, 2009 at 11:13 AM, Mike Mangino
wrote:
>
> On May 12, 2009, at 9:43 AM, Michael Ash wrote:
> [snip]
>>
>> This is actually surprisingly easy.
>>
>> (Caveat: I have not actually done this.)
>>
>> Use -methodForSelector: to get the IMP for a nonexistent method. This
>> IMP will be a f
On Tue, May 12, 2009 at 10:29 AM, Uli Kusterer
wrote:
> On 12.05.2009, at 12:35, Alastair Houghton wrote:
>>
>> If, however, you really want the display to physically show a 5cm x 5cm
>> block, you can obtain the screen's actual dimensions in millimeters from
>> CGDisplayScreenSize() and then use
TableViews were never meant to be transparent. There are many
different considerations in making this actually happen, and if you
were ever able to pull it off it would likely be mostly a hack. If you
think you want an image behind a table view, I'd suggest taking a step
back to your UI dra
On May 12, 2009, at 12:01 PM, David Harper wrote:
Hello,
I'm finalizing an application which disallows document saving when
not registered. I've put interrupts in my NSDocument subclass' -
saveDocument: and -saveDocumentAs: methods so that [super ...] is
only invoked if the application is
In my viewDidLoad, I am doing this (which shows only white beneath my
UITableView)
NSLog(@"%@", imageView );
table.backgroundColor = [UIColor clearColor];
imageView.image = [UIImage imageNamed:@"bg.png"];
*2009-05-12 13:56:23.964 iTunesTable[16036:20b] >*
*
*
*For whatever reason, all I see
Hello all,
I'm trying to measure lots of small text rects which vary in length so
I'm reusing a single NSTextview to save memory and calling
glyphRangeForTextContainer + usedRectForTextContainer to get the used
Rect. Even though it works I find it a little slow because I'm
measuring a lot
Hello,
I'm finalizing an application which disallows document saving when not
registered. I've put interrupts in my NSDocument subclass' -saveDocument: and
-saveDocumentAs: methods so that [super ...] is only invoked if the application
is registered.
However, I've just noticed that when a doc
I am animating the deselection of cell in a UITableView via
didSelectRowAtIndexPath (which works great), however the initial selection
I'd like to have animated to the selected state graphic I am using. Where
exactly should I set that up?
Here is my take on the selection & deselection:
- (void)onT
Sean McBride wrote:
I ask because sometimes the alert is not displayed as a sheet on that
window but instead it's floating on its own, attached to no other
window.
I have seen this "detached sheet" behavior when the parent window
already had a sheet open. Make sure there's not already ano
Hi all,
I have an NSAlert that I want to display as a sheet. I call:
[alert beginSheetModalForWindow:window
modalDelegate:nil
didEndSelector:nil
contextInfo:NULL];
the 'window' param is non-nil.
Are there special requirements for this window? Must it be frontmost?
Key? The docs don't s
While debugging I noticed that a custom object's set method is being
invoked twice. I have theViewController that is the files owner of my
Nib. theViewController has a myObject property. myObject is bound in
the Nib using an NSObjectController to the file's owner's myObject
property. Automa
On 12 May 2009, at 15:26:10, Parimal Das wrote:
Hello
I want that my app should have the dock menu "open at login" item
selected
by default.
I have seen it in few apps.
Please tell me what to use for that.
Adv Thanx
Don't.
I'm all for adding "open at login" as a preference inside you're
On May 12, 2009, at 9:43 AM, Michael Ash wrote:
[snip]
This is actually surprisingly easy.
(Caveat: I have not actually done this.)
Use -methodForSelector: to get the IMP for a nonexistent method. This
IMP will be a function pointer straight to the runtime's forwarding
machinery. Then install
Actually, I just made a reference to the table here because that seems a lot
cleaner and I'm not currently managing multiple tables. So I'll simply use
that reference for now, however I am still including it with the indexPath
in that dictionary I am sending just in case I want to change that in th
This is how I have this implemented at the moment (thoughts?) However I'm
not really seeing an animation to the selected state, it just kind of
happens
- (void)onTimer:(NSTimer *)timer {
[[[timer userInfo] objectForKey:@"table"] deselectRowAtIndexPath:[[timer
userInfo] objectForKey:@"indexPath"]
I have code that lays out text along arbitrary paths. I've been
working on making this as compatible with standard text layout as
possible, and it's 99% there.
In my case, I can't let the layout manager directly handle the
underlining because on an arbitrary path, the underline ends up as a
On Tue, May 12, 2009 at 10:49 AM, Graham Cox wrote:
> Normally the object receiving the timer callbacks is a controller that
> already knows about those objects, or has direct ways to get them. If not,
> you may have a design problem...
I'd considered that in my response, but considered also t
On 13/05/2009, at 12:42 AM, I. Savant wrote:
Now, all I might need to do is to somehow package up the tableView
and the
indexPath and stuff that into something and declare that as the
userInfo?
And what might that look like?
It would look like my previous response suggested. Use those
co
On Tue, May 12, 2009 at 10:39 AM, Eric E. Dolecki wrote:
> Okay, so I have this...
>
> [NSTimer scheduledTimerWithTimeInterval:0.2 target:selfselector:@selector(onTimer:) userInfo:nil repeats:NO];
>
> And then my selector looks like this:
> - (void)onTimer:(NSTimer *)timer {
> NSLog(@"%@", [tim
Okay, so I have this...
[NSTimer scheduledTimerWithTimeInterval:0.2 target:selfselector:@selector(
onTimer:) userInfo:nil repeats:NO];
And then my selector looks like this:
- (void)onTimer:(NSTimer *)timer {
NSLog(@"%@", [timer userInfo] );
}
Now, all I might need to do is to somehow package
On 13/05/2009, at 12:18 AM, sandeep chaudhary wrote:
I am using the NSTextView class. i have created the NSTextView
control and create a outlet for this. Now i am adding some text on
this control programatically. Text is shown on this field at run
time. Now i want some word in string to
On 12.05.2009, at 12:35, Alastair Houghton wrote:
If, however, you really want the display to physically show a 5cm x
5cm block, you can obtain the screen's actual dimensions in
millimeters from CGDisplayScreenSize() and then use those numbers in
conjunction with the pixel dimensions to calc
On Tue, May 12, 2009 at 10:21 AM, Eric E. Dolecki wrote:
> // What do I use for userInfo?
>
> [NSTimer scheduledTimerWithTimeInterval:0.3 target:self selector:@selector(
> onTimer) userInfo:nil repeats:NO];
... any object you want. A dictionary? A row number wrapped in an
NSNumber? A c
On Tue, May 12, 2009 at 10:21 AM, Eric E. Dolecki wrote:
> Here are my 2 methods:
>
> - (void)onTimer {
...
> [NSTimer scheduledTimerWithTimeInterval:0.3 target:self selector:@selector(
> onTimer) userInfo:nil repeats:NO];
Ah. I see your confusion. Take another look at the documentation for
-
So in my example, how would I do that exactly? I'd want to send the
tableView and indexPath, right? And then call the method on those references
in the timer's done method?
On Tue, May 12, 2009 at 10:25 AM, I. Savant wrote:
> On Tue, May 12, 2009 at 10:21 AM, Eric E. Dolecki
> wrote:
>
>
> >
Hello
I want that my app should have the dock menu "open at login" item selected
by default.
I have seen it in few apps.
Please tell me what to use for that.
Adv Thanx
--
--
Warm Regards,
Parimal Das
Software Engg.
Webyog Softworks
___
Cocoa-dev mail
On Tue, May 12, 2009 at 10:18 AM, sandeep chaudhary
wrote:
> I am using the NSTextView class. i have created the NSTextView control and
> create a outlet for this. Now i am adding some text on this control
> programatically. Text is shown on this field at run time. Now i want some
> word in
Hey all. I am looking for an example of using a NSTimer that sends along
specific data to the selector method - because I haven't been able to find
any examples online.
What I have is a didSelectRowAtIndexPath method, and I want to start the
cell animation selection... and then using a timer animat
Hi All,
I am using the NSTextView class. i have created the NSTextView control and
create a outlet for this. Now i am adding some text on this control
programatically. Text is shown on this field at run time. Now i want some word
in string to be shown on bold face and some in normal font.(for
2009/5/12 Dragan Milić :
> On uto 12. 05. 2009., at 06:54, Michael Ash wrote:
>
>> I think you've misunderstood. There is no problem with the fork/exec
>> approach here.
>
> You actually are spot on with that remark, my knowledge of UNIX system calls
> is not very broad, on the contrary it's rather
On Tue, May 12, 2009 at 8:50 AM, Mike Mangino
wrote:
>
> On May 12, 2009, at 12:58 AM, Michael Ash wrote:
> [snip]
>
>>
>> My suggestion would be, if at all possible, avoid creating the
>> NSInvocation manually at all. By far the nicest way to create an
>> invocation is by capturing it using the -
On Tue, May 12, 2009 at 9:00 AM, Drew Lawson wrote:
> Maybe I'm just psychic, or it could be because I made a bunch of
> newby mistakes 2-3 months ago, but it doesn't sound meaningless to
> me.
It's meaningless because it does not address what the OP is actually
seeing. Essentially, the term "
According to Andy Lee:
> On May 11, 2009, at 10:15 PM, jon wrote:
> > my wild guess right now is to do this below when ever i have the
> > "NSString" instance assignment to prevent, for instance, "theTitle"
> > from "randomly disappearing"...
>
> I hope the following doesn't sound harsh, beca
On May 12, 2009, at 12:58 AM, Michael Ash wrote:
[snip]
My suggestion would be, if at all possible, avoid creating the
NSInvocation manually at all. By far the nicest way to create an
invocation is by capturing it using the -forwardInvocation: method.
That way you create it using the same synt
On 12.5.2009, at 06:23, Graham Cox wrote:
On 12/05/2009, at 12:44 AM, Sahana A wrote:
We have a feature in our application wherein we have to draw a 1
pixel line. This drawing also varies relative to the zoom factor
of our view. For example
if we are drawing at a zoom factor of 200% we
Two observations with it on an iPhone project:
1. MallocStackLoggingNoCompact and 'Guard Malloc' do not work together
properly. At least no stack information gets recorded in the Simulator
with the guard enabled. Haven't tested this with a normal Cocoa
(desktop) project yet.
2. MallocStackLogging
On 12 May 2009, at 07:14, Chunk 1978 wrote:
Is it possible to have a view, say a simple square that is 5cm x 5cm,
always maintain it size regardless of the mac's resolution?
Yes.
it seems the only way possible to produce a square of 5cm x 5cm
programatically is to include the screens resolut
On 12/05/2009, at 6:55 PM, Michael Vannorsdel wrote:
You properly retain dataDict, now do the same with destinationPath
and you should be ok.
On May 11, 2009, at 3:10 AM, Ben Spam wrote:
if(!dataDict){ NSLog(@"No File"); dataDict =
[[NSMutableDictionary alloc] init];} else{[dataDict re
Peter,
Excellent, that solved the issue. Much appreciated.
Sincerely,
Kenny
On May 12, 2009, at 1:27 AM, peter.sch...@mac.com wrote:
Hi Kenny,
In your IKImageBrowserItem, you could implement:
- (NSUInteger)imageVersion;
Increasing this version and then calling IKImageBrowserView's
reloadD
On 12 May 2009, at 08:23, Jean-Daniel Dupas wrote:
Le 11 mai 09 à 23:06, Alastair Houghton a écrit :
I should explain what I meant a bit better. My point was more that
the bundle bit is HFS specific, so like the type and creator codes,
while it's good to set it, I'm not sure anything should
I am localizing my app into different languages, and I've noticed that
in some languages (e.g. Spanish, Italian) the built-in Search field
does not appear in the Help menu of my app, though it still appears in
other apps. What can be wrong with it? Thanks!
__
You need to retain destinationPath when you create it so it doesn't go
away. You properly retain dataDict, now do the same with
destinationPath and you should be ok. Also you don't need to retain
newRecord; the dictionary will retain it when you add it.
On May 11, 2009, at 3:10 AM, Ben S
Hi Kenny,
In your IKImageBrowserItem, you could implement:
- (NSUInteger)imageVersion;
Increasing this version and then calling IKImageBrowserView's
reloadData should do the trick.
Best wishes,
Peter
Peter Schols
Orbicule
http://www.macnification.com/
Date: Mon, 11 May 2009 01:25:58 -0
On May 11, 2009, at 10:24 PM, Patrick Mau wrote:
Hallo Chris
The NIB loading guide states that custom objects, like your model
object,
are created using 'initWithCoder' and not plain 'init'.
For many objects that is the case, but instances of "Custom View" and
"Custom Object" will be cr
Le 11 mai 09 à 23:06, Alastair Houghton a écrit :
On 11 May 2009, at 19:08, "Sean McBride"
wrote:
On 5/11/09 1:55 PM, Alastair Houghton said:
I'm not sure whether this is now classed as legacy behaviour, but on
HFS+ at least, Finder looks at the "bundle bit" to determine whether
somethi
83 matches
Mail list logo