Binding to the file's owner has the side effect of retaining it. Owner owns
the view, the view owns the owner through binding -> this is a retain cycle.
Another thing that may interest you is that top-level objects in a nib
should be explicitly released when no NSWindowController is used to load t
hi, everyone,
I have a very oddball thing. I used UIImagePickerController in my app,
I choosed one photos ,show it and do something with image, then go
back subviews of photos to select other photo. sometimes when I do
that many times and go to first screen that show the category of all
ph
I need to get the current frame of a QTMovie object... The movie object
is assigned to a QTMovieView if this is of any help...
If there's no easy way to get the current frame, I guess I could always
calculate it using the "currentTime" method, which returns a QTTime
struct... but without the F
On Nov 3, 2008, at 1:25 PM, development2 wrote:
I need to create Hyperlink to the companies web site, but the link
will be in a NSTextField. How do I create a hyperlink in this text
field. I am sure it is something with NSMutableAttributedString but
can't seem to figure it out. I though may
On 05/11/2008, at 9:42 PM, Nathan Kinsinger wrote:
On Nov 3, 2008, at 1:25 PM, development2 wrote:
I need to create Hyperlink to the companies web site, but the link
will be in a NSTextField. How do I create a hyperlink in this text
field. I am sure it is something with NSMutableAttributed
On 5 Nov 2008, at 4:21 pm, Steven Riggs wrote:
Thanks for the clarification Graham. It seems that retrieving data
ordered (rows and columns) the same as the view is a common task.
Apples solutions are pretty well thought out and encompassing so I
was surprised there was not an easier way
Some more info.
I obtained a persistence reference of an auto generated Public key
calling the SecItemCopyMatching then I encoded it in base64 format.
After that I added the strings " BEGIN..." at the top and "
END..." at the bottom obtaining this final string an save it on a file:
Can anyone tell me what the following means and what is the cause?
I understand that it is a link error. Elsewhere, Graham Cox in
replying to a similar problem by another poster stated "This is a link
error. Add the QuartzCore framework to your project". I did exactly
that to no avail.
On 2008 Nov, 04, at 22:29, Chris Hanson wrote:
I'd actually caution you against this. Keep your processing
distinct from your user interface, don't mix the two. Use some form
of intermediate "status" object to pass information back to your
main thread for presentation to the user, rather
Hi All,
I am trying to do text wrapping like pages app does.
i added a View as subview of NSTextView.
i want the text inside the TextView to wrap around
the subview rect (as like in the pages app).
for (glyphIndex = glyphRange.location; glyphIndex < NSMaxRange(glyphRange);
glyphIndex++) {
NSPoint
is there any sample code regarding this ???
On Wed, Nov 5, 2008 at 7:09 PM, Sandeep Nair <[EMAIL PROTECTED]>wrote:
> Hi All,
> I am trying to do text wrapping like pages app does.
> i added a View as subview of NSTextView.
> i want the text inside the TextView to wrap around
> the subview rect (a
On 6 Nov 2008, at 12:58 am, Adil Saleem wrote:
I don't get it. If a user can not underline the text directly from
interface builder, then why is the option given in the font window
Because the Font Window is used all over the place, not just in IB.
But yes, the Font Window is actually a li
On 6 Nov 2008, at 12:39 am, Sandeep Nair wrote:
Hi All,
I am trying to do text wrapping like pages app does.
i added a View as subview of NSTextView.
i want the text inside the TextView to wrap around
the subview rect (as like in the pages app).
[]
anyone suggest me the right method to do th
Disclaimer: I am assuming that when you say "current frame", you mean
the current frame number relative to the beginning of the movie and
not the image that represents the current frame...
Add a Timecode track and use the related functions to get the counter
value. Check out the sample co
Hi Tom,
Setting the view controller as the nib's 'file's owner' won't create
the problem. The problem described in the documentation occurs when
you have set up bindings between objects in that nib file and the
'file's owner' (your view controller).
If you have done this, it could, indee
Hi Raphael and Cathy - thanks both for your replies.
I already implemented top-level objects relasing, that was simple
(although the objects are not released because dealloc is not
called...) - in fact my code is almoust identical to the one shown
below. On the other hand I do bind an NSArr
I don't get it. If a user can not underline the text directly from interface
builder, then why is the option given in the font window ?
Adil
--- On Tue, 11/4/08, Jonathan Hess <[EMAIL PROTECTED]> wrote:
From: Jonathan Hess <[EMAIL PROTECTED]>
Subject: Re: Underlining text in Interface Buil
is there any sample code that permitting text to wrap around embedded
graphics..
http://developer.apple.com/documentation/Cocoa/Conceptual/TextArchitecture/Concepts/CommonConfigs.html
On Wed, Nov 5, 2008 at 7:17 PM, Graham Cox <[EMAIL PROTECTED]> wrote:
>
> On 6 Nov 2008, at 12:39 am, Sandee
Hi Tom,
The design from the posts is identical to the one I use for the non-
NSViewController based view controllers that I have to use (for the
same reason as you) - so it can still work for you :) The concepts are
the same. You just have to deal with the extra issues that you're
talkin
On Nov 5, 2008, at 1:26 AM, Tomaž Kragelj wrote:
My application should be tiger compatible, so I can't use
NSViewController. I created a custom view controller class with
similar interface albeit much simpler. However I am not sure about
the following (taken from NSViewController documentat
I would like to take advantage of Key-Value Programming in my
application. Utilizing key-value programming I would like the ability
to iterate through all of my object's values or members. If I am
understanding NSObject's documentation right, I need to implement a
class description in order to get
Hi,
Just in case: did you invoke -[super finalize] in your own objects'
-finalize?
Raphael
On Wed, Nov 5, 2008 at 1:20 AM, Bill Bumgarner <[EMAIL PROTECTED]> wrote:
> On Nov 4, 2008, at 3:51 PM, Sean McBride wrote:
>
>> Thanks very much for your reply Bill.
>>
>> I'm afraid one of us is misunder
Le 5 nov. 08 à 16:43, Carmen Cerino Jr. a écrit :
I would like to take advantage of Key-Value Programming in my
application. Utilizing key-value programming I would like the ability
to iterate through all of my object's values or members. If I am
understanding NSObject's documentation right, I n
Hello,
I have an NSView derived class where I have to do some drawing inside
NSRect.
When pressing a start button, a timer is created with :
+ (NSTimer *)scheduledTimerWithTimeInterval:(NSTimeInterval)seconds
target:(id)targetselector:(SEL)aSelector userInfo:(id)userInfo repeats:
(BOOL)re
Does self implement the selector?
It sort of sounds like you're passing it a selector implemented by a
different class and not by whatever class is self in this instance.
The selector should be implemented by the target.
Devon
Daniel Luis dos Santos wrote:
In the target argument I pass self
On Nov 5, 2008, at 08:51, Daniel Luis dos Santos wrote:
In the target argument I pass self, and as selector a method of the
class in question. When update is called, the self object has the
address I passed when creating the timer. Inside the method I call
setNeedsDisplay: so the drawRect m
(Resend; I posted this yesterday but it hasn't shown up or bounced)
Adil Saleem wrote:
I am trying to underline a static text in Interface Builder (through
fonts window), but it does not underline the text. I don't understand
why. Any ideas ?
Try this:
1. In the inspector, check "Rich Text
Well I've tried both but I need a solution for the iPhone platform.
I've tried to post on the iPhone Dev Forum but I didn't get a reply so
I tried here.
Anyway, I've tried adding "RSA" in the header but it does work.
Moreover in this case I obtain a different error:
unable to load Public
Hello all!
Recently I've noticed that NSImage initialized from NSData with TIFF
is not displayed properly on dual screen systems. One screen displays
image correctly, but another one shows it completely wrong compared to
the same image opened on the same screen in Photoshop f.e. Farther
i
Hi John,
As a former Wacom OS X Software Engineer, I believe I can be of some
assistance.
There are 2 routes you can go. Easy and Hard.
Easy:
Just grab any pertinent tablet info out of the mouseDragged event. You
can make sure that the mouse event has tablet data via [event subType]
== N
Here are the following ways to see NSTabletPoint events (or -
tabletPoint:)
1. Between the mouseDown: and first mouseDragged:. During this period
of time, other tablet properties may be changing (such as pressure or
tilt). Once the user moves the pen enough to move the cursor at least
1 pi
Thank you very much. It solved my problem.
About my earlier mail on the topic, i was under the impression that it isn't
directly possible to underline text directly from Interface Builder. However,
this solution suggested by Mr. Walker works.
So now i think, the confusion no longer exists (at
Raleigh,
Thanks a lot for your suggestion. I have already tried the easy route, it
works, but people is not happy with that since when the pen is outside the
view, it won't draw on it. It's hard for user to keep the pen inside the
view. That is why I am looking for a better solution.
So it sounds
On Wed, Nov 5, 2008 at 2:03 PM, Tverdokhleb Andrey <[EMAIL PROTECTED]> wrote:
> Recently I've noticed that NSImage initialized from NSData with TIFF is not
> displayed properly on dual screen systems. One screen displays image
> correctly, but another one shows it completely wrong compared to the
On Nov 5, 2008, at 11:35 , I. Savant wrote:
On Wed, Nov 5, 2008 at 2:03 PM, Tverdokhleb Andrey
<[EMAIL PROTECTED]> wrote:
Recently I've noticed that NSImage initialized from NSData with
TIFF is not
displayed properly on dual screen systems. One screen displays image
correctly, but another
On Wed, Nov 5, 2008 at 2:57 PM, Tverdokhleb Andrey <[EMAIL PROTECTED]> wrote:
> Tried that and also tried to call recache - doesn't help at all.
> Another part of the story - if image was created in my application it
> actually works fine on all monitors untill I save it and open again. It all
> d
On 4 Nov 2008, at 17:32, Benjamin Stiglitz wrote:
PurchaseOrder is an Entity, with a relationship called products to
the
PurchaseOrderItems Entity which lists the actual items on the
order. I'd
like a column in my Purchase Order tabel to display the number of
items
in the order, so I've tri
Adam Penny wrote:
Actually, I just tried the link I mentioned and it didn't work.
I'm guessing that script uses Internet Connect.app, which was dropped
in 10.5.
There's an example of how to do exactly what you want on this page
though.
http://developer.apple.com/releasenotes/AppleScrip
Hi,
I have the feeling this may be a stupid question and that I'm missing the
obvious here, but...
My application comes with an interactive tutorial - that is, a tutorial that
uses my app's file format so that the user opens it in my app and learns how to
use the program by the very process of
I asked earlier about a couple of views that were going to be
alternating in a desktop app I am building and I have a related
question. These views are loosely related in a parent child manner
(but can operate completely independently as well.) The click of an
iTunes arrow style link in an
On Nov 5, 2008, at 12:04 , I. Savant wrote:
On Wed, Nov 5, 2008 at 2:57 PM, Tverdokhleb Andrey
<[EMAIL PROTECTED]> wrote:
Tried that and also tried to call recache - doesn't help at all.
Another part of the story - if image was created in my application it
actually works fine on all monitor
On Wed, Nov 5, 2008 at 4:29 PM, Tverdokhleb Andrey <[EMAIL PROTECTED]> wrote:
>> I'd file it with radarweb.
> Waste of time and no gratification for me at all ...
[ Snip ]
> Some workaround posted here would have a lot more value for developers and
> our users IMHO.
... the above two quotes s
i'm trying to figure out how to set the image browser to a specific
directory of images and load those images with [update datasource] in
the awakeFromNib method... currently, only drag and drop is possible,
and the datasource is set to the dropped object's path, but i'd like
to save all images dro
Hi,
When selecting a row in a NSTableView, the default highliting (white
text on blue background) doesn't work if the text is not black. Is
there a setting somewhere (in IB) or a method to implement/override to
fix that? I have a column's cell with its foreground color set to gray
and it'
On Nov 5, 2008, at 5:30 PM, Andre Masse wrote:
Hi,
When selecting a row in a NSTableView, the default highliting (white
text on blue background) doesn't work if the text is not black. Is
there a setting somewhere (in IB) or a method to implement/override
to fix that? I have a column's ce
I believe retuning an NSattributedstring for object value should work.
On Nov 5, 2008, at 11:30 PM, Andre Masse wrote:
Hi,
When selecting a row in a NSTableView, the default highliting (white
text on blue background) doesn't work if the text is not black. Is
there a setting somewhere (in
(resend, with the rest of the email, sorry!)
On Nov 5, 2008, at 5:30 PM, Andre Masse wrote:
Hi,
When selecting a row in a NSTableView, the default highliting (white
text on blue background) doesn't work if the text is not black. Is
there a setting somewhere (in IB) or a method to implement
Thanks Corbin. Quick and easy, I like that :-)
Andre Masse
On Nov 5, 2008, at 17:48, Corbin Dunn wrote:
If you set an explicit color on the cell, then it doesn't know it
should flip the black text to white text when it is selected (in
other words, it has no way of knowing that what you set
Thanks Mudi,
That's another way too.
Andre Masse
On Nov 5, 2008, at 17:47, Mudi Dandan wrote:
I believe retuning an NSattributedstring for object value should
work.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admi
On Nov 5, 2008, at 13:45 , I. Savant wrote:
Since you don't have a support incident available, you'll pretty
much have no choice but to rely on either engineers replying to your
radar ticket with a work-around or some generous soul to burn one of
their own incidents to help you.
Barring such
It's me again.
Thanks Roland for your advices.
Now, I have actually realized a way to handle touches and scrolling
methods at the same time.
Inside my UITextView subclass I wrote the touch regarding methods
implementation.
Then Inside the UIViewController subclass (wich has a instance of the
UITe
I hope this is the right place to write this question:
Well, I have created my table and created custom cells (they are
initialized with CGRectZero) and I have to be missing something
because I got the cells ok. But they are shown with an ugly square
corner even though the table is grouped style
On Nov 5, 2008, at 6:42 PM, Tverdokhleb Andrey wrote:
Anyway - I'll file the bug.
Theere ya go. ;-)
--
I.S.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contac
I've cleared out all my other code and associated problems, and I'm
at the same point, key path orderReference works, but
[EMAIL PROTECTED] doesn't?
[Session started at 2008-11-05 20:42:25 +.]
2008-11-05 20:42:28.462 powizard[22921] [<_NSFaultingMutableSet
0x165e910> addObserver:forKeyP
Hello.
I'm writing a "Source List View" using the NSOutlineView and an
NSTreeController.
It should work on Mac OS X 10.4 Tiger, so I can't use NSTreeNode.
My Source List View is based on Mark Alldritt’s source list view,
http://www.latenightsw.com/blog/?p=29.
Problem is that when a data sourc
However, if I get reference of an item in existing view and insert
new item in its data source, NSMutableArray, it can't display the
newly added nested items.
I tried NSTreeController's rearragneObjects and the NSOutlineView's
reloadItem:reloadChildren, but it doesn't seem to work for me.
As yet another way to do this, you can subclass the NSTableView and
override drawRow: clipRect:
Here's my code to give a background color to expandable rows in an
outline view (like in Mail.app).
// Override to draw expandable rows with background color.
- (void)drawRow:(int)rowIndex clipR
Is there a way to enumerate the outlets of an object automatically?
In a certain type of controller object I'm finding I'm writing a lot
of code like this:
[myOutlet1 setEnabled:NO];
[myOutlet2 setEnabled:NO];
... etc for another several dozen outlets ...
If I could get a list of outlets (ma
On Nov 5, 2008, at 9:13 PM, Graham Cox wrote:
Is there a way to enumerate the outlets of an object automatically?
In a certain type of controller object I'm finding I'm writing a lot
of code like this:
[myOutlet1 setEnabled:NO];
[myOutlet2 setEnabled:NO];
... etc for another several dozen o
I'm hitting a major performance bottleneck when using doubleClickAtIndex.
I have one sample file (about 3MB) with 23,500 hits that require me to
use doubleClickAtIndex: to test for whole words. It is essentially a
find/replace on full words.
One find all (with no replacement) operation takes about
On 6 Nov 2008, at 4:26 pm, David Duncan wrote:
If the 'enabled' state of all these objects are effectively tied to
a particular state, then why not use bindings? You could bind the
enabled state of these controls to a property of your controller
object and then you just set the property an
I haven't though of this. I solved the issue though, through Cathy's
proposal, by adding removeObservations method to my view controller
base class and call it from my NSWindowController implementation. Now
the dealloc is called as expected.
In one of my nibs I do use the file's owner as a
The "Late Night Cocoa" podcast episode on concurrent programming is
very helpful too--especially if you have seen the concepts in
operating system theory, but want a reminder of which Cocoa classes
correspond to those concepts.
http://www.mac-developer-network.com/podcasts/latenightcocoa/ep
It looked so trivial at the start, but didn't work as expected - my
single window application uses the following setup:
- MainMenu.nib: my AppController and all the NSArrayControllers with
bindings set properly so when an item is selected in the master
controller, it's details are handled b
64 matches
Mail list logo