On Fri, 4 Jun 2010 21:16:50 -0500, Alejandro Marcos Arag?n
said:
>I've been trying to detect touch and hold vs touch on a subclass of UIButton.
I think you want to imitate Listing 3-3 of Event Handling in the iPhone
Application Programming Guide, handling the touches yourself. m.
--
matt neubur
On Sat, 05 Jun 2010 22:14:22 +0100, Jean-Fran?ois Brouillet
said:
>So ... is there a way to refer to NIB1.objA from NIB2.objB ?
This is probably the most FAQ in the entire Cocoa universe, so check the
archives. But basically it's up to YOU to organize things so that there's a
chain of references
or if you are coding for 3.2 or later, use a UILongPressGestureRecognizer and
let it do all the work.
On 06-Jun-2010, at 12:36 AM, Scott Andrew wrote:
> I believe the way to do this is to setup a timer on touchDown to fire once
> after X number of seconds. Your touchUp and touchCancelled shoul
A solution to my own problem. This is from a category I created for
PDFDocument. Seems to work. The + and - 1's are strictly trial and error. Seems
to work, even with some pretty complex PDFS (created by comicLife, for
instance). Probably not the pithiest way to do this (ans is completely
super
On Jun 3, 2010, at 10:27 AM, Marcin Górski wrote:
> - (id)init {
> [super init];
> [self registerForDraggedTypes: [NSArray arrayWithObject:
> NSFilenamesPboardType]];
> return self;
> }
That method won’t be called. Objects loaded from nibs don’t go through the same
initializa
On Jun 5, 2010, at 2:00 PM, Development wrote:
> What I need to do is have a backwards copy of the data in memory that I can
> quickly dump. The thing is I'm not entirely sure how I would go about getting
> the data in to a new object backwards. Any ideas?
Create a new NSMutableData of the sam
On Jun 3, 2010, at 1:27 PM, Marcin Górski wrote:
> In my AppController class (main class in app) I create new myView object and
> in Interface Builder this object is connected with a Custom View layout. But
> when I run my app and try anything from Finder the console remains silent.
> Can anyone
hi-
i'm adding an NSSearchField to an NSMenu by creating an NSMenuItem
and calling setView with the search field as the argument. i'm able to display
the search field properly, but it doesn't gain focus (no blinking cursor in the
search field) either when the NSMenu is displayed or when i click o
// Option 2
NSImage *image
= [[NSImage alloc] initWithContentsOfFile: inPath];
/* do some stuff */
[image release];
It seems very likely that the error is in the "do some stuff".
I bui
> When my application opens a text file, the insertion point is blinking
> immediately after the last character on the last line. If I then hit the tab
> key, the insertion point moves over the correct distance. However, if I hit
> the return key when the file is first opened, the insertion po
Hello,
I'm new to Cocoa programming. I would like to be able to drag filenames from
Finder to a custom view in my application. Both previous mails and Mr. Google
redirect to Drag and Drop Programming Topics for Cocoa
(http://developer.apple.com/documentation/Cocoa/Conceptual/DragandDrop/) . I'v
On Saturday, June 05, 2010, at 05:51PM, "WT" wrote:
>I need to hijack the set of touch events sent to a UITableView instance prior
>to allowing the table to process those events.
>
>I have a custom UIView, of which the table view is a subview, and I override
>-hitTest:withEvent: there (in the
Thanks, Ross and Paul, I've finally got things working the way I wanted.
Here's what my code now looks like (in case someone else has a similar problem):
- (void)updateView {
[[self textView] setString:[self string]]; // replaced textView
with [self textView] 6-8-06
NSText
I need to hijack the set of touch events sent to a UITableView instance prior
to allowing the table to process those events.
I have a custom UIView, of which the table view is a subview, and I override
-hitTest:withEvent: there (in the custom view) to return self, thereby
preventing the table f
Hi.
Consider the situation where I have a "root" ImageView in IB.
I specify the actual image I want it to hold by just filling/
selecting which of the existing images are already present in the
project, using the "Image" input box of the Image View Attributes
inspector.
Then I can just set the ti
I have an NSData object I'm using because they are easier than buffers.
What I need to do is have a backwards copy of the data in memory that I can
quickly dump. The thing is I'm not entirely sure how I would go about getting
the data in to a new object backwards. Any ideas?
Thanks
___
Dear programmers,
I think I must be missing some simple method in the api to do this, but, given
a range of a PDFDocument string, how do I convert that to a selection? I found
the PDFPage selection from range, but how do I find what pages a selection for
the document string covers?
Thanks for a
HiL
I have this window with two NSTextView in it, and i changed the color
of the selected text's background to pink on one of the NSTextView and
when i click the other one it lost the focus and the color goes to
gray, is there anyway that maintin the colro pink no matter if the
NStextView has the f
On or about 6/2/10 11:11 AM, thus spake "Greg Parker" :
> On Jun 2, 2010, at 8:57 AM, Matt Neuburg wrote:
>> So this appears to be a technique for implementing a highly informal
>> protocol. (The technique is: define a protocol, don't bother adopting it
>> anywhere, but send messages defined in th
I believe the way to do this is to setup a timer on touchDown to fire once
after X number of seconds. Your touchUp and touchCancelled should kill the
timer if the timer is exists and is not invalidated. If you hit the timer you
are being held. When the timer is hit you restart the timer again fo
On Jun 5, 2010, at 1:09 AM, Boyd Collier wrote:
> In an application I'm working on, I read in plain text files containing data
> to be analyzed. This uses a slightly-modified version of MyDocument.m that
> is produced as a result of starting a project with the template for
> NSDocument archite
21 matches
Mail list logo