Re: Core Data with ODBC databases?

2013-10-17 Thread Brad Gibbs
read and/or write operations, for optimal performance consider using multiple persistent store coordinators when designing your Core Data stack. NextPrevious On Oct 17, 2013, at 4:35 PM, Jens Alfke wrote: > > On Oct 17, 2013, at 11:05 AM, Brad Gibbs wrote: > >> Regarding y

Re: Core Data with ODBC databases?

2013-10-17 Thread Brad Gibbs
: > > On Oct 17, 2013, at 8:19 AM, Brad Gibbs wrote: > >> Core Data is still a local cache being used by a single user, but instead of >> persisting to the local disk, it’s persisting to the Postgres server. > > But not directly, right? You said there was a Rails app in

Re: Core Data with ODBC databases?

2013-10-17 Thread Brad Gibbs
common problems. Maybe something like AFIS can solve 80% of the most common problems elegantly and leave room for devs to solve the remaining 20% on a case-by-case basis. On Oct 17, 2013, at 11:45 AM, Scott Ribe wrote: > On Oct 17, 2013, at 9:19 AM, Brad Gibbs wrote: > >> As fo

Re: Core Data with ODBC databases?

2013-10-17 Thread Brad Gibbs
Mattt also has a Rack Middleware project called Rack::CoreData that links to a Core Data model and builds out a RESTful web service based on the Core Data model. https://github.com/mattt/rack-core-data and a more comprehensive solution that incorporates AFIS, AFN, Rack::CoreData, Passbook and

Re: Core Data with ODBC databases?

2013-10-17 Thread Brad Gibbs
his frustrating, because EO was truly revolutionary and even today > competes well against similar projects, and it hasn't been actively updated > for at LEAST > 5 years. > > Dru > > On Oct 17, 2013, at 8:05 AM, Brad Gibbs wrote: > >> I don’t have a degree in

Re: Core Data with ODBC databases?

2013-10-17 Thread Brad Gibbs
I don’t have a degree in comp sci and, while I program in Cocoa and Rails on a daily basis, it’s not my primary job function, so, I’m sure I don’t fully appreciate a statement like “Core Data has no semantics for asynchronous, failed, or cancelable operations.” I’m not in any way trying to pick

Re: AVFoundation -- Authorization for Playback of Protected Content?

2011-04-17 Thread Brad Gibbs
Thanks for the response. On the desktop, I'd be limited to AppleScript control over iTunes or Quicktime Player X? QTKit can't play protected content, can it? On Apr 17, 2011, at 9:17 AM, Eli Bach wrote: > > On Apr 17, 2011, at 10:10 AM, Brad Gibbs wrote: > >&g

AVFoundation -- Authorization for Playback of Protected Content?

2011-04-17 Thread Brad Gibbs
There's a note in AV Foundation Release Notes for iOS 4.3 that reads: Note that the value of each of these properties is YES even if the associated operation is only conditionally supported. Examples: playable is YES even if the asset has protected content and requires authorization of both the

iTunes Scripting Bridge - -fullScreen not working with iTunes 10?

2010-09-12 Thread Brad Gibbs
I've been trying [self.iTunesApp setFullScreen:YES] and self.iTunesApp.fullScreen = YES but [self.iTunesApp lastError] always returns NULL, despite the fact that iTunes is not going fullscreen. I've also tried setting the bounds of the main browser window to the frame of the screen, which work

Sample App Similar to Core Data Data Modeler?

2010-08-24 Thread Brad Gibbs
Hi, I've been looking for some sample code similar to Core Data's data modeler. I've seen TreeView and I've watched the Crafting Custom Views presentation from WWDC 2010. Both are excellent, but, I'm hoping to find some code that shows views representing data that are connected with lines. I

Re: Core Data Lightweight Migration Woes

2010-08-21 Thread Brad Gibbs
... On Aug 21, 2010, at 7:37 AM, Jack Nutting wrote: > On Fri, Aug 20, 2010 at 8:46 PM, Brad Gibbs wrote: >> I highlighted the .xcdatamodel and did a Design > Data Model > Add New >> Version. That created the Config.xcdatamodeld with an unnumbered version of >> the dat

Re: Core Data Lightweight Migration Woes

2010-08-20 Thread Brad Gibbs
I'm still having some serious issues. I've tried all suggestions from all three responses. One or two of the suggestions worked once or twice, but nothing worked reliably. Is it possible that the dataModel itself is corrupt? I rebuilt it by creating a new data model and copying all of the o

Core Data Lightweight Migration Woes

