Jump to content


  • Content count

  • Joined

  • Last visited

About DaveGee

  • Rank
    InsanelyMac Protégé
  1. DaveGee

    BadAxe2 with GUID and EFI Tutorial

    Just payed a little russian roulette and did a software update install of 10.5.4 (previous OS X was 10.5.3) and I'm using all Apple software + PC EFI + a few mods to the boot.plist + 2 kexts (1 for audio & dsmos) Well it installed just fine on the badaxe2 (oh NV7600 256mb Video Card) You milage WILL vary so don't get mad at me if it doesn't go as smooth for you... never take some random idiot posters word on ANYTHING backup your system FIRST!!!! Dave
  2. Okay this is kinda messy but try and bear with me... 1 - In my main AppDelegate I open an async connection (via an included method) to a soap service that provides continuos status updates (in its own thread) and then lets the AppDelegate continue on 'doing its thing' in the main thread. (I'm pretty sure I got that working right). 2 - As messages come back from the soap server (in that other thread) I call back to a method in the AppDelegate that updates an NSArray with the new values. This too is working okay (amazing as it may seem) That process looks something like: ISY_26AppDelegate *appController = (ISY_26AppDelegate *)[[UIApplication sharedApplication] delegate]; [appController replaceObjectNode:[devStat objectAtIndex:4] withProp:[devStat objectAtIndex:1] withValue:[devStat objectAtIndex:2]]; That stuff works fine... or so it would seem... 3 - My main AppDelegate then calls up a 'root view controller' where you have one of several menu choices one of them being "show devices" 4 - When 'Show Devices' gets selected a menulist displays a list of 'items' as well as their current 'status' (represented by one of two icons) this information comes from that array I talked about. That too works fine... Here is the sticky part... How would I go about doing a reloadData on that menu when the 'array' (from step #2) gets changed? - I simply can't wrap my brain around how to even begin to go about doing it... Yes if I change the status of a device -- the menulist doesn't change BUT if I then scroll the list 'all the way up' and 'all the way down' (basically forcing a reloadData) the new values get displayed correctly but that is clearly not the way things should work... If the soap service reports that 'XYZ is now OFF' I want the ability to manually do a reloadData on that device listing (menu). Does this even make sense? If it doesn't I can try to expand on things. Dave
  3. Dusting off this old topic to show that I cared enough to search... Here is a similar problem.... Imagine an iPhone app with a standard iPhone table list of anyway from 10 to 1,000+ entries. Imagine having an 'On/Off' switch attached to each of those XXXX entries How would I build my code so I could call a single selector and be able to identify the 'table row' the switch was on. For example Apple [Off/On] Banana [Off/On] Peach [Off/On] Pear [Off/On] Plumb [Off/On] When I click on the Off/On toggle button for the peach it goes to a single action:@selector(hitTheBotton:) and in turn that procedure would need to unravel that it was called *not only* because an Off/On button was pressed but the specific table row. This must be doable otherwise what would be the point of including buttons in a table of items... Again... since the actual number of items could be anywhere from 10 to 1000 writing a unique procedure for each button simply wouldn't be possible or in any way an acceptable solution. I'm still very new to all of this and with a bit of a forced break away from SDK work (last worked with rel. 2) I'm more confused than ever and the web is populated with TONS of example of things that... do work... was broke/changed in rel 6... was broke/changed in rel 5... was broke/changed in rel 4... was broke/changed in rel 3... etc etc etc... In my google aided searches I saw some cryptic reference to using a 'tag' and or naming each button... I can't find any hardcore working examples of such things but if I were to be able to 'name' or 'tag' the button with the 'table row number' at the time the table is being built (and button was being attached) that would be okay... Anyone have any currently working ideas? ---EDIT--- Well after going over all the available docs example code postings etc etc etc.... I've given up on using the fancy 'On/Off' switch that the SDK provides and instead have chosen to simply use the basic button type and utilize several fields (that for me are unused) for storing the table row number for each button. Dave
  4. DaveGee

    BadAxe2 with GUID and EFI Tutorial

    Been so happy with my 10.5.2 system I've been avoiding installing the updates that have come in from Apple's Software Update... Can anyone tell me if its okay / not okay to install the following FROM WITHIN (via) the Apple Software Update utility: First: I'm using a 'retail 10.5' install with PCEFI and very minimal changes to my kexts... I also updated to 10.5.2 using the extra steps so no to break the OS after the 10.5.2 update was applied... Here are the updates: * Quicktime 7.4.5 iTunes 7.6.2 Front Row Update 2.1.3 * Time Machine and AirPort Up... 1.0 * Security Update 2008-002 1.1 * Safari 3.1.1 * Requires a restart... Thanks for any/all info! Dave P.S. Also, I have installed the 1st two releases of the iPhone SDK (without issue) but have been holding off with the latest release since I feel like I've been pushing my luck and one of these SDK updates will trash everything...
  5. I've been doing all my tables 'the old fashion way' -- I've yet to really get into IB.Since I was reading so many people having problems of one sort or another... I figure I'd wait till the painful getting up to speed process is over... from your post I can see that it's clearly not.. Look at the post right above yours... mmk has posted a great working example.Dave
  6. Okay I did that and it works... but... here's the new wrinkle... As part of TableView we have a default method of: "- (void)tableView:(UITableView *)tableView accessoryButtonClickedForRowWithIndexPath:(NSIndexPath *)indexPath" (but I can't seem to get it to trigger - so I used the solution you suggested) In the solution you presented I have the (two) following lines: cell.accessoryAction = @selector(myCustomAction); // Including a : at the end didn't work!! cell.target = self; {SNIP the rest of my babbling} ====================================================================== ***EDIT*** Okay I finally got things going CORRECTLY and to the best of my knowledge the way they should be... Here was my initial downfall: "- (void)tableView:(UITableView *)tableView accessoryButtonClickedForRowWithIndexPath:(NSIndexPath *)indexPath" I was using this method --- well because I found it somewhere --- I know I didn't make it up... (maybe it was changed from the initial SDK??) I dunno but that is the method that I thought I needed to implement. ***WRONG*** Simply reading the headers for UITableView I instead I saw this method referneced: - (void)tableView:(UITableView *)tableView accessoryButtonTappedForRowWithIndexPath:(NSIndexPath *)indexPath I took out the overrides I was trying get working (in otherwords I deleted these new lines that I was speaking about above) cell.accessoryAction = @selector(myCustomAction); // Including a : at the end didn't work!! cell.target = self; Then I renamed accessoryButtonClickedForRowWithIndexPath to accessoryButtonTappedForRowWithIndexPath... Compiled and all is now good with my world (for a little while anyway) Thanks again for everyones help. Dave
  7. Okay... Still researching that issue I'm having... I found this: accessoryAction The selector defining the action message to invoke when users tap the accessory view. @property SEL accessoryAction Discussion The accessory view is a UITableViewCell-defined control, framework control, or custom control on the right side of the cell. It is often used to display a new view related to the selected cell. See accessoryView for more information. If the value of this property is NULL, no action message is sent. Availability Available in iPhone OS 2.0 and later. See Also @property target @property editAction Declared In UITableViewCell.h but have no idea how to implement this... I see this as another example I could learn from: editAction The selector defining the action message to invoke when users tap the insert or delete button. @property SEL editAction Discussion When the cell’s table is in editing mode, the cell displays a green insert control or a red delete control to the left of it. (The selectedBackgroundView constant applied to the cell via the editingStyle property determines which control is used.) Typically, the associated UITableView object sets the editing action for all cells; you can use this property to alter the editing action for individual cells. If the value of this property is nil, no action message is sent. Availability Available in iPhone OS 2.0 and later. See Also @property target @property accessoryAction Declared In UITableViewCell.h But I can't seem to find any source code using that either... the good news is I think I'm on the right track... Dave
  8. Hah! I knew it was something like that...
  9. isn't it something like: float myfloat; myfloat = [textField floatValue]; I know thats the way it works for NStrings. Dave
  10. Yep see my edit post above... tried that stuff and still no-go... I have a feeling either this isn't (for some reason) implemented fully yet (since not a singe example is using it) or its something else that I have to do before it'll start calling accessoryButtonClickedForRowWithIndexPath. Weird tho.. since it seems like it should 'just work'... oh and yea I was always using console.app to see my log messages (which is why I was seeing them at all - lol) Dave
  11. Ill check out the delegate thing but since clicking on anywhere but the blue-icon works as it should I think it might indeed be set correctly. As for nslog not working... well I seem get it to fire much of the time but I have noticed an occasion or three where it fired 'way late' or not at all... I found making 'more' nslogs (and or longer ones) kick things into gear (but I may just be fooling myself - lol) I'll check the delegate thing and then come back and edit this post with whatever my results were... EDIT: (yea that was fast...) This is how it was already.... (delegate was indeed set to self - see code below) theTableView = [[UITableView alloc] initWithFrame:self.view.bounds style:UITableViewStylePlain]; theTableView.delegate = self; theTableView.dataSource = self; theTableView.separatorStyle = UITableViewCellSeparatorStyleSingleLine; Oh and I even put some ACTUAL code in accessoryButtonClickedForRowWithIndexPath just to make doubly sure and nope -- the button press isn't being sent to it. Dave
  12. Thats what I thought... I found that (somewhere) ... maybe the iPhone sdk reference (don't remember now) Anyway I have this in my controller - (void)tableView:(UITableView *)tableView accessoryButtonClickedForRowWithIndexPath:(NSIndexPath *)indexPath { NSLog(@"==========================="); NSLog(@"HERE I AM!!!"); NSLog(@"==========================="); NSLog(@"HERE I AM!!!"); NSLog(@"==========================="); } But when I click on that bugger nuttin happens... is their somewhere else I have to do some other coding to get it to work?? The only other thing I've done different apart from the normal tableview example code I had before is change the UITableViewCellAccessoryDisclosureIndicator to UITableViewCellAccessoryDetailDisclosureButton. Everything else still works, even now when I click on the line (anywhere BUT that icon) the other/next tableview still comes up as it always did. What I want in the end is: 1 - User clicks on anywhere BUT the icon and I call a little routine (already written) that turns off the device that was clicked but then I stay on the menuview (I'll also update the icon to show the new lighting condition and do a menu refresh). The way things are now clicking here take you to another menuview... I will swap this code to the action below. 2 - User clicks ON the blue-button and the user is taken that other menuview (I spoke about above) where he/she has more controls/info displayed to them. I have this menuview already but at the moment it only comes up when anywhere BUT the button is pressed. I will take the code mentioned above and put it here in this action. Thanks for helping!! Dave
  13. Well... I'm not 100% sure but I downloaded some seismic indicator application from the Apple iPhone developer site and I think it was designed to do something similar... (when something was clicked a url was launched) and it too just 'ended' when you did the actual click... You might want to find that code and check it out... HTHs Dave
  14. Attached is a screenshot of the controls I was asking about... If anyone knows how or what I need to do to get the trigger of those blue buttons I'd be very happy... Dave
  15. Okay has anyone tried table views AND turning on UITableViewCellAccessoryDetailDisclosureButton? It's used in place of: UITableViewCellAccessoryDisclosureIndicator The 'DisclosureIndicator' puts that little ">" and the end of each menu entry. The 'DetailDisclosureButton' puts a neat info icon at the end that acts like a button so you now have TWO ways to react with someone clicking on a single menu item... 1 - They simply click on the line itself, anywhere but the fancy info-graphic at the end of the row. 2 - They DO click on the fancy info-graphic at the end of the row. But my question is what code do I use to 'react' to someone pressing on the info-graphic... I've searched tons of source but not a single one makes use of the icon. You can see it in action on an iPod Touch if you go to the networking area... each wifi network it remembered will/should have one. Dave