We have a singleton with an -init that looks something like this:
- (id)init
{
if ((self = [super init]))
{
_foo = [[NSMutableDictionary alloc] init];
_bar = [[NSMutableDictionary alloc] init];
[[XYZManager sharedManager] addObserver:self forKeyPath:@"allObjects"
options:NSKeyValueObservingOpti
Ric
1) I've seen an alternative way of defining a method, with the
semicolon after the declaration, before the body:
- (NSArray *)sortedIncredients; <-- notice the semicolon
{
...
}
2) ... versus the standard declaration + body of the definition
(without the semicolon):
Hi All,
I have searched and can't find an answer to this. I am using
NSURLDownload in an internal application. I connect to a server and
download some files. Many times, the file name gets changed. I
download file.xslt but the download system turns it into
"file.xslt.xml" and then my app
:
Hi Marc.
Unfortunately, this is an Apple bug.
What Content-Type does the server return, and can you control that?
If so, then you can work around the bug by returning a custom
Content-Type that isn't recognized by other applications.
-Jeff
On Oct 21, 2009, at 1:17 PM, Marc Respass
Hi All,
My application has a requirement that it "locks out" the user after X minutes
of inactivity. I was using Uli Kusterer's excellent UKIdleTimer in my
application and it worked great. Then I upgraded to 64-bit and it does not work
any more. Does anyone have a good replacement or is my best
vin Wojniak escribió:
> CGEventSourceSecondsSinceLastEventType() is what you want. See here:
> http://www.noodlesoft.com/blog/2008/01/08/idle-hands/
>
>
> On May 10, 2010, at 1:26 PM, Marc Respass wrote:
>
>> Hi All,
>>
>> My application has a requirement that it &
Jeremy,
I would go with a toolbar that swaps views.
I think tab views are a fine control but before NSViewController, they were
used in a tab-less style in order to make it easy to swap views. I think that
approach is outdated. I would use a simple toolbar which you can setup in IB
and swap yo
Hi All,
I'm writing a Lion-only application and trying to do things more iOS-like
(which appears to be the direction but regardless, I like it) by creating
properties for my IBOutlets. I am using the latest Xcode 4.2 and ARC.
With Xcode 4, I can drag from a control to the header and Xcode will
; On Aug 8, 2011, at 5:21 PM, Sean McBride wrote:
>
>> On Fri, 5 Aug 2011 15:11:25 -0400, Marc Respass said:
>>
>>> With Xcode 4, I can drag from a control to the header and Xcode will
>>> create an outlet and a property. I noticed that Xcode creates a property
>
> Has anyone come across a sample app which demonstrates how to make a shoebox
> core data app which works with iCloud? I've dug into the documentation but I
> can't find any sample code. The "What's new in Core Data on Mac OS X" session
> from WWDC 2011 hints at some things but doesn't show any
Hi All,
My application is completely localized (though only two languages) everywhere
except the menu bar. I'm not sure what the best approach is to localize the
main menu. Some items like undo/redo are localized for me. Others are not. I
admit that I am a little surprised that standard system
Hi all,
I have an NSDocument based application and each document has its own core data
stack (NSPersistentDocument is inappropriate for my application). Each document
gets its own model, store coordinator, and object context. It occurred to me
that the model is the same model for each document
> I'm trying to prevent NSDocument from doing any saving at all, for a demo
> version of my app. I need to suppress the menu commands (done) and all the
> automated UI such as the 'save changes' dialog and 'Save As' dialog even
> though the doc is marked dirty. I've also removed the actual save
> I had not designed my program as a document-based application because I did
> not think that I would save and open data files. However, I have changed my
> viewpoint. It might also make implementing your suggestions easier.
>
Keep in mind that in an NSDocument-based application, your NSDocum
Hi Brian,
The technique that I have been using for a long time is to alloc/init the
window controller, make the window controller the delegate of the window, and
invoke [self autorelease] in windowWillClose:. It's essentially the same thing
you are doing with less code.
The thing that I love a
ur windowWillClose: (or perhaps
> windowDidClose:)
>
> Effectively you now have your delegate (yourself) retaining the thing to
> which it is a delegate, which isn't unusual.
>
> On 20-Jun-2011, at 3:35 AM, Marc Respass wrote:
>
>> Hi Brian,
>>
>> The techniqu
I have to come down strongly in favor of Xcode 4. I've only been using Apple's
dev tools since ProjectBuilder (not Project Builder) but Xcode 4 is definitely
the best since then. The built in IB, the ability to view your xib on one side
and the related "file's owner" code on the other and then d
Hi,
I have a need for a lot of different template images in my apps. I have worked
with my artist but she is not sure how to build a template image. We have both
researched it and we are not finding much good information. The docs on
template images say to use "black" and "clear" in the image b
as 6:03 PM, Ken Ferry escribió:
> On Fri, Sep 10, 2010 at 10:58 AM, Marc Respass wrote:
> Hi,
>
> I have a need for a lot of different template images in my apps. I have
> worked with my artist but she is not sure how to build a template image. We
> have both researched it and
Hi Abhijeet,
> Hi,I have a single window with a toolbar and a custom view in my application.
> Toolbar has Back and Next button on it. This is my MainMenu.xib. I have 5
> more xibs other than the MainMenu.xib in my application. Each xib contains
> one view with different controls in it. On Next
Hi All,
I have a master/detail table setup. When I select a row in the master, there
are one or two detail tables that need to be updated. There are also a bunch of
conditions that need to be checked to know what you can do to the master and
the details. I have just finished a lot of optimizati
7;s a reasonable idea to subclass NSTableView, note that I'm in a
key repeat and send the notification in keyUp if "wasRepeating" is YES. That
doesn't sound too bad, not too much code, no threading issues.
Marc
El may 3, 2012, a las 5:28 p.m., Quincey Morris escribió:
> On Ma
El may 3, 2012, a las 6:47 p.m., Quincey Morris escribió:
> On May 3, 2012, at 15:27 , Marc Respass wrote:
>
>> I ended up finding a solution that almost works perfectly.
>>
>> - (void)tableViewSelectionDidChange:(NSNotification *)aNotification;
>> {
>>
El may 3, 2012, a las 7:27 p.m., Quincey Morris escribió:
> On May 3, 2012, at 16:07 , Marc Respass wrote:
>
>> Do I have that correct?
>
> Yes, you do. :)
>
> Another way to think about it is this: the cancel suppresses all the selector
> performs except the la
El may 3, 2012, a las 10:38 p.m., Graham Cox escribió:
>
> On 04/05/2012, at 11:25 AM, Marc Respass wrote:
>
>> Excellent. Thank you again. [NSEvent keyRepeatInterval] returned 0.83 so
>> I set the delay to 0.9 and it works perfectly. What was a slow process is
>&
El may 4, 2012, a las 3:19 a.m., Quincey Morris escribió:
> On May 3, 2012, at 19:38 , Graham Cox wrote:
>
>> You probably should do this as your last line:
>>
>> [self performSelector: withObject:nil afterDelay:[NSEvent
>> keyRepeatInterval] + 0.1];
>>
>> because the key repeat rate is set b
El may 4, 2012, a las 1:02 p.m., Quincey Morris escribió:
> On May 4, 2012, at 08:25 , Marc Respass wrote:
>
>> When I set the delay to zero, there is no delay. My selector is called
>> immediately as if I didn't change anything.
>
>
> Not exactly. Conside
Hi John,
I am American but I've been studying Spanish for years so I run my Macs and
iDevices in Spanish but everything else is American (dates, punctuation, etc.).
It really sticks out (in a bad way) when an app is partially localized or,
based on my language setting, makes assumptions other t
> What I'm basically trying to do is call reloadData but with animation and I
> can't see how to do it? I know about removing/inserting rows with animation
> and I tried this, but I keep crashing and I would think it's because I'm
> removing rows and inserting rows after my datasource has been
> I'm also finding that NSSplitView's pane views seem to have the
> translatesAutoresizingMaskIntoConstraints property set to true by default,
> even when built strictly in IB. Is this correct? Xcode 4.3.2.
Hi Rick,
I really encourage you to watch all three WWDC 2012 videos on constraints. That
Hi All,
My NSViewController is the delegate of five different combo boxes in its view
but the delegate methods are not being called. They do get called sometimes,
but usually they do not. I haven't found exactly what the situation is where
the delegate methods get called. I implement comboBoxWi
ann wrote:
>
>>
>> On Jul 9, 2012, at 7:57 , Marc Respass wrote:
>>
>>>> I'm also finding that NSSplitView's pane views seem to have the
>>>> translatesAutoresizingMaskIntoConstraints property set to true by default,
>>>> even
> I have written a Mac app (with another, i.e. non-Cocoa, language), and now
> that I'm developing iOS apps in Xcode, I'd like to create an iOS app that can
> share its files. The file format is fairly straightforward SQLite, and I've
> determined that I can work with it just fine with the FMDB
Hi All,
I have run a number of searches and cannot find any documentation nor
examples for putting an image in a table column header. I tried
setting the table header column cell to an NSImageCell but that failed
fabulously. It seems that I need to sub-class NSTableHeaderCell and
draw the
column (or find it somehow) and in awakeFromNib,
NSImage *image = [NSImage imageNamed:@"CellImage"];
[[theColumn headerCell] setImage:image];
Now to figure out how to prevent the sort indicator from displaying :).
Thanks
Marc
On Jul 20, 2008, at 1:38 PM, Marc Respass wrote:
Hi All,
I
On Jul 20, 2008, at 2:05 PM, Adam R. Maxwell wrote:
On Jul 20, 2008, at 10:57 AM, Jean-Daniel Dupas wrote:
Le 20 juil. 08 à 19:54, Marc Respass a écrit :
Hi again,
I hate answering my own question but I did figure it out. I sub-
classed NSTableHeaderCell then created an instance using
Hi All,
I have an outline view connected to a tree controller and I want to
hide the disclosure triangle. I know that there is a data source
delegate method, - (BOOL)outlineView:(NSOutlineView *)outlineView
isItemExpandable:(id)item, but when I make my controller the data
source of the ou
Corbin, thank you very much. That did the trick! I did read the docs,
just not those docs. I'll pay more attention to the release notes in
the future :)
Thanks again
Marc
On Sep 19, 2008, at 11:07 AM, Corbin Dunn wrote:
On Sep 19, 2008, at 7:58 AM, Marc Respass wrote:
Hi All,
I
Hi All,
I am confused about how to prevent click through. My document puts up
a window when a button is clicked. I disable the button then display
the other window. If the user clicks off the other window (it resigns
key), then I close it and re-enable the button. But the main window
beco
Hi All,
I haven't registered for a creator code since System 7.5. Apple has
information and registration page (http://developer.apple.com/datatype/index.html
) about it but no indication if it's actually still required. Can
anyone tell me if it is still required or maybe point me at the righ
On Apr 1, 2008, at 4:22 PM, Ricky Sharp wrote:
On Apr 1, 2008, at 2:59 PM, Marc Respass wrote:
Hi All,
I haven't registered for a creator code since System 7.5. Apple has
information and registration page (http://developer.apple.com/datatype/index.html
) about it but no indication if
On Apr 1, 2008, at 4:26 PM, Andrew Farmer wrote:
On 01 Apr 08, at 12:59, Marc Respass wrote:
I haven't registered for a creator code since System 7.5. Apple has
information and registration page (http://developer.apple.com/datatype/index.html
) about it but no indication if it'
42 matches
Mail list logo