2010-08-19 Thread Brad Gibbs
I'm still having problems migrating to a new version of my data model. I created a small project to test migration and everything worked smoothly -- so smoothly that trying to get it to fail wasn't easy. But, doing the same sorts of things to migrate to a new version of the data model in my ma

MOC Migrations Using .xcdatamodeld

2010-08-13 Thread Brad Gibbs
I'm having some real problems performing my first migration. I'm trying to add a single attribute to two entities in my model. I created a new version of the model using Design > Data Model > Add Model Version. This converted the .xcdatamodel into a .xcdatamodeld with two model versions. I r

Re: Core Data : Multiuser ?

2010-08-07 Thread Brad Gibbs
> my breath for robust, multi-user Core Data. > > Hunter > > On Aug 7, 2010, at 8:43 AM, Brad Gibbs wrote: > >> Also, I attended a session at WWDC this year that describes extending Core >> Data for use in a multi-user environment. I'd have to watch the video agai

Re: Core Data : Multiuser ?

2010-08-07 Thread Brad Gibbs
I've been developing an app meant to run strictly on a local network. I'd like to have the capacity to run 50 clients and a single server (although most installations will have fewer than 20 clients). My plan has been to have each client maintain its own Core Data database and sync with the Co

Re: Error 134100 - Core Data models incompatible

2010-05-25 Thread Brad Gibbs
GMail wrote: > Well said. > > Sent from my iPad > > On May 20, 2010, at 6:54 PM, Fritz Anderson wrote: > >> On 20 May 2010, at 4:13 PM, Brad Gibbs wrote: >> >>> Mac OS X 10.6.2, iPhone OS 4.0 beta 2 (although the iPad client started >>> life before th

Error 134100 - Core Data models incompatible

2010-05-20 Thread Brad Gibbs
Hi, I'm writing an iPad app with an OS X-based configuration utility. The user enters data in the OS X-based config utility and exports it. The iPad then picks up the SQLite file and uses it as its persistent store. This was working fine 2 months ago. I took a break on the iPad app to make

[iPhone] Nested UIViewControllers, InterfaceOrientation & Rotation

2010-03-25 Thread Brad Gibbs
I've done some reading and some testing, but can't seem to make this work properly -- ie, I can't get a nested VC's interfaceOrientation property to update to the current interfaceOrientation of the device. I've got a main UIViewController with code to support a toolbar with buttons across the

Re: iCal-style NSTextFields

2010-01-14 Thread Brad Gibbs
or remove fields is also not insignificant. On Jan 13, 2010, at 2:23 PM, Josh Abernathy wrote: > This sounds more like a CoreData or general controller problem than anything > specific to iCal-style text fields. You might want to create a new thread for > this. > > >

Re: iCal-style NSTextFields

2010-01-13 Thread Brad Gibbs
I'm trying to implement this. I created a custom NSTextField subclass, called ICNTextField. When an ICNTextField instance receives a mouseDown event, it initializes a custom NSWindow subclass with a borderless window mask. In the window subclass, I've overridden -canBecomeKeyWindow: so that i

Re: Core Data Bindings: NSFaultingMutableSet...addObserver...notSupported

2009-12-31 Thread Brad Gibbs
the list of projects to show only the projects for the newly-selected account. Everything seems to be working fine, now. Thanks again. Brad On Dec 30, 2009, at 12:44 PM, Quincey Morris wrote: > On Dec 30, 2009, at 10:12, Brad Gibbs wrote: > >> Account <--->>Pro

Core Data Bindings: NSFaultingMutableSet...addObserver...notSupported

2009-12-30 Thread Brad Gibbs
Hi, I'm trying to bind through a keyPath, but I'm getting nothing but errors. The most common is: [<_NSFaultingMutableSet 0x200267fe0> addObserver:forKeyPath:options:context:] is not supported. Key path: projectCode I've read that bindings don't necessarily cause faults to fire, but I've got

Re: Does NSData rearrange the order of bits?

2009-11-30 Thread Brad Gibbs
wrote: > > On Nov 30, 2009, at 11:27 AM, Brad Gibbs wrote: > >> I'm doing bit-packing via a C function. Logging the bits of the C function >> shows the expected result. If I create a string with a hex value format, I >> get the correct hex string, but, if I try

Does NSData rearrange the order of bits?

2009-11-30 Thread Brad Gibbs
Hi, I'm doing bit-packing via a C function. Logging the bits of the C function shows the expected result. If I create a string with a hex value format, I get the correct hex string, but, if I try to put the bytes into an NSData object with [NSData dataWithBytes: length], the order of the bits

Looking for PCI card with IR transmitter ports and OS X drivers

2009-11-25 Thread Brad Gibbs
Hi, I couldn't find a dedicated hardware list, so, I thought I'd post this here. I've Googled this several times over the past year or so, but can't find anything relevant. I'm looking for a PCI card or even a USB or firewire device with 3.5mm ports for IR transmitters (or bugs or eyes) and OS

Re: keyPathsForValuesAffectingValueFor: not updating immediately

2009-10-27 Thread Brad Gibbs
wrote: On Tue, Oct 27, 2009 at 11:39 AM, Brad Gibbs wrote: I don't think there's anything wrong with the method -- I've used it successfully in other apps and have seen it work in Apple sample apps, it just isn't working in this particular case. I'm sure that the

Re: keyPathsForValuesAffectingValueFor: not updating immediately

2009-10-27 Thread Brad Gibbs
NSSet setWithObjects:@"streetAddress", @"city", @"state", @"zipCode", nil]; } On Oct 26, 2009, at 7:43 PM, Jim Correia wrote: On Mon, Oct 26, 2009 at 10:03 PM, Brad Gibbs wrote: I did read the documentation, which is why I used +keyPathsForVal

