Hi
I have been currently doing something like this.
In my chat view I have a scroll view and my text field is always with
keyboard open. I keep two variables to scale the scroll view content size as
the chat messages height get increased over time. So I set the content size
bigger if the messages
Ron Fleckner wrote:
I've finally worked out a way to pause a thread and would like to
know if what I'm doing is dangerous or bad or...?
Exactly what problem are you trying to solve?
Pausing a thread is always potentially dangerous. Any locks or
@synchronized blocks acquired before reachin
Has anyone else noticed some odd behavior in specifying UTI document
types supported by a custom QuickLook generator?
I'm experimenting with overriding several document types, including
the high-level general UTI public.content. But it doesn't work.
Similarly less, but still quite broad, do
I'm not sure if this is completely on-topic, but it seemed more
relevant here than the xcode list.
This issue has come up randomly a few times before, but it seems to be
persisting now. All of the sudden, seemingly caused by calling
memcpy(), my program freezes with the the message "GDB: Xc
On 08/11/2009, at 2:36 PM, Dave DeLong wrote:
Instead of a BOOL on the main thread, what about an NSLock? Start
off by locking it on the main thread, and then the secondary thread
can try to lock it, block (because it can't acquire the lock since
the main thread has it), and not resume un
On Sat, Nov 7, 2009 at 7:28 PM, Ron Fleckner wrote:
> This is a small proof-of-concept/test kind of project. I've had a look at
> NSConditionLock, but I don't get the concepts. So I've got this naïve
> solution, which is a kind of polling, I know, but it _seems_ to work quite
> well. The CPU usa
Instead of a BOOL on the main thread, what about an NSLock? Start off
by locking it on the main thread, and then the secondary thread can
try to lock it, block (because it can't acquire the lock since the
main thread has it), and not resume until the main thread unlocks it
(equivalent to t
Hi all,
I've finally worked out a way to pause a thread and would like to know
if what I'm doing is dangerous or bad or...?
This is a small proof-of-concept/test kind of project. I've had a look
at NSConditionLock, but I don't get the concepts. So I've got this
naïve solution, which is a
NSTextView will generally make sure that the selection is a reasonable
range. One complication is that in general NSTextView supports
multiple discontiguous selected ranges. If such a selection is in use
then just calling -selectedRange will not capture all of it. If there
are attachments i
NSTextView will usually take care of making sure that the selection is
a reasonable range. One complication is that in general NSTextView
supports multiple discontiguous selection ranges, and if such a
selection is in use, calling just -selectedRange will ignore it.
On Nov 7, 2009, at 6:0
I am trying to implement a custom ui view with a background image to
append
chat messages into a scroll view like in iPhone default Messages SMS
App.
But I have few things to clarify.
If its multiple lines how can I remove the image scaling so that it
would
not look like that background
You want to have a view that scales to multiple lines, and you want
that view to have a background. You further I desire said background
to not scale. Am I missing something? That doesn't make sense.
Luke
Sent from my iPhone.
On Nov 7, 2009, at 5:42 PM, Tharindu Madushanka
wrote:
Hi,
Hi everyone,
I'm creating an app that has a master-detail interface, similar to
iTunes. It has the same data hierarchy as iTunes' playlists (except
that I'm not allowing groups of "playlists" to keep things simple).
In other words, there are normal playlists where their only items are
a
On Sat, Nov 7, 2009 at 5:26 PM, Richard Somers
wrote:
> The problem is I need to know if the controller has content or not on the
> initial run loop. Is there any way to force the issue?
Why do you need this timing? Usually you could just get away with
binding to the controller's selection. If
On 8 Nov 2009, at 01:47, Ian Piper wrote:
Hi all,
I hope someone can illuminate me.
Erm, I just illuminated myself. First, I was typing AHGoToPage, not
AHGotoPage (though I think my version looks nicer). Second, I hadn't
added the Carbon Framework. Now that I have done both, it works fine
On Sat, Nov 7, 2009 at 7:38 AM, Samuel Ford wrote:
> I understand the nature of the problem -- the library path is wrong, it
> should be relative to the loader path not the executable (which, of course,
> is Automator.app, not my action).
If you are also using RegexKit in your app, and have bundl
Here is one:
-(NSString*) getSelectedTextInTextView:(NSTextView*)theTextView
{
NSRange range = [theTextView selectedRange];
NSData* rtfData = [theTextView RTFFromRange: range];
NSAttributedString* aStr = [[NSAttributedString alloc]
initWithRTFData:rtfData documentAttributes: NU
On Sat, Nov 7, 2009 at 5:57 PM, Todd Heberlein wrote:
> This seems like a simple task, but it has become a series of steps. Am I
> missing a simple method that will do this?
[[myTextView string] substringWithRange:[myTextView selectedRange];
(Warning, composed in Mail. Potential thorny issues w
This seems like a simple task, but it has become a series of steps. Am
I missing a simple method that will do this?
I have a Text View and want to get the selected text in an NSString
form. I can get an NSString for the entire NSTextView (-string), but
to get the string for just the selecte
Can this be rephrased in terms of
"I would like to find or write a function that I can call periodically
from my own processing loop, that handles all the Cocoa activities and
dispatching of events, such that I do not have to use the Cocoa
provided runloop ?"
On Thu, Nov 5, 2009 at 3:56 PM, Kevin
OK, I know this should be easy, but I can't figure it out.
I have an Automator action bundle that uses RegexKit as an embedded
framework in the bundle. The action won't load, though, because of
this error:
Library not loaded: @executable_path/../Frameworks/RegexKit.framework/
Versions/A/Re
Hi all,
I hope someone can illuminate me. I have been trying to follow the
Developer Documentation example for AHGoToPage. I have connected a
help button in the UI to an action called loadHelpForJournalEntry.
This is intended to load a help file called index.html. The help files
themselve
Hi,
I am trying to implement a custom ui view with a background image to append
chat messages into a scroll view like in iPhone default Messages SMS App.
But I have few things to clarify.
If its multiple lines how can I remove the image scaling so that it would
not look like that background image
I have a NSObjectController bound to a managed object context. The
controller automatically prepares content. When opening an existing
document the controller has content but during the initial run loop
the content is null. On the second run loop the controller has finally
found the content
On Sat, Nov 7, 2009 at 11:01 AM, Alastair Houghton <
alast...@alastairs-place.net> wrote:
> On 7 Nov 2009, at 14:17, Ryan Homer wrote:
>
> On 2009-11-06, at 12:42 PM, Clark Cox wrote:
>>
>> Is "ü" a single character, or two characters?
>>>
>>
>> When you define a string using ü, isn't it stored
Hi John,
You may get a better response posting on Installer-Dev...
http://lists.apple.com/mailman/listinfo/installer-dev
Matt
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
I just finished a Cocoa App, created installation package, but it
won't install. The package builds fine. I look in the contents of the
package and resources for my app are there. I run the package and it
goes through "successful" installation. But when done the application
is no where to b
On Sat, Nov 7, 2009 at 6:17 AM, Ryan Homer wrote:
> [SOLVED]
>
> On 2009-11-06, at 12:42 PM, Clark Cox wrote:
>
>> On Fri, Nov 6, 2009 at 5:22 AM, Ryan Homer wrote:
>>>
>>> On 2009-11-05, at 1:42 PM, Clark Cox wrote:
>>>
>>> Yes. I am importing characters from a text file and need to process them
Robert Monaghan wrote:
How does one figure out what type of removable volume is mounted?
Use the 'hdiutil' command to get info on dmg's. For example:
hdiutil info
or:
hdiutil info -plist
You can also correlate its output to statfs()-returned data.
-- GG
___
Hi Everyone,
Is there a way to determine if a mounted "removable" volume is a DMG or not? I
need to distinguish between a USB Stick and a DMG in my app. I have played with
statfs(), but I can't seem to figure out a tangible/concrete difference.
How does one figure out what type of removable vol
>
>
> I'll probably end up using the "merge..." method available but that makes
> me feel bad to save a document automatically when the user should be the
> only one responsible for this. For example, the user will not be able to use
> the "Revert" command from the File menu to restore his document
On 7 Nov 2009, at 14:17, Ryan Homer wrote:
On 2009-11-06, at 12:42 PM, Clark Cox wrote:
Is "ü" a single character, or two characters?
When you define a string using ü, isn't it stored internally as one
UTF-16 code unit (not sure if I'm using the notation correctly),
represented as U+00FC
On Nov 7, 2009, at 5:41 AM, Graham Cox wrote:
On 07/11/2009, at 7:19 AM, Carlo Caione wrote:
in an application I need to populate a popup button with at least
twenty entries.
What is the correct place where I have to store labels?
Can a property list be a good idea or is it better to leave
[SOLVED]
On 2009-11-06, at 12:42 PM, Clark Cox wrote:
On Fri, Nov 6, 2009 at 5:22 AM, Ryan Homer
wrote:
On 2009-11-05, at 1:42 PM, Clark Cox wrote:
Yes. I am importing characters from a text file and need to process
them in
a certain way. A word may have an alternate form which is denoted
But why don’t you want to save?
If you just want your objects in memory, why use CoreData at all?
Hi atze,
I'll probably end up using the "merge..." method available but that
makes me feel bad to save a document automatically when the user
should be the only one responsible for this. For ex
Am 07.11.2009 um 09:39 schrieb Eric Morand:
The NSManagedObjectContext is your scratchpad. If you want
something inside it fetch it or create it.
If you change something, the change will be promoted.
Hi atze,
Actually, the change will be promoted only when they are committed
to the stor
The NSManagedObjectContext is your scratchpad. If you want something
inside it fetch it or create it.
If you change something, the change will be promoted.
Hi atze,
Actually, the change will be promoted only when they are committed to
the store, and that implies a save on the disk. Or
37 matches
Mail list logo