Re: keyPathsForValuesAffectingValueFor: not updating immediately

2009-10-26 Thread Brad Gibbs
26, 2009, at 9:07 PM, Brad Gibbs wrote: I have a Core Data app with a category on a model object, Address. The category has a method to return a fullAddress property, which is composed of the streetAddress, city, state and zipCode. Did you read the documentation for this method? "Note

keyPathsForValuesAffectingValueFor: not updating immediately

2009-10-26 Thread Brad Gibbs
Hi, I have a Core Data app with a category on a model object, Address. The category has a method to return a fullAddress property, which is composed of the streetAddress, city, state and zipCode. Updating one of the dependent properties only updates the fullAddress property after I've sw

NSToolbarGroupItem not showing labels of subitems

2009-10-05 Thread Brad Gibbs
Hi, I'm trying to create a toolbar with NSSegmentedControl as a custom view for an NSToolbarItemGroup in 10.6, but I can't get the labels for the subitems to appear. I added an NSSegmentedControl to the toolbar item in IB and set images in the segmented control in IB. I did not give the

Address Book-style editing

2009-10-01 Thread Brad Gibbs
Hi, I'm trying to re-create Address Book's editing style - if a user pushes a button labeled Edit, subsequent clicks on a label bring up what looks like a separate view for the new information. Clicking return after editing commits the edit and moves on to the next field. I'd also like t

Easy Question re NSWindowController

2009-09-05 Thread Brad Gibbs
I've done some testing, but I just can't make this work... I have an NSWindowController that manages a pop-up window and a button in the main window that launches the pop-up window when it's pressed. I need to pass a managedObjectContext to the window controller. If I create the NSWindowCo

Re: Multi-User DB That Talks to Core Data?

2009-08-14 Thread Brad Gibbs
ch easier using Core Data (and, I've already actually started working on it). On Aug 14, 2009, at 10:13 AM, Kyle Sluder wrote: On Aug 14, 2009, at 10:02 AM, Brad Gibbs wrote: I'm trying to create a single-user app that uses Core Data, but gets the data for its object graph from a

Re: Multi-User DB That Talks to Core Data?

2009-08-14 Thread Brad Gibbs
I understand that Core Data is an object graph management tool, rather than a database. I'm trying to create a single-user app that uses Core Data, but gets the data for its object graph from a multi-user database app. For instance, product information stored in the main database app could

Multi-User DB That Talks to Core Data?

2009-08-14 Thread Brad Gibbs
I'm trying to meet the following requirements: 1. Back-end multi-user database to manage products, contacts, projects, inventory, etc. 2. Ability to access and edit that DB over the Internet and the iPhone 3. Ability to import/export some data in the main database to/from a single-user Co

***SOLVED*** Re: NSArrayController Managing / Sorting NSManagedObjects

2009-08-08 Thread Brad Gibbs
I found some sample code that addresses this: http://shanecrawford.org/2008/37/sorting-a-coredata-backed-nsarraycontroller/ On Aug 7, 2009, at 2:50 PM, Brad Gibbs wrote: Hi, I have an NSTableView that displays a set of Activity objects, which are subclasses of NSManagedObject, all of

Re: Giving the Root Object of an Outline View a Different Background Color.

2009-08-08 Thread Brad Gibbs
Apple has a sample app called DragNDropOutlineView that's helpful when getting comfortable with outline views. Also, Jonathan Dann has two useful outline view sample apps -- one to show sorting with Core Data and another that animates the expansion of a root object to reveal its contents (

NSArrayController Managing / Sorting NSManagedObjects

2009-08-07 Thread Brad Gibbs
Hi, I have an NSTableView that displays a set of Activity objects, which are subclasses of NSManagedObject, all of which are managed by a custom NSArrayController. Each Activity has a sortIndex property, which is used to... wait for it... sort the activities. The array controller adds lo

Anyone Using ZeroC's Internet Communications Engine (ICE)?

2009-07-28 Thread Brad Gibbs
Is anyone here using ZeroC's Internet Communications Engine? I found it in Apple's Developer Downloads section. Looks like a worthy replacement for DO and they've recently added support for iPhone OS. Just wondering whether it's worth looking into further for an app I'm working on that r

Re: iTunes DB Change Notifications?

2009-07-27 Thread Brad Gibbs
omplicated. On Jul 27, 2009, at 10:48 AM, Kyle Sluder wrote: On Jul 27, 2009, at 10:38 AM, Brad Gibbs wrote: Are there change notifications for the iTunes database? I'd like to have an iTunes client on a different machine on the local network be notified of changes, rather than h

iTunes DB Change Notifications?

2009-07-27 Thread Brad Gibbs
I've looked through the docs and Googled, but may not be looking for the right terms. Are there change notifications for the iTunes database? I'd like to have an iTunes client on a different machine on the local network be notified of changes, rather than having to poll and reload the da

Re: Custom NSArrayController - Dynamic Class?

2009-07-18 Thread Brad Gibbs
t the end of the world, but if there's a cleaner way to do this, I'd like to learn about it. Thanks for all of your help. Brad On Jul 18, 2009, at 12:24 PM, Quincey Morris wrote: On Jul 18, 2009, at 10:36, Brad Gibbs wrote: Can I use that to indicate the type for the argume

Custom NSArrayController - Dynamic Class?

2009-07-18 Thread Brad Gibbs
I have a Core Data app and several tables for adding various entities. I want to add an index to each new object so I can sort them after fetching. I've been using a custom NSArrayController and overriding the addObject:, insertObject: atArrangedObjectIndex:, and removeObject: methods to

Public API for AirTunes?

2009-07-17 Thread Brad Gibbs
Hi, I've been looking for a public API for AirTunes without success. Maybe I have the wrong name? Is it available under another name? There are a number of apps out now that use AirTunes (VLC, Rogue Amoeba's AirFoil, FireFly and others). Are they all hacking the daap? Daap is pretty

Re: iTunes COM interface for Windows; need the equivalent for

2009-07-17 Thread Brad Gibbs
Thanks for sharing your code, George. Is there any way to access AirTunes with Objective-C / Cocoa or AppleScript? I've seen some information on daap that allows the use of AirTunes, but it's a private API, so I'm hesitant to use it, even for my own personal projects. Although, given the

Looking for a Mentor in the SF Bay Area

2009-07-01 Thread Brad Gibbs
Hi, I'm looking for an experienced Objective-C programmer in the SF Bay Area with a little extra time on his / her hands to meet for an hour or two per week and correspond over e-mail. I *think* I have a decent grasp of the basics (I'm currently trying things with Core Data, Core Animatio

UML Diagramming or Other Helpful Software?

2009-06-23 Thread Brad Gibbs
Hi, I'm wondering if there are some tools commonly in use in the Mac software development community for diagramming an app, creating use cases and / or requirements, etc. I've seen OmniGraffle and ConceptDraw. I'm just wondering how other people go about laying out their apps from 30,00

Re: Passing References During Initialization / Nib Loading

2009-06-12 Thread Brad Gibbs
There's a great macro available for creating singletons on the cocoa with love blog. It's dead simple to use and it does override init and copy methods to make sure only one instance is created. On Jun 12, 2009, at 8:50 AM, Michael Ash wrote: On Fri, Jun 12, 2009 at 4:13 AM, Quincey Morr

Re: Passing References During Initialization / Nib Loading

2009-06-11 Thread Brad Gibbs
hmm... Sounds like a clever solution. On Jun 11, 2009, at 4:30 PM, Kyle Sluder wrote: On Thu, Jun 11, 2009 at 3:53 PM, Brad Gibbs wrote: I have a single window application. It's a Core Data, non-document- based app. At launch, the appDelegate loads the mainWindowController,

Re: Passing References During Initialization / Nib Loading

2009-06-11 Thread Brad Gibbs
nibs, but I ran into the problem I'm trying to describe. Yes, I'm using 10.6, but I think the problem can be abstracted enough to be discussed without breaking the NDA. On Jun 11, 2009, at 1:59 PM, Quincey Morris wrote: On Jun 11, 2009, at 11:52, Brad Gibbs wrote: In short, I ne

Re: Passing References During Initialization / Nib Loading

2009-06-11 Thread Brad Gibbs
eds to load as the view is loading, so, I'd effectively be performing each fetch twice, wouldn't I? Thanks. On Jun 11, 2009, at 12:45 PM, Brad Gibbs wrote: Well, I've got about 20+ different view controllers I was trying to avoid dropping all of those into the main win

Re: Passing References During Initialization / Nib Loading

2009-06-11 Thread Brad Gibbs
as being called after awakeFromNib. On Jun 11, 2009, at 11:58 AM, Kyle Sluder wrote: On Thu, Jun 11, 2009 at 11:52 AM, Brad Gibbs wrote: Is there something I'm missing? It sounds like you're going about it wrong. Create outlets on your objects and wire them up to your window contro

Passing References During Initialization / Nib Loading

2009-06-11 Thread Brad Gibbs
Hi, In short, I need a more reliable way to pass references to my MainWindowController into objects that are awaking from nib files. Trying to set the mMainWindowController variable to self.view.window.windowController in the awakeFromNib method seems to be happening before the MainWindo

DVDPlayer & Deinterlacing

2009-05-11 Thread Brad Gibbs
Hi, It looks like the Scripting Bridge header file for Apple's DVD Player offers nearly the same options as the DVDPlayer framework, and neither seem to offer control over the deinterlacing options present in the DVD Player app itself. Apple's deinterlacing actually became pretty respect

Scrolling Title in IKImageBrowserView?

2009-01-25 Thread Brad Gibbs
Is it possible to set the title of an image in an IKImageBrowserView to scroll when the item is selected? Thanks. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the

Displaying an NSSet in a Single Table Cell?

2009-01-25 Thread Brad Gibbs
I have a Core Data app for cataloging objects. Each object has a to- many relationship for Type that describes the type of the object. An object can have multiple types (hence, the to-many relationship...) -- usually 2-4 types per object. Objects are displayed in a table, one per row. I m

Search Fields, Array Controllers and Multiple NIBs

2009-01-19 Thread Brad Gibbs
I'm having a fundamental disagreement with Cocoa and I'm really hoping someone can help me see it her way... I have a Core Data app with a container view controller and multiple subviews, each with a view controller and a separate NIB. Subview switching is done via a segmented control. Th

Re: Sample Code from WWDC 2008?

2009-01-17 Thread Brad Gibbs
) you can pick a track-specific reference library. The sample code will be available there. -rob. On Jan 17, 2009, at 12:22 PM, Brad Gibbs wrote: I attended a couple of great sessions on Core Data at WWDC 2008. I believe I remember the presenters saying that the code developed in those se

Sample Code from WWDC 2008?

2009-01-17 Thread Brad Gibbs
I attended a couple of great sessions on Core Data at WWDC 2008. I believe I remember the presenters saying that the code developed in those sessions was going to be made available to attendees (I believe it was going to be made available in two versions -- one emphasizing the use of bindi

Scripting Bridge: Targeting Another Mac on the LAN

2009-01-05 Thread Brad Gibbs
Happy New Year. I'm trying to create a small app to control Apple's DVD Player on a Mac Mini using a MacBook Pro. I've got a small start with Scripting Bridge and I have control over the DVD Player app on my laptop. I've read through the Distributed Objects documentation and Async Socket

NSNumberFormatter & Currency Symbol

2008-11-18 Thread Brad Gibbs
Is it possible to have a text field with a currency symbol that appears automatically? For instance, if the user types 400, $400.00 appears in the text field. I've been using IB's formatter with 10.4+ and I don't see any options that would allow for this. As it stands, if the formatter i

Re: Core Data, Filtering by PopUps & Bindings Confusion

2008-11-14 Thread Brad Gibbs
entedObject.children but nothing showed up in the typesPUB. Re: Core Data, Filtering by PopUps & Bindings Confusion FROM : Quincey Morris DATE : Fri Nov 14 22:31:26 2008 On Nov 14, 2008, at 12:06, Brad Gibbs wrote: > I've been using Jonathan Dann's excellent Core Data Sorted

Core Data, Filtering by PopUps & Bindings Confusion

2008-11-14 Thread Brad Gibbs
I've been using Jonathan Dann's excellent Core Data Sorted sample code to create an outline view consisting of two concrete entities -- Categories and Types (each parent Category can have an unlimited number of children types). The only real adjustment I've made to his code is to put the p

Apple's NSPersistentDocument Tutorial and MOCs

2008-11-12 Thread Brad Gibbs
Hi, I've followed along through the NSPersistentDocument tutorial from Apple and made some adjustments for my own needs. I now have a sheet that drops down to allow the user to add a new product record. This is handled in its own MOC and the relevant key/value pairs are copied to the ma

Re: Pop-Up Graphical Calendar

2008-11-04 Thread Brad Gibbs
n Nov 4, 2008, at 3:27 PM, Graham Cox wrote: On 5 Nov 2008, at 10:15 am, Brad Gibbs wrote: Hi, I'm trying to replicate one of the pop-up calendars you see on Orbitz, Hotwire, etc. , where the user clicks a calendar icon, the calendar appears and then the calendar disappears once th

Pop-Up Graphical Calendar

2008-11-04 Thread Brad Gibbs
Hi, I'm trying to replicate one of the pop-up calendars you see on Orbitz, Hotwire, etc. , where the user clicks a calendar icon, the calendar appears and then the calendar disappears once the user has selected a date. I've got a graphical NSDatePicker and I can show and hide it with an

Re: Help for a beginner..

2008-10-04 Thread Brad Gibbs
I had no knowledge of or experience with programming when I started last April. I started with Kochan's Objective-C book, then Hillegass Third Edition, then XCode Unleashed. That happened to be the order in which they were released, but it was a good way to go -- I felt one led right into

Newb: KATI Sample Code - What's This Called?

2008-10-02 Thread Brad Gibbs
I'm working through the XSViewController example project from KATIDev and I came across this line: [(ColorView*)[self view] setBackgroundColor:[[NSColor greenColor] colorWithAlphaComponent:.5]]; and realized I don't understand (ColorView*). It looks like it's declaring a pointer to an o

Re: Drawing an NSImage in a CALayer

2008-09-18 Thread Brad Gibbs
th the image button maker, as you've noticed. Best regards, -Matt On Sep 18, 2008, at 3:54 PM, Brad Gibbs wrote: Hi, I'm trying to draw an NSImage (a PNG) in a CALayer. The goal is to create a method that allows me to pass an NSImage as an argument to create a layer-hos

Re: Drawing an NSImage in a CALayer

2008-09-18 Thread Brad Gibbs
The PNG is in the main bundle -- in my Resources folder. On Sep 18, 2008, at 3:16 PM, David Duncan wrote: On Sep 18, 2008, at 2:54 PM, Brad Gibbs wrote: I'm trying to draw an NSImage (a PNG) in a CALayer. The goal is to create a method that allows me to pass an NSImage as an argume

Drawing an NSImage in a CALayer

2008-09-18 Thread Brad Gibbs
Hi, I'm trying to draw an NSImage (a PNG) in a CALayer. The goal is to create a method that allows me to pass an NSImage as an argument to create a layer-hosting view. I have: -(id)drawButton: (NSView *)button withImage:(NSImage *)anImage { ... // image layer imageLayer=[CALayer

[SOLVED] Re: Newb: Targeting an instance of a class instantiated by a NIB file

2008-09-15 Thread Brad Gibbs
e, but the responder chain is really cool! (and useful). Thanks to everyone who helped point me in the right direction. Brad On Sep 12, 2008, at 8:37 PM, Brad Gibbs wrote: Hey Jon, It is a non-document-based app. Only one instance of each window should ever be open at one time. I h

Re: Newb: Targeting an instance of a class instantiated by a NIB file

2008-09-12 Thread Brad Gibbs
Hey Jon, It is a non-document-based app. Only one instance of each window should ever be open at one time. I have an AppController class that is the NSApp delegate. In the AppController's awakeFromNib I alloc the MainWindowController and initWithNib. In the MainWindowController, I have

Re: Newb: Targeting an instance of a class instantiated by a NIB file

2008-09-12 Thread Brad Gibbs
Bill Bumgarner wrote: On Sep 12, 2008, at 7:08 PM, Brad Gibbs wrote: [self.view.window.parentWindow.windowController removeChildWindow: [self.view.window]]; [self.view.window] doesn't make any sense. b.bum ___ Cocoa-dev mailing list (Cocoa

Re: Newb: Targeting an instance of a class instantiated by a NIB file

2008-09-12 Thread Brad Gibbs
message goes up from the NSViewController containing the buttons through its window, to that window's controller and then to NSApp. I don't know how to cause it to jump to the main window's window controller. On Sep 12, 2008, at 5:15 PM, Jonathan Hess wrote: On Sep 12, 200

Re: Newb: Targeting an instance of a class instantiated by a NIB file

2008-09-12 Thread Brad Gibbs
7;s NIB affect controller A. Does controller B have an instance variable, or other mechanism, for referencing controller A? If so, you could put an action method on controller B and have that be the target of your button in NIB B. The implementation of that action can then call a method o

Re: Newb: Targeting an instance of a class instantiated by a NIB file

2008-09-12 Thread Brad Gibbs
On Sep 12, 2008, at 12:41 PM, Jamie Hardt wrote: On Sep 12, 2008, at 12:17 PM, Brad Gibbs wrote: I want to write the code to switch views in the MainWindowController.m, since it controls the window that contains the views that will be switched. But, the buttons that control the view swit

Newb: Targeting an instance of a class instantiated by a NIB file

2008-09-12 Thread Brad Gibbs
I'm working on an application with a single main window and a number of views and view controllers. I have a navigation window that pops up and allows users to set preferences and also switch views in the main portion of the app's main window. I want to write the code to switch views in th

Re: Fade In and Fade Out Transitions Missing in IB

2008-09-09 Thread Brad Gibbs
hmmm that's a bummer looked like a nice feature. On Sep 9, 2008, at 9:39 PM, Seth Willits wrote: On Sep 9, 2008, at 6:50 PM, Brad Gibbs wrote: I'm sure this is user error, but the Order In and Order Out options shown and described in the IB User Guide as being availa

Fade In and Fade Out Transitions Missing in IB

2008-09-09 Thread Brad Gibbs
I'm sure this is user error, but the Order In and Order Out options shown and described in the IB User Guide as being available in the View Effects tab under Transitions don't seem to be available in my version of IB. I'm using XCode and IB 3.1, and my project is targeted for 10.5, but I c

Re: Sending a GET or POST HTTP request with Cocoa

2008-09-01 Thread Brad Gibbs
You might find the discussion here helpful: http://deusty.blogspot.com/search/label/NSURLRequest After getting NSURL's to work, I decided I'd be better off with TCP sockets. If you find yourself in the same position, you might try AsyncSockets (also available at the link above). It's non-b

Re: Newb Question re NSUserDefaults and Ints

2008-08-30 Thread Brad Gibbs
Thanks for all of the responses. After some monkeying around, I figured out that I'd used an NSNumber where I should have used an NSString. The code is now compiling and running happily. While I did learn some things from this, I'm confused about NSUserDefaults and the values it can store

Re: Newb Question re NSUserDefaults and Ints

2008-08-29 Thread Brad Gibbs
Well, it appears that I need to convert either an NSNumber or an NSString to a CGFloat, rather than an int: - (void)drawInRect:(NSRect)rect angle:(CGFloat)angle There don't appear to be any methods in either NSNumber or NSString to do this On Aug 29, 2008, at 7:36 PM, Brad

Re: Newb Question re NSUserDefaults and Ints

2008-08-29 Thread Brad Gibbs
y into a number, not get it's value. You want to use: [[defaults objectForKey: ICNElementBarGradientAngleKey] intValue]; Andrei On 30.08.2008, at 04:54, Brad Gibbs wrote: I'm having a hard time with what should be a simple task - storing an integer for a gradient angle as a user

Newb Question re NSUserDefaults and Ints

2008-08-29 Thread Brad Gibbs
I'm having a hard time with what should be a simple task - storing an integer for a gradient angle as a user default and then updating the screen. When I quit the app and open it again, the NSTextField shows the last value I set for the gradient, but with the following code: - (IBAction)ch

Preferred Wrapper for TCP Sockets Over Local Network?

2008-08-16 Thread Brad Gibbs
Hi, I'm looking for a Cocoa class to establish a TCP socket with another machine on a local network (non-OS X). I've found Omni Networking, AsyncSocket and NetSocket. I've read conflicting reports of the suitability of NSSocketPort for non-DO-related work. I would like to be able to us

Re: [NEWB] Filling a rect with an Image

2008-08-06 Thread Brad Gibbs
Thanks. I was looking at NSImageView (which does have a setImage: method). On Aug 6, 2008, at 8:58 AM, Kyle Sluder wrote: On Wed, Aug 6, 2008 at 11:50 AM, Brad Gibbs <[EMAIL PROTECTED]> wrote: I've added a .png named ScrollBackground to my Resources folder. The code compile

[NEWB] Filling a rect with an Image

2008-08-06 Thread Brad Gibbs
I'm trying to create a view with a background image, but getting error after error... - (void)drawRect:(NSRect)rect { NSRect bounds = [self bounds]; NSImage *background = [[NSImage alloc] init]; [background setImage:@"ScrollBackground"]; [[NSColor colorWithPatternIma

Re: Newb Question re Messaging and Return Values

2008-07-24 Thread Brad Gibbs
ain. On Jul 24, 2008, at 11:00 AM, Brad Gibbs wrote: I'm having a hard time understanding return values and maybe messaging in general. I've looked through Programming in Objective- C, Hillegass Third Edition and through Apple's documentation, but don't seem to know

Newb Question re Messaging and Return Values

2008-07-24 Thread Brad Gibbs
I'm having a hard time understanding return values and maybe messaging in general. I've looked through Programming in Objective-C, Hillegass Third Edition and through Apple's documentation, but don't seem to know enough to find the answer or a proper example I can implement. I have a view

Re: Help with "Messages without a matching method signature..." issue

2008-07-22 Thread Brad Gibbs
--- On Tue, 7/22/08, Brad Gibbs <[EMAIL PROTECTED]> wrote: From: Brad Gibbs <[EMAIL PROTECTED]> Subject: Help with "Messages without a matching method signature..." issue To: "Cocoa List" Date: Tuesday, July 22, 2008, 12:28 PM I read the Newbie Question on a m

Re: Help with "Messages without a matching method signature..." issue

2008-07-22 Thread Brad Gibbs
It's in the file, it's just that the warning message pushed the brace down and out of my select -> copy -> paste to e-mail. Sorry for the confusion. On Jul 22, 2008, at 12:35 PM, Steve Bird wrote: On Jul 22, 2008, at 3:28 PM, Brad Gibbs wrote: Below is the offend

Help with "Messages without a matching method signature..." issue

2008-07-22 Thread Brad Gibbs
I read the Newbie Question on a method signature thread from June 4 a few times, but, either that isn't the problem I'm having, or I'm not understanding the solution... Any help would be greatly appreciated. On compile, I get the following warnings: warning: 'Class2' may not respond to '+s

Re: NSViewController and View Swapping

2008-07-14 Thread Brad Gibbs
)selectTabViewItemWithIdentifier:(id)identifier - (void)selectTabViewItem:(NSTabViewItem *)tabViewItem On 14-Jul-08, at 2:04 AM, Brad Gibbs wrote: Thanks for the quick response and the links. NSTabView with tabs on the bottom is exactly what I'm looking for, except, I'm writing a fullscree

Re: NSViewController and View Swapping

2008-07-13 Thread Brad Gibbs
umber of single window apps out there today, it seems like swapping views should be one of those common things that is easy to accomplish with Cocoa, rather than an uncommon thing that's merely possible... On Jul 13, 2008, at 10:46 PM, Nathan Kinsinger wrote: On Jul 13, 2008, at 11:15

NSViewController and View Swapping

2008-07-13 Thread Brad Gibbs
I'm trying to create a Cocoa app with a single window with a number of views that get swapped in and out, using an NSViewController for each of the views. I have a series of buttons along the bottom of the UI in a custom view, and another custom view above the row of buttons. When button A

Re: Distributed Objects "connection went invalid while waiting for a reply"

2008-07-09 Thread Brad Gibbs
Is Distributed Objects still the preferred method for communicating among computers on a local network? It's been hinted that DO may be deprecated in the not-so-distant future. When I asked about DO recently, I was pushed in the direction of Jens Alfke's Blip. Thanks. On Jul 9, 2008,

IB Plugin Exchange / Apple Pro Apps Elements?

2008-06-03 Thread Brad Gibbs
Is there an IB 3.0 plugin exchange I haven't been able to find through Google? Some place where developers could share or trade IB plugins they've built? Specifically, I'm looking for the darker look-and-feel of Apple's Pro apps, like Aperture and MainStage from Logic Studio, in particular

Re: Newbie Question re Allocation & Initialization

2008-05-19 Thread Brad Gibbs
008, at 5:18 PM, Brad Gibbs wrote: Is it because numberToPrint is simply pointing to newNumber objects in the array that have already been allocated and initialized? Yes, both newNumber and numberToPrint are merely pointers to some object. These objects are created in the first loop

  1   2